Article View: bu.localpostings
Article #428Re: Which shell?( alt.2600)
From: qu
Date: Sun, 26 Dec 1999 00:00
Date: Sun, 26 Dec 1999 00:00
34 lines
1957 bytes
1957 bytes
X-Orig-MsgId: <kus4sd55ven.fsf@buphy.bu.edu>
"Jennifer \"AstroJenn\" Martino" <twpyhr@mindspring.com> writes:
> gotcha. but when would one use a restricted shell rather than the plain
> old.. the only time i can think to use one is if maybe an account was
> made for someone..
bingo. for security reasons.
There are also "accounts" which run only a single command,
so for example, in /etc/passwd file you'd see
lp:x:9:9:Print Spooler Owner:/var/spool/lp:/dev/null
for the "line printer" account. The "shell" that 'lp' runs
is /dev/null; /dev/null is just a blackhole that you can dump
characters into (e.g., use in shell scripts to redirect error
messages to it, so the user doesn't see the error output).
Aside (speaking of "restricted"):
You can also change the filesystem to a "restricted filesystem"
by using 'chroot' command, which makes an arbitrary directory
look like the root of the filesystem. (so /home/slanning is
where I'd actually go if I typed cd /, for example,
'/usr/sbin/chroot /home/slanning /bin/bash' for a bash shell)
--
While the brown ale he quaffed,
Loud then the champion laughed,
And as the wind-gusts waft
The sea-foam brightly,
So the loud laugh of scorn,
Out of those lips unshorn,
From the deep drinking-horn
Blew the foam lightly. --Longfellow
Technical Details
Message-ID:
<845rs6$j82$1@news1.bu.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<83tbdq$lsd$1@nntp9.atl.mindspring.net> <38623d5a.48340578@news.bconnex.net> <83ume1$t25$1@nntp9.atl.mindspring.net> <199912250538.AAA05707@cotse.com> <843c06$5ba$1@nntp2.atl.mindspring.net> <199912252212.RAA07469@cotse.com> <8442le$q9e$1@nntp4.atl.mindspring.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1552e4,5242e353a517f47f X-Google-Attributes: gid1552e4,public From: qu@f.f Subject: Re: Which shell?( alt.2600) Date: 1999/12/26 Message-ID: <845rs6$j82$1@news1.bu.edu> X-Deja-AN: 565088122 References: <83tbdq$lsd$1@nntp9.atl.mindspring.net> <38623d5a.48340578@news.bconnex.net> <83ume1$t25$1@nntp9.atl.mindspring.net> <199912250538.AAA05707@cotse.com> <843c06$5ba$1@nntp2.atl.mindspring.net> <199912252212.RAA07469@cotse.com> <8442le$q9e$1@nntp4.atl.mindspring.net> Original-Sender: qu@f.f X-Orig-Newsgrp: alt.2600 Organization: . Newsgroups: bu.localpostings