[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Why can't I?



ANDREW PERRIN <aperrin@email.unc.edu> writes:

> chmod o-rwx /
> chmod o-rwx /home

Ok:

 $ sudo chmod o-rwx /
 $ ls
 bash: ls: command not found
 $ ps
 bash: ps: command not found
 $ pwd
 /home/dave
 $ cd
 bash: cd: /home/dave: Permission denied

Uh oh. Good thing I ensured that I started a root shell in another
window to fix the damage *before* I tried this ill-advised experiment.

As for the other poster's question: in general, users need to see other
directories, like /bin and /etc. There are some convoluted ways to do
what you want, but you have to decide for yourself whether tiny gain in
security is worth the significant effort and deep understanding needed
to do it.

-- 
Dave Carrigan (dave@rudedog.org)            | Yow! ..  I'm IMAGINING a
UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | sensuous GIRAFFE, CAVORTING in
Seattle, WA, USA                            | the BACK ROOM of a KOSHER DELI
http://www.rudedog.org/                     | --

> On Wed, 13 Jun 2001, Auke van der Gaast wrote:
> 
> > Hello,
> > 
> > I'm quite new to Linux... I've tried everything I could find on the 
> > net regarding this issue, but still it doesn't work.
> > 
> > I'm trying to restrict users' access to only their home dir 
> > (I don't want them to be able to see or reach / or even /home )
> >     I've already wasted half a day on just that, I'd really appreciate 
> > it if anyone could tell me what to do.



Reply to: