1829542 Members
2297 Online
109992 Solutions
New Discussion

wu-ftp server problem

 
Youlette Etienne_2
Regular Advisor

wu-ftp server problem

Hello,

I am trying to setup a wu-ftp server on a unix server, 11.0. I have setup a user in /etc/passwd as follows:

lion:*:102:20:,,,:/home/ftp/lion:/etc/ftponly

following the instructions on the www.wu-ftpd.org/HOWTO/guest.HOWTO website.

However, when I ftp to the server with this login, the chroot command does not work. The login can cd to other directories.

At this point of re-reading the HOW-TO guide a bit too many times, suggestions on what I can check are more than welcome.




If at first you don't succeed, change the rules!
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor

Re: wu-ftp server problem

Hi:

See if this document helps: #A5651654. It's relative to 11.0 FTP features.

...JRF...
RikTytgat
Honored Contributor

Re: wu-ftp server problem

Hi,

You have to include '/./' somewhere in the user's homedir to indicate the directiry to chroot to.

From the document you reference:

mort:*:403:400:MortimerSnerd:/home/web/mort/./:/etc/ftponly

The /./ sequence determines where the chroot() is done to. If you want the chroot() one to the web directory and a chdir() to mort, it would look like this:
mort:*:403:400:MortimerSnerd:/home/web/./mort/:/etc/ftponly




Hope this helps,
Rik
Youlette Etienne_2
Regular Advisor

Re: wu-ftp server problem

Thanks for your help. I was finally able to get the chroot working. I found a document on #A5651654 (docid: kbrc00000642) that was helpful, combined with the HOWTO guide.

Also, thanks to Paul Hite for the 'ls' not working solution, that was posted on a previous forum. I needed to copy /sbin/ls, not usr/bin/ls.
If at first you don't succeed, change the rules!