Interesting. I had occasion to use usermod -g (per my man pages, again,
the g switch with usermod changes the primary group to the new one) to
change my primary group. It left my (previously existing) home directory
owned by <me>:users (as it was originally created), but new stuff that I
did within my home directory (and elsewhere) became owned by <me>:<new
primary group>.
I've never used usrmgr, and I've never had trouble (except my own brain
dead errors) with useradd or usermod.
Eric Hines
At 12/06/05 20:19, Michael Barnes wrote:
That's what my man page says, also. However, when applied to the adduser
script portion of smb.conf, it breaks usrmgr, which is the "recommended"
tool for adding users. Further, after the user is created, if I change
the primary group in usrmgr, it only changes the NTgroup, not the
Unixgroup :-( So, I have to go back to the command line and do a usermod
to set the Unix group correctly. And, if that isn't bad enough, it
creates the users home folder owned by root:root, so I have to do a chown
to change it to user:user. Sigh.
Michael
Eric Hines told me on 12/6/2005 20:21:
According to my SUSE man pages, adduser -g makes the group named after
the g switch the primary group of the user named at the end of the command.
Eric Hines
At 12/06/05 19:29, Michael Barnes wrote:
This only makes the user a member of a group. It does not change the
PRIMARY GROUP of the user.
Ideally, I want to set the primary group of the user at the time of user
creation. Lacking that, I'd like to be able to change the user's
primary NTgroup and Unixgroup at the same time.
Michael
Craig White told me on 12/6/2005 18:30:
On Tue, 2005-12-06 at 14:08 -0600, Michael Barnes wrote:
How do I establish both a user's primary NTgroup and Unixgroup when
creating a new user?
Depending on the tool, I can set his NTgroup or his Unix group, but I
don't seem to be able to establish both with one tool.
----
man smb.conf
Example: add user to group script = /usr/sbin/adduser %u %g
Craig
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
There is no nonsense so errant that it cannot be made the creed of the
vast majority by adequate governmental action.
--Bertrand Russell
There is no nonsense so errant that it cannot be made the creed of the
vast majority by adequate governmental action.
--Bertrand Russell
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba