Adicionar usuário a um grupo

Link: http://www.cyberciti.biz/faq/howto-linux-add-user-to-group/


useradd example - Add a new user to secondary group

Use useradd command to add new users to existing group (or create a new group and then add user). If group does not exist, create it. Syntax:
useradd -G {group-name} username


Link: http://www.cyberciti.biz/faq/unix-add-user-to-group/

UNIX Add Existing User To A Secondary Group

Use usermod command to modify a user's login definition on the system including group membership. For, example add user vivek to sales group, enter:
# usermod -G sales vivek


UNIX Add Existing User To A Primary Group

Add jerry to sales primary group and change its existing group membership:
# usermod -g sales jerry


Link sobre gerenciamento de usuários no Linux:
http://www.infowester.com/usuarioslinux.php
http://talesazevedo.blogspot.com/2008/05/gerenciando-usurios.html
http://sergioinfo.site88.net/Linux/Criando-e-gerenciando-usuarios-no-GNU/Linux.html


Para trocar o uid de um usuário já criado utilize o comando:
sudo usermod -u 1002 user
sendo 1002 o novo número do usuário.



Não deixe de conferir nosso novo blog sobre Linux em : Ubuntu "4us"
Share this article :
 

+ comentários + 2 comentários

Postar um comentário

 
Navegando pela Net - All Rights Reserved
Proudly powered by Blogger