Hi,<div><br></div><div>have a read of <a href="http://manpages.ubuntu.com/manpages/oneiric/man8/usermod.8.html">http://manpages.ubuntu.com/manpages/oneiric/man8/usermod.8.html</a></div><div><br></div><div>(usemod is pretty unchanged ever, as it is a 'core' Linux tool and applies across all versions and flavours - Debian / Red Hat based).</div>
<div><br></div><div>I prefer to write down the user / group hierarchy on paper to envision how the users apply to groups, you can either use the usermod function (always use the <b>-aG</b> and not just -<b>G</b> or -<b>g</b> for 'adding' [appending] a user to groups).</div>
<div><br></div><div>I also prefer to use the CLI usermod command, but you can do all these tasks with the menu --> System Tools --> Users and Groups, which is the GUI for usermod. </div><div><br></div><div>Regards,</div>
<div><br></div><div>Phill.</div><div><br><div class="gmail_quote">On 21 January 2013 02:50, Ioannis Vranos <span dir="ltr"><<a href="mailto:ioannis.vranos@gmail.com" target="_blank">ioannis.vranos@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Mon, Jan 21, 2013 at 2:40 AM, John Hupp <<a href="mailto:lubuntu@prpcompany.com">lubuntu@prpcompany.com</a>> wrote:<br>
><br>
> OK, thanks to all who have responded so far.<br>
><br>
> From the several responses here and additional reading, I'm glad to come to<br>
> the understanding that there is only one set of user/group configuration<br>
> information (/etc/passwd, /etc/group and /etc/shadow), though it can be<br>
> managed by different available tools. (This in contrast to network<br>
> configuration, which really does support two different configuration<br>
> systems.)<br>
><br>
> For a case where it is desirable for a couple users to work with the same<br>
> set of files, I'm now thinking that my fundamental approach was not quite<br>
> right and that I do not need to involve or maybe should not involve the<br>
> "users" system group.<br>
><br>
> What I'm now thinking should be the setup:<br>
> 1) Assign /home/user1 as the co-home directory for user2.<br>
> 2) Assign user2 to the user1 group as user2's *primary* group.<br>
> 3) Leave the ownership of /home/user1 as Owner: user1 and Group: user1.<br>
> With the /home/user1 permissions such that owner and group can edit, user1<br>
> and user2 should then be able to freely create, access and edit everything<br>
> in /home/user1.<br>
> 4) Delete /home/user2.<br>
><br>
> I expect then that this would solve my original problem in which new<br>
> sub-folders did not inherit ownership by the "users" group. And maybe<br>
> better respects Linux design principles.<br>
><br>
> Is that a good and workable proposed setup? Is there any obvious<br>
> consideration I am missing?<br>
<br>
<br>
</div></div>Linux ownership also includes SetUID, and SetGID.<br>
<br>
If SetUID is set for an executable, then when any user runs this file,<br>
it is as if the user set by SetUID is running the file.<br>
<br>
If SetGID is set for an executable, it is as if the user that runs it,<br>
belongs to the group specified by SetGID.<br>
<br>
<br>
If SetGID is set for a directory, then all files created in this<br>
directory, by any user, have their group ownership set to the group<br>
specified by SetGID, and not to the primary group of the user that<br>
creates the file.<br>
<br>
So, I think in your situation, a nice approach is to add user1 and<br>
user2 to group "users" (NOT as their primary group), and then set the<br>
SetGID attribute of their common directory to "users".<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
--<br>
Ioannis Vranos<br>
<br>
<a href="http://cppsoftware.binhoster.com" target="_blank">http://cppsoftware.binhoster.com</a><br>
<br>
--<br>
Lubuntu-users mailing list<br>
<a href="mailto:Lubuntu-users@lists.ubuntu.com">Lubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/lubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/lubuntu-users<br clear="all"><div><br></div>-- <br></a><a href="https://wiki.ubuntu.com/phillw" target="_blank">https://wiki.ubuntu.com/phillw</a>
</div></div></blockquote></div></div>