Re: User Private Groups for SuSE?

From: Leendert Meyer (leen.meyer_at_no.where)
Date: 05/28/04


Date: Fri, 28 May 2004 02:58:12 +0200

Leendert Meyer wrote:

> Miika Pihanen wrote:
>
>> In article <c9375p$fvp$1@news5.tilbu1.nb.home.nl>, 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?
>>>
>>> Cheers,
>>>
>>> Leen
>>
>> 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.
>>
>> Then
>>
>> 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. ;)

Cheers,

Leen

-- 
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?


Relevant Pages

  • Re: [kde-linux] Sidux uses Kubuntu KDE version for desktop
    ... tarred Kubuntu home directory on another disk. ... Kubuntu or Sidux. ... data files that is corrupting Sidux KDE setup. ... plasma's application settings. ...
    (KDE)
  • Re: [kde-linux] Connecting to a samba share at startup
    ... During kde startup I was told that access was ... In konqueror I saw my borg home directory listed. ... mount point had disappeared. ... What is really puzzling me is that I get a desktop icon for the remote home ...
    (KDE)
  • Re: KDE and GNOME, which one is better?
    ... >home directory or other directory viewing... ... It is certainly not as pretty as GNOME or KDE, ... here is my .xsession file, to use it, you must first move the .xinitrc ...
    (linux.redhat)
  • Re: KDE and GNOME, which one is better?
    ... >home directory or other directory viewing... ... It is certainly not as pretty as GNOME or KDE, ... here is my .xsession file, to use it, you must first move the .xinitrc ...
    (linux.redhat.misc)
  • Re: Strategic approach to recreating an existing user
    ... The reasons for doing this are because somehow one or more of the KDE ... When I create a new account to test these issues in, ... needed from the renamed directory back into her home directory. ... copies from the ficticious user, but with your wife as owner. ...
    (Debian-User)