Computing.Net > Forums > Linux > Diffrent kinds of shells

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Diffrent kinds of shells

Reply to Message Icon

Name: Tom
Date: December 9, 2003 at 17:41:07 Pacific
OS: Depends
CPU/Ram: Depends
Comment:

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



Sponsored Link
Ads by Google

Response Number 1
Name: Dlonra
Date: December 10, 2003 at 05:48:14 Pacific
Reply:

man bash
search for restricted


0

Response Number 2
Name: 3Dave
Date: December 10, 2003 at 08:31:35 Pacific
Reply:

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.....


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Diffrent kinds of shells

free shell www.computing.net/answers/linux/free-shell/24916.html

how to configure Various kinds of ethernet cards www.computing.net/answers/linux/how-to-configure-various-kinds-of-ethernet-cards/2212.html

what kind of laptop should i get? www.computing.net/answers/linux/what-kind-of-laptop-should-i-get/29924.html