Make new user sub-folders inherit parent permissions

Ioannis Vranos ioannis.vranos at gmail.com
Sun Jan 20 04:09:08 UTC 2013


On Sun, Jan 20, 2013 at 3:04 AM, John Hupp <lubuntu at prpcompany.com> wrote:
> I have two users (user1 and user2), but for a special purpose I want to
> maintain a single store of files in the user1 home directory.
>
> So I added user1 and user2 to the "users" group, and reassigned the Group
> property for /home/user1 from "user1" to "users."
>
> I think that change automatically propagated to all the user1
> sub-directories, but I can't remember for sure.  It's possible that I
> manually changed the sub-directory permissions, perhaps even before the
> change to /home/user1.
>
> In any case, I thought that permission setup would automatically propagate
> to any new sub-folders, but I just created user1/Documents/Documentation,
> and it has Group: "user1."
>
> Can I configure this for the behavior I'm looking for?

user1 belongs to two groups, user1, and users. The first group, is his
primary group.

Change the primary group number of users user1, and user2,  in
/etc/passwd (this file contains the user number, and primary group
number).

-- 
Ioannis Vranos

http://cppsoftware.binhoster.com



More information about the Lubuntu-users mailing list