Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Nov 2009 09:57:58 -0800 (PST)
From:      James Phillips <anti_spam256@yahoo.ca>
To:        Dan Nelson <dnelson@allantgroup.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: [Solved] Do permissions take time to take effect?
Message-ID:  <225765.44422.qm@web65505.mail.ac4.yahoo.com>
In-Reply-To: <20091118152153.GB89004@dan.emsphone.com>

next in thread | previous in thread | raw e-mail | index | archive | help



--- On Wed, 11/18/09, Dan Nelson <dnelson@allantgroup.com> wrote:


> In the last episode (Nov 17), James
> Phillips said:
> > I wanted to create a shared directory writable by all
> users. When it
> > initially failed, I assumed there may be a blanket ban
> on writing to
> > directories owned by root.  Today, I was able to
> write to the root-owned
> > "Share" directory.  However, when I re-created
> the directory owned by a
> > special-purpose "Share" user, I ran into the same
> problem again.
<SNIP!>
> 
> You are probably in the "users" group.  Running either
> the "groups" or "id"
> command will say for sure.

Yes, I was using the "cd" and "pwd" combination as a poor replacement.
It is possible to re-assign the "home" directory.

$ groups
james Share
$ id
uid=1001(james) gid=1001(james) groups=1001(james),1003(Share)

(I have since deleted the "users" group: it is a Debian thing, and I had NIS set up to NOT export the membership information)
<SNIP!>
> 
> If you are currently either the "james" or "backup" user,
> and added the
> Share group membership on another tty, then you may need to
> log out and back
> in for the system to assign your new group membership to
> your session. 
> Filesystem permissions take effect immediately, but group
> memberships are
> assigned once, at login.

This here was the problem. I was not logging out after the changes. However, I am in the habit of logging out at the end of the day. As a result, I would get the updated permissions when I log in the next day.

Thank-you for your help,

James Phillips



      __________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?225765.44422.qm>