10-09-2013 03:46 AM
I have created a user that can only ftp to a server running 11.23, and I have seen in some posts that the user start up program needs to be change from /usr/bin/sh to /usr/bin/false, but after making that modification, the user simple cannot login, using ftp client software like filezila, pls can you help.
Solved! Go to Solution.
10-09-2013 01:13 PM
>> the user simple cannot login
What kind of error are you receiving?
I have just set up an FTP only account on one of my test servers, set the shell to /bin/false and was able to login via filezilla without any problems.
The /etc/passwd entry from my test ID:
salary20:*:603:200:test ftp user:/support/ftpusers/salary20/./pub:/bin/false
10-09-2013 06:36 PM - edited 10-09-2013 06:37 PM
You'll need to create the file: /etc/shells
Without this file, the only shells allowed to login to an ftp connection are:
The man page for getusershell(3C) lists the default shells.
Copy the above list and then add unlisted shells such as /usr/bin/false like this: