Click to See Complete Forum and Search --> : Preventing users from looking in the directory above?
zoniguana
01-31-2003, 05:49 PM
Is there a help file that anybody knows of where I can prevent users from seeing any directories higher than their own?
I don't want jane going up to users, and then into john's directory, even if she *can't* write anything to it...
Even more importantly, I don't want company.com looking in corporation.com's folders.
Is this something I can easily disable? Thanks!!
open up a terminal and get to the place containing the directory you want to protect.
assuming you just want the owner of the file to have access to the directory do:
chmod u=rwx,g=,o= some_dir_here
if you want the owner *and* group to have access
to the dir do:
chmod u=rwx,g=rwx,o= some_dir_here
that oughta do it...
you probably can do this as well from nautilus or midnight commander, but i'm somewhat of a minimalist, so i can't tell you how to do it from there. (i use twm as my window manager :D )
check out this if you want more info on operating linux from the command line, its a whole book available for free:
http://wwwacs.gantep.edu.tr/linux/rute/
zoniguana
01-31-2003, 06:15 PM
Looks exciting! Thanks!
I figured out one item already. Changing all the subdirectories to chmod 754 locks any other users from seeing the contents of another's directory... Now, if I can prevent them from even getting into the next directory up (while allowing them to get into their own directory), I'll really be excited!
As in /var/www/users/jacob can't even see the contents of /var/www/users. That would be most exciting...