Re: Umask 002 policy

2005-01-05 Thread Clive Menzies
On (23/12/04 10:40), Cameron Hutchison wrote: > Once upon a time Clive Menzies said... > > > > I've never really understood what the first digit does but > > having reread the chmod manpage it falls into place almost. Setting > > the group ID at 2, means any file or directory created by some

Re: Umask 002 policy

2004-12-27 Thread Cameron Hutchison
Once upon a time Vineet Kumar said... > * Cameron Hutchison ([EMAIL PROTECTED]) [041222 14:56]: > > # find $dir -type f -print0 | xargs -0 chmod g=u,o=-rwx > > To reduce this yet further, you could do it as > > chmod -R g=u $dir > > This handles both directories and files in one pass, setting g

Re: Umask 002 policy

2004-12-26 Thread Vineet Kumar
* Cameron Hutchison ([EMAIL PROTECTED]) [041222 14:56]: > # find $dir -type f -print0 | xargs -0 chmod g=u,o=-rwx To reduce this yet further, you could do it as chmod -R g=u $dir This handles both directories and files in one pass, setting group perms equal to user perms, and nothing else (no m

Re: Umask 002 Policy

2004-12-23 Thread Juhasz Sandor
Hi! Finally, I could change the default umask. The winner is Cameron Hutchinson and the libpam-umask package. :-) I downloaded, and compiled it for my Woody machine (it is only available in Sagre and up), and it works as I expected. Many thanks for all your comments! Alex Merry Christmas for ever

Re: Umask 002 policy

2004-12-23 Thread Sam Watkins
On Wed, Dec 22, 2004 at 10:54:29PM +, Clive Menzies wrote: > However, I personally did chmod -R 770 on the basis that there aren't > usually executables in people's data files (at least not the users I'm > catering for). Nevetheless I can see the desirability of eliminating > the possibility o

Re: Umask 002 policy

2004-12-22 Thread Cameron Hutchison
Once upon a time Clive Menzies said... > > I've never really understood what the first digit does but > having reread the chmod manpage it falls into place almost. Setting > the group ID at 2, means any file or directory created by someone in 'group' > will apply the same attributes? Not q

Re: Umask 002 policy

2004-12-22 Thread Clive Menzies
On (23/12/04 09:51), Cameron Hutchison wrote: > > On (22/12/04 20:19), Juhasz Sandor wrote: > > > > > > 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

Re: Umask 002 policy

2004-12-22 Thread Cameron Hutchison
Once upon a time Cameron Hutchison said... > > To prepare a directory hierarchy for group use, I do the following: > > # chgrp -R $group $dir > # find $dir -type d -print0 | xargs -0 chmod 2770 > > (I usually use mode 2775, but I think you wanted 2770 from your > description) > > # find $dir -t

Re: Umask 002 policy

2004-12-22 Thread Clive Menzies
On (22/12/04 17:37), David Mandelberg wrote: > Clive Menzies wrote: > > For existing directories: $ chmod -R 775 should do the trick > That will work for the directories themselves, but all files in them will be > executable. > > I wrote a (very basic) bash script that will recursively make normal

Re: Umask 002 policy

2004-12-22 Thread Cameron Hutchison
> On (22/12/04 20:19), Juhasz Sandor wrote: > > > > 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/bas

RE: Umask 002 policy

2004-12-22 Thread Steven Jones
Menzies Cc: debian-user@lists.debian.org Subject: Re: Umask 002 policy Clive Menzies wrote: > For existing directories: $ chmod -R 775 should do the trick That will work for the directories themselves, but all files in them will be executable. I wrote a (very basic) bash script that will recursiv

Re: Umask 002 policy

2004-12-22 Thread David Mandelberg
Clive Menzies wrote: > For existing directories: $ chmod -R 775 should do the trick That will work for the directories themselves, but all files in them will be executable. I wrote a (very basic) bash script that will recursively make normal files one permission and directories another.[1] Just do

Re: Umask 002 policy

2004-12-22 Thread Clive Menzies
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.bash

Umask 002 policy

2004-12-22 Thread Juhasz Sandor
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

Umask 002 policy

2004-12-22 Thread Juhasz Sandor
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