Make new user sub-folders inherit parent permissions
ioannis.vranos at gmail.com
Mon Jan 21 16:54:42 UTC 2013
On Mon, Jan 21, 2013 at 6:36 PM, John Hupp <lubuntu at prpcompany.com> wrote:
> Thanks Wes, Ioannis and Phill for the very helpful responses to the above
> I know a fair amount more on this topic now than when I first posted, and
> though the first post (by Wes) about SetUID, and SetGID went directly over
> my head, subsequent posts make it clear that this should probably be part of
> the solution here. In fact, I had already realized that my proposed setup
> would result in a mixture of user ownership in the user1 directory --
> perhaps not a problem, but setuid and setgid would clean that up.
> In the manpage for adduser.conf, there is this somewhat vague caution
> involving setgid, but no one here has echoed any concerns about it for my
> situation (unless it plays into Wes's point about dot files):
> If this is set to yes, then home directories for users
> their own group ( USERGROUPS=yes ) will have the setgid bit
> This was the default setting for adduser versions <<
> Unfortunately it has some bad side effects, so we no longer
> this per default. If you want it nevertheless you can
> activate it here.
> The point about having only one set of dot files for more than one user is
> also well taken, but at the moment I am not envisioning that as a real issue
> for this scenario.
> It's also instructive that Ioannis does not see membership of normal users
> in the system group "users" as any sort of transgression against the intent
> or design of the default system group layout. Perhaps this is the very sort
> of thing the "users" group is intended for.
Also, depending on what you want, you can create that common
directory, outside users' home directories (e.g. like
If you want both users to see it inside their home directories
(/home/user1, /home/user2), you can create a symbolic link (ln -s) to
this /common_directory, inside each user's home directory.
That is, inside /home/user1, and /home/user2, you type:
ln -s /common_directory
More information about the Lubuntu-users