On Wed, May 19, 2010 at 3:10 PM, Aaron Toponce <aaron.topo...@gmail.com> wrote:
> On 05/19/2010 01:00 PM, Philipp Kern wrote:
>> When I do "newgrp <group>" it's still UPG and the umask should still be
>> 2, no?  This check would change my umask.
>
> If the new default group is named something other than your username,
> it's no longe UPG. UPG is only if the user name and group name match,
> and the user is the only member of that group.
>
> So, to answer your question, if your username was "foo" and you belonged
> to group "foo", of which you are the only member, then you do a "newgrp
> bar" for foo, foo is no longer in a UPG situation, so his umask should
> be 0022 at that point.

Except /etc/profile won't be sourced again unless "newgrp - <group>" is
used, right?

-- 
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <james...@debian.org>


--
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/aanlktimillfzkvbwdk2ruzmldg88pjmjtvhskvuyl...@mail.gmail.com

Reply via email to