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 > Top Forums > UNIX for Dummies Questions & Answers
.
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 11-18-2005
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
Here you go:
/bin/sh, /bin/bash, /bin/ash, /bin/bsh, /bin/ksh, /bin/csh, /bin/tcsh - these are all normal shells. Will give the user the right to run any command (with their own privileges, ofcourse).

/usr/bin/ksh - this is most probably the same as /bin/ksh. On many systems, /bin is a link to /usr/bin. If that is the case, you will also find /usr/bin/sh, and so on.

/usr/bin/pdksh - this is the open source implementation of ksh. I have never used this, but I read somewhere that some features of ksh have not yet been implemented yet.

/sbin/nologin - any user that has this shell will not be able to login at the login prompt. The only way to 'become' this user is to use su. You might see this where webservers are run as user nobody. In this case, it would not be a good idea to let someone login as nobody as they will gain access to the webserver files.

/bin/bash (chrooted) - this is a version of bash that calls chroot before it runs. Again, I have never used/seen this. The chroot command basically changes the root filesystem to the path specified. The new root is then used for all file paths that start with '/'. See the man page here for more details.

/bin/rbash - this is a restricted version of bash. Here is a link to the man page of bash. You can look up the section under Restricted Shell for details on rbash.

I think that covers all the shells. Cheers.