Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Quick question for u guys... what's the diffrence between diffrent types of shells? like if i wanted to give someone a shell, but only limit them to their /home directory, how would i do that... thx in advance
-Tom

The shell is really the way the user interacts with the computer and is launched during login. Common ones are bourne, korn, cshell and you can often tell which one you are in by the prompt (eg $ for bash, % for csh etc) and one of the the differences is the commands available. In *nix you generally have two types of commands, built-in shell commands and linux/unix commands. Shell commands vary from shell to shell and need no files to run (eg alias, bg, logout etc) and linux commands are stored in /bin, /usr/bin etc (eg ls, ping, grep etc) which brings me to my first point, restricting a user just to their home directory stops them from being able to run commands like ls. I suppose you could create a /home/username/bin directory and only put that into their path, what is it actually that you want to achieve? As it is users can generally only write to their home folder anyway (and /tmp).
You can even use a full-on program as someone's shell. At home I have a user called emacs with no password that uses emacs as their shell (instead of bash). If I logon as "emacs" all I get is the emacs program, quit it and it logs me out.
Mega busy at work here....gotta go.....

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |