On Thursday 12 June 2003 14:25, Keppy wrote:
> Dmitry,
>
> Unless I missed the post, there is a command for displaying the groups a
> user belongs to. Its called "groups" funnily enough.
>
> # groups username

Thanks, Keppy! I knew about groups command, but for some reason I missed that 
it can be given a username ;). 

>
> will return the groups that user belongs to.
>
> Then to modify a user account - including add another group to that user
> - use the "usermod" command funnily enough.
>
> # usermod -G newgroup,group1,group2,... username
>
> will add "newgroup" to the list of groups that user belongs to. Make
> sure to include all the present groups though.

I've done similar thing, but I used the list of groups given to me by 
'id username' command.

> Regarding you query about having to re-login to initiate new user and
> group settings. Someone correct me if I'm wrong but won't:
>
> # su - username

In my case, I was looking for a way to not doing 'su' to root each time I use 
emerge (see my prev posts in this thread for a reason why).

Anyway thank you very much for your answer!

Regards, 
Dmitry.


--
[EMAIL PROTECTED] mailing list

Reply via email to