Permissions, Permissions, Permissions

James Gray james at grayonline.id.au
Sun Jul 2 20:32:33 UTC 2006




On 3/7/06 4:55 AM, "Bobby Sanders" <ssanders at ssvzc.com> wrote:

> Running Breezy. gnome2, metacity
> 
> For user joe, set Joe's umask to 0007 in ~/joe/.bashrc

Maybe have a read on how to set a umask properly.  A four digit umask makes
no sense - what's the 4th digit supposed to set?  You can only mask the
owner/group/other permissions, not the sticky/UID/etc bits.

However, the screwy umsk isn't your problem.  Your problem is in the
different ways the umask is sourced for terminal and X11 apps.  The proper
place to set "universal" login prefs is in  /etc/login.def (IIRC - I'm on my
Mac ATM).  Reading that file though, you'll quickly discover there is a
better way with pam_umask (IIRC).

HTH,

James






More information about the ubuntu-users mailing list