1847694 Members
6884 Online
110265 Solutions
New Discussion

Re: FTP User

 
Ray Pemberton
Occasional Advisor

FTP User

I have set a restricted FTP user up for a client.

When I or one of my colleagues from another site log into this user and perform an "ls" we get a list of files. When the client logs in he can put and get files but when he performs an "ls" he does not get a list.

Any ideas why?
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: FTP User

The user is probably set up in ftpaccess as chroot without access to the ls binary.

When you chroot a user it makes the home directoy the root for that user. Can't go higher and make trouble.

This makes things more secure, since ftp is inherently insecure.

To function properly, the ls command must be available in the users home directory.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sergejs Svitnevs
Honored Contributor

Re: FTP User

You need to have that /usr/bin/ls tree under the home directory the client is chroot'ed to.

Regards,
Sergejs
Borislav Perkov
Respected Contributor
Ray Pemberton
Occasional Advisor

Re: FTP User

No sure if you are understanding the problem or I am not understanding your replies.

I log in to the user/password and do "ls" I see files.

He logs into thge same user/password does an "ls" and does not see any files?
Sergejs Svitnevs
Honored Contributor

Re: FTP User

Please check /etc/ftpd/ftpaccess file for more detail. Seems You have different IP-based restrictions for the same user.

Regards,
Sergejs
Orhan Biyiklioglu
Respected Contributor

Re: FTP User

Is there anything in /var/adm/syslog/syslog.log
Robert Vernon
Occasional Advisor

Re: FTP User

Is the file system locally mounted or is it an NFS/AutoFS mount?