Re: homedir default permissions
From: Heiner Keute (heiner.keute_at_t-online.de)
Date: 09/12/03
- Next message: Mat Berube: "SERVER Going Down"
- Previous message: Sasa Stupar: "Gnome-terminal crashes"
- In reply to: Andreas Tretow: "Re: homedir default permissions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 12 Sep 2003 14:33:22 +0200
Am Fri, 12 Sep 2003 01:44:54 +0200 schrieb Andreas Tretow:
> On Thu, 11 Sep 2003 22:32:50 +0200, Heiner Keute wrote:
>
>> If I use a tool to make a useraccount like useradd, then the directory
>> permissions of the new homedir are: drwx------ . But I would like to see
>> by default: drwxrwx---.
>
> The real question is why you want to do this? If users want to give other
> members of their group access to their home directory they can set the
> permissions themselves. Your users might not be too enthused about
> colleagues reading and messing with their settings and mail (if delivered
> locally to their mail clients).
>
To give a (group)root the right several userdirs to manage.
In the default setting you have no chance just by adding a group to a user
to give him the right to manage that directory.
> Having said that, I don't know how to change the default behaviour of
> useradd, but you could try the following for the CLI:
>
I guess nobody knows that...
> 1. Read 'man chmod'
just done...
> 2. Write a script that does what you want, place it in your path and call
> instead of useradd, eg.
>
> #!/bin/bash
> # check 'man useradd' and http://www.tldp.org/LDP/abs/html/ for more
> # information
>
> useradd $1 && chmod 770 /home/$1
I thougt about that, but ther must be a way to customize...
>
> HTH
> Andreas
Thank you for your quick answer
Heiner
- Next message: Mat Berube: "SERVER Going Down"
- Previous message: Sasa Stupar: "Gnome-terminal crashes"
- In reply to: Andreas Tretow: "Re: homedir default permissions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]