Group permissions problem

Al Gordon runlevel7 at gmail.com
Mon Feb 20 15:35:44 UTC 2006


On 2/15/06, Tim Jackson <tim.jackson at ints.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
>
> David Mummery wrote:
> > Hi all -
> >
> > I'm setting up a multi-user LTSP environment based on Ubuntu.
> >
> > I need to have shared folders where users can save files e.g. openoffice documents -  that others can then modify.
> >
> > I have set umask = 0002 in /etc/login.defs and in .bash-profile file for a user. Logged out and logged in again.
> >
> > Umask is still 0022 (!)
> >
> > Even if I type umask 0002 in a shell ,and umask does change to 0002, I still do not create files in openoffice with group read/write permissions.
> >
> > Any ideas?
> >
> > David
>
> The bash_profile is sourced when you login to a shell like in
> non-graphical tty1 or ssh. It is not read by starting an X session.
> In the graphical login the /etc/X11/Xsession.d/ scripts set the
> environment.  I don't know if it the proper way to do it but creating a
> file in Xsession.d and setting umask in it will work for giving X window
> session users a umask different then what sets the default.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
> iD8DBQFD89U9gLVM9zV5AaMRAp3/AJ4zZGHp0KJZ49C3DqA1GF8XoTNxDQCffgct
> v5G5zz9fc9KBnZkr7xH3bPI=
> =U7TK
> -----END PGP SIGNATURE-----
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>

I tried this (setting umask in a script in /etc/X11/Xsession.d/) and
it didn't work for me.  My shell user did, in fact, get the new umask,
but anything created through the gui still had the same permissions as
before.

I noticed a similar conversation here, with no conclusive results:
http://lists.debian.org/debian-gtk-gnome/2004/09/msg00005.html

Debian bug #254840 is referenced in this, but from what I can tell,
that bug is closed with the directions edit the files in
/etc/X11/Xsession.d/ instead of /etc/login.defs.

It really seems like umask is hard coded somewhere, like in X or
nautilus or something.  When/if I get time, I might look at source
code to see if I can find references to it there.  Wish me luck, as
I'm no programmer.  ;)

--

  -- AL --




More information about the ubuntu-users mailing list