Hi, look into /etc/groups. http://www.cyberciti.biz/faq/howto-linux-add-user-to-group/
has a good discussion on the subject. When I was a 'school' we had to set up the goups 'professors', 'interns' and 'students'. Professor A was in all 3 gropus Intern A was in 'interns' and 'students' Student A was in 'students. The 'group' part of the file user permissions is often over looked, yet very useful :) Regards. On 20 January 2013 18:56, John Hupp <[email protected]> wrote: > On 1/19/2013 11:09 PM, Ioannis Vranos wrote: > > On Sun, Jan 20, 2013 at 3:04 AM, John Hupp <[email protected]> > <[email protected]> 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). > > > This opens up yet more questions. /etc/passwd only contains the > original GID's for user1 and user2. It does not reflect that both have now > been also added to the "users" group. So it seems that more than one > user/group configuration system is being supported. > > I have been reading today the manpages for adduser, addgroup, and > adduser.conf. Interestingly, it does not document where it stores the > configuration information -- perhaps because adduser and addgroup are only > front-ends for useradd and groupadd. There is no mention of /etc/passwd, > for instance. > > But apart from that, Lubuntu's GUI tool for Users and Groups is > users-admin (which I used for my customizations), and I have not yet found > any handy documentation for that. There may be something somewhere at > library.gnome.org, but I have not found it yet. But poking around a bit > in the interface, I see that it does not even show that user1 is a member > of the user1 group, and likewise with user2. So again, that indicates to > me that more than one user/group configuration system in effect. > > -- > Lubuntu-users mailing list > [email protected] > Modify settings or unsubscribe at: > https://lists.ubuntu.com/mailman/listinfo/lubuntu-users > > -- > <https://lists.ubuntu.com/mailman/listinfo/lubuntu-users> > https://wiki.ubuntu.com/phillw
-- Lubuntu-users mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/lubuntu-users
