LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   FTP - setting top level dir (http://www.linuxquestions.org/questions/linux-networking-3/ftp-setting-top-level-dir-23714/)

donokono 06-18-2002 02:18 PM

FTP - setting top level dir
 
I am attempting to give FTP access to a user but am having trouble setting the top level directory for that user...

I am running RH6.2 and wuftpd wu-2.6.0(1)

I created a new user then edited /etc/passwd

ftpguy:x:506:506::/usr/local/www/htdocs_sub.domain.com/./test/:/bin/false

(I also added /bin/false to /etc/shells)

Permissions on user's home dir is OK...

I can FTP in from a remote box but can issue
ftp> cd /
and ls the root directory on the box. I want this user restricted to the directory specified in /etc/passwd !!

Any help/suggestions??

Oh... I've been looking at docs for... um, longer than I should be... :)

TIA

TruckStuff 06-18-2002 04:58 PM

Search the forums. This has been addressed 4 times in the last week alone. :)

donokono 06-18-2002 06:17 PM

Thanks... I guess I wasn't searching hard enough.... :)

Anyhow, the solution was simple...

in /etc/ftpaccess I added:

realgroup ftpguy
realuser ftpguy
restricted-uid ftpguy

and it worked... the directory that the user gets when they log in is their top level directory....

thx.agn


All times are GMT -5. The time now is 06:14 AM.