Operating System - HP-UX
1855231 Members
5039 Online
104109 Solutions
New Discussion

Re: User add in admin group

 
anthink
Contributor

User add in admin group

how to add a user & how to add a normal user to admin gorup using command line in HP-UX Foundation Operating Environment.
Thanks;
2 REPLIES 2
Ernesto Cappello
Trusted Contributor

Re: User add in admin group

Hi anthink, the command to create a new user or update default new user information is "useradd".

For further information see http://linux.about.com/od/commands/l/blcmdl8_adduser.htm

To add a new user to secondary group
useradd -G {group-name} username

For further information see http://www.cyberciti.biz/faq/howto-linux-add-user-to-group/
or

1) get the current groups of the user by groups command
2) usermod -G grp1,grp2,newgrp username
3) logout and login again.

For further information see http://www.unix.com/shell-programming-scripting/33867-command-add-users-group.html


Best regards.
Ernesto

Jeeshan
Honored Contributor

Re: User add in admin group

#man useradd
a warrior never quits