The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 10-12-2008
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,100
If you give a user a shell of /bin/false, this pretty much disables them from telneting. They can connect, but are instantly logged out. But if you put /bin/false into the file /etc/shells, they will still be able to use ftp. This is how I set up an ftp-only user. I then keep /bin/true out of /etc/shells, and I can set the shell to /bin/true to disable ftp as well.

Warning: if you are missing /etc/shells, the system behaves as if it exists and contains over a dozen entries. These are listed on the shells man page. Do not simply create a /etc/shells file with one line in it. You need to put in the default enties as well.