Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

configure ftp only

Status
Not open for further replies.

gca007

Technical User
Joined
Nov 28, 2002
Messages
18
Location
EC
how to configure user to ftp only
 
I usually add /usr/bin/passwd to /etc/shells. Then change the ftp-only userid you created so that the shell is set to /usr/bin/passwd. --
Andy
 
Does that work, Andy??

Alternatively, create a .profile in that user's home directory just containing exit. Make sure it's owned by root and is read-only so the user can't replace it through[ignore] FTP. [/ignore] If you want to be nice put a brief message such as echo "Shell login disabled." before the exit. Annihilannic.
 
Yes, it works. And the helpful side affect is that a user can open a session to the server and be able to change their password. --
Andy
 
Very good... I forgot to add it to /etc/shells when I tried, hence the query. ;-) Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top