Re: User Private Groups for SuSE?
From: Leendert Meyer (leen.meyer_at_no.where)
Date: Fri, 28 May 2004 02:58:12 +0200
Leendert Meyer wrote:
> Miika Pihanen wrote:
>> In article <email@example.com>, Leendert Meyer wrote:
>>> Hello! One can deny access to users in the same group, and others, with
>>> the command:
>>> chmod -R go-rwx /home/login_id
>>> Perhaps that would be something to put into /usr/sbin/useradd.local
>>> Knowing this, what are the advantages of the Private User Group system
>>> that cannot be done with my suggestion?
>> Well... I tried that some years ago, perhaps it was some 7.X SuSE...
>> Anyway, the result was that KDE could not be started. I'm sorry for not
>> testing this now, so I don't know if this works in 9.X.
>> Anyway this is how I did it:
>> Start Yast2 -> "Edit and create groups" -> "Add".
>> I use user name as group name, group id is same as my user id. Then
>> checked myself for member of this new group.
>> chgrp -R my_new_group_id /home/my_user_id
>> and then
>> chmod o-rwx /home/my_user_id
>> Apparently this works, since others won't be able to see in my home dir.
>> but I'm able to log in ;)
> Ok, yes, I under stand that. But for my account overhere, leen:users, I
> can deny other members of the group 'users' access to my home directory
> with 'chmod -R go-rwx /home/leen'.
Oops, I need to
chmod -R +r /home/leen/public_html
to even see my own webpages. That is something to think about when locking
everybody out. public_html is per definition public. ;)
-- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?