LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   how to protect folders (https://www.linuxquestions.org/questions/linux-general-1/how-to-protect-folders-122800/)

Punker51 12-04-2003 07:08 PM

how to protect folders
 
By default, on Mandrake 9,
if, lets say, im logged in as user "John" i can browse thru /var without any problem but i cant go in /home/Max.

If the user John tries to go in that folder, the shell will return a permission denied message

How can i lock /var/www from normal users too (all except 2 (me and root)), just like /home/Max is locked from other users
Thanx

do i have to do it for each services ?

Tinkster 12-04-2003 07:46 PM

The key are the permissions and ownerships.

If you do
ls -l /var/www
what output do you get?

The owning group is of particular interest for
you here. You'll have to make sure that you
are a member of it, but other "normal" users
aren't.

you can then do

chmod -R o-rwx /var/www


Cheers,
Tink

Punker51 12-04-2003 09:13 PM

thx man
it worked perfectly

Tinkster 12-04-2003 09:20 PM

Quote:

Originally posted by Punker51
thx man
it worked perfectly

/me bows:"Pleasure! Affero?" :}


Cheers,
Tink


All times are GMT -5. The time now is 09:35 AM.