From owner-freebsd-questions Wed Dec 25 11: 2: 5 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E5A9F37B401 for ; Wed, 25 Dec 2002 11:02:03 -0800 (PST) Received: from hotmail.com (f54.law15.hotmail.com [64.4.23.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9DE9E43EE5 for ; Wed, 25 Dec 2002 11:02:03 -0800 (PST) (envelope-from bill_moran2@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 25 Dec 2002 11:01:26 -0800 Received: from 66.132.12.15 by lw15fd.law15.hotmail.msn.com with HTTP; Wed, 25 Dec 2002 19:01:25 GMT X-Originating-IP: [66.132.12.15] From: "Bill Moran" To: freebsd-questions-local@be-well.no-ip.com Cc: questions@FreeBSD.ORG Subject: Re: Default permissions under X (umask?) Date: Wed, 25 Dec 2002 14:01:25 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 25 Dec 2002 19:01:26.0200 (UTC) FILETIME=[063BCB80:01C2AC48] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >From: Lowell Gilbert >"Bill Moran" writes: > > > I would like to set my default permissions for X windows apps. > > I've set my umask for bash, which works great when I'm in a > > terminal, but it doesn't seem to have any effect on X apps > > (such as the Mozilla downloader, for example, or when I create > > new files with Code Crusader) > > Files are created rw-------, which is pretty restrictive when > > working on the server (something like rw-rw---- would be more > > appropriate - it's what I have the umask set to in bash) > > Is there a way to globally set the umask for all X apps? It's > > very easy to forget and the other members of my team keep chewing > > me out. I tried calling the umask command from my .xinitrc file, > > but it doesn't seem to have any effect. > >It *should* work -- it does for me. >[Although, in my case, it's the .xsession file, because I use xdm.] Well, now that I'm taking a more careful look, it does ... sort of. It seems as though I've been looking at the wrong thing, the problem appears to be in the Mozilla downloader. When I save an email from Mozilla, it gets rw-rw-r--, but when I download a file, it gets rw-------. I'll check the docs and Bugzilla to see if this is by design or a known issue ... if not, I'll file a bug report. Thanks for the pointer, and sorry for the noise. -Bill _________________________________________________________________ MSN 8: advanced junk mail protection and 3 months FREE*. http://join.msn.com/?page=features/junkmail&xAPID=42&PS=47575&PI=7324&DI=7474&SU= http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_advancedjmf_3mf To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message