Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #7727

Re: GUI apps not honoring umask

From Jean-David Beyer <jeandavid8@verizon.net>
Newsgroups comp.os.linux.misc
Subject Re: GUI apps not honoring umask
Date 2013-04-03 07:27 -0400
Organization NewsGuy - Unlimited Usenet $23.95
Message-ID <kjh3nh08ul@news4.newsguy.com> (permalink)
References <kjf833$vnv$1@news.albasani.net> <eli$1304030227@qz.little-neck.ny.us> <kjgukt$n6s$1@news.albasani.net>

Show all headers | View raw


On 04/03/2013 06:01 AM, The Natural Philosopher wrote:
> On 03/04/13 07:27, Eli the Bearded wrote:
>> In comp.os.linux.misc, The Natural Philosopher  <tnp@invalid.invalid>
>> wrote:
>>> Problem. I have a shared server (Linux, NFS mounted with full root
>>> perms)  and any file I create with any desktop app has 644 perms on it.
>>> Now the server is well behaved and forces the group to 'staff' and the
>>> other users are all in group 'staff' but its a real pain in the butt
>>> when while any console app creates files with umask perms (currently
>>> 664.002) no GUI app does. They seem to overided these.
>>
>> I'm guessing that you set the umask in your shell, but you are not
>> launching the GUIs from the shell. umask is inherited like the
>> environment, you must set it very high up the chain to effect
>> EVERYTHING.
>>
> 
> yes...its to discover where the configuration is in fact set for the X
> windows desktop session that is my problem.
> 
>> Second thing to consider is umask is a MASK. If a program sets
>> permissions conservatively in open(), the mask won't help:
>>
> Exactly so.
> 
> Brute force is to use access control to simply override file perms.
> 
> And that is handy because it can be done on a per directory tree.
> 
> Which works better in my case of a shared partition on a networked server.
> 
> But I'd still like to know how to set the X-window desktop env up with
> the umask I want.
> 

Since I usually run with X-window system, I put stuff like that in my
~/.bashrc file. E.g.,


DellT7600:jeandavid8[~]$ cat .bashrc
# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
	. /etc/bashrc
fi

# Added by Jean-David Beyer
PS1="\h:\u[\w]\\$ "

alias c=clear

umask 027

# User specific aliases and functions
GPG_TTY=$(tty)
export GPG_TTY

EDITOR=emacs
export EDITOR

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

GUI apps not honoring umask The Natural Philosopher <tnp@invalid.invalid> - 2013-04-02 19:29 +0100
  Re: GUI apps not honoring umask Lew Pitcher <lpitcher@teksavvy.com> - 2013-04-02 15:03 -0400
    Re: GUI apps not honoring umask Lew Pitcher <lpitcher@teksavvy.com> - 2013-04-02 15:08 -0400
      Re: GUI apps not honoring umask The Natural Philosopher <tnp@invalid.invalid> - 2013-04-02 21:01 +0100
  Re: GUI apps not honoring umask Eli the Bearded <*@eli.users.panix.com> - 2013-04-03 06:27 +0000
    Re: GUI apps not honoring umask The Natural Philosopher <tnp@invalid.invalid> - 2013-04-03 11:01 +0100
      Re: GUI apps not honoring umask Robert Heller <heller@deepsoft.com> - 2013-04-03 06:22 -0500
        Re: GUI apps not honoring umask The Natural Philosopher <tnp@invalid.invalid> - 2013-04-03 12:46 +0100
          Re: GUI apps not honoring umask Robert Heller <heller@deepsoft.com> - 2013-04-03 08:13 -0500
            Re: GUI apps not honoring umask Eli the Bearded <*@eli.users.panix.com> - 2013-04-03 22:13 +0000
              Re: GUI apps not honoring umask The Natural Philosopher <tnp@invalid.invalid> - 2013-04-03 23:45 +0100
              Re: GUI apps not honoring umask Robert Heller <heller@deepsoft.com> - 2013-04-03 17:50 -0500
        Re: GUI apps not honoring umask Chick Tower <c.tower@deadspam.com> - 2013-04-04 17:47 +0000
      Re: GUI apps not honoring umask Jean-David Beyer <jeandavid8@verizon.net> - 2013-04-03 07:27 -0400
        Re: GUI apps not honoring umask The Natural Philosopher <tnp@invalid.invalid> - 2013-04-03 12:48 +0100
          Re: GUI apps not honoring umask Jean-David Beyer <jeandavid8@verizon.net> - 2013-04-03 09:59 -0400
            Re: GUI apps not honoring umask The Natural Philosopher <tnp@invalid.invalid> - 2013-04-03 15:26 +0100
              Re: GUI apps not honoring umask Richard Kettlewell <rjk@greenend.org.uk> - 2013-04-03 15:28 +0100
              Re: GUI apps not honoring umask J G Miller <miller@yoyo.ORG> - 2013-04-03 14:46 +0000
                Re: GUI apps not honoring umask The Natural Philosopher <tnp@invalid.invalid> - 2013-04-03 17:08 +0100
                Re: GUI apps not honoring umask J G Miller <miller@yoyo.ORG> - 2013-04-03 16:59 +0000
                Re: GUI apps not honoring umask The Natural Philosopher <tnp@invalid.invalid> - 2013-04-03 18:45 +0100
                Re: GUI apps not honoring umask Jean-David Beyer <jeandavid8@verizon.net> - 2013-04-03 14:48 -0400
                Re: GUI apps not honoring umask The Natural Philosopher <tnp@invalid.invalid> - 2013-04-03 19:56 +0100
                Re: GUI apps not honoring umask Jean-David Beyer <jeandavid8@verizon.net> - 2013-04-03 15:28 -0400
                Re: GUI apps not honoring umask Octothorpe <Octothorpe@invalid.com> - 2013-04-03 18:33 -0400
                Re: GUI apps not honoring umask The Natural Philosopher <tnp@invalid.invalid> - 2013-04-03 23:47 +0100
                Re: GUI apps not honoring umask Octothorpe <Octothorpe@invalid.com> - 2013-04-03 19:30 -0400
                Re: GUI apps not honoring umask Richard Kettlewell <rjk@greenend.org.uk> - 2013-04-04 09:08 +0100
                Re: GUI apps not honoring umask The Natural Philosopher <tnp@invalid.invalid> - 2013-04-03 18:48 +0100
  Re: GUI apps not honoring umask Bit Twister <BitTwister@mouse-potato.com> - 2013-04-03 11:53 +0000
    Re: GUI apps not honoring umask The Natural Philosopher <tnp@invalid.invalid> - 2013-04-03 13:22 +0100
      Re: GUI apps not honoring umask Bit Twister <BitTwister@mouse-potato.com> - 2013-04-03 12:49 +0000
        Re: GUI apps not honoring umask The Natural Philosopher <tnp@invalid.invalid> - 2013-04-03 15:22 +0100
          Re: GUI apps not honoring umask Bit Twister <BitTwister@mouse-potato.com> - 2013-04-03 21:20 +0000
            Re: GUI apps not honoring umask The Natural Philosopher <tnp@invalid.invalid> - 2013-04-03 22:32 +0100

csiph-web