[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Umask 002 policy



On (22/12/04 20:19), Juhasz Sandor wrote:
> Hi!
> 
> I have to implement default umask 002 for my users on my Debian server.
> I use KDM login. I searched the net, and I found tips only on setting umask
> on console, and on terminal emulators. (The standard /etc/profile,
> ~/.bashrc, /etc/bash.bashrc way.) Any program started from X window manager
> (for example K menu), has the original 022 umask. How can I solve this 
> problem?
> 
> Some words about my server filesystem: I have some directories (teachers,
> classA, classB, etc) in my /export directory, which are only readable and
> writable by the groups with the same name. These groups have to be able to
> read, and edit each other's files. I decided to make this role with 
> umask 002
> and private groups for every user (for their home directory). Is this the
> common way to solve this situation? If not, please help me.
Hi Alex

I've struggled with this a bit myself but I think I found a way to do it
or two ways depending on what you are trying to achieve.

You will find a way of setting the default login umask in
/etc/login.defs

in addition you can create top line home directories after doing 
$ umask 002

This should ensure that all sub-directories and files are created with
the correct permissions

For existing directories: $ chmod -R 775 should do the trick

However, I'm no expert and others may give you better advice - I'd be
interested to know if there's a better way of doing this.

Regards

Clive

> 
> The problem is quite urgent for me, so please help!
> 
> Thanks for your replies.
> 
> Alex from Hungary.

-- 
www.clivemenzies.co.uk ...
...strategies for business




Reply to: