Monday, June 28, 2010

Create new user and password using linux terminal

Senario: you're just a sudoer and do not have full access (not a root user)

Adding new user:
/usr/sbin/useradd riariver

Setting up password for new user
/bin/passwd riariver




Adding user in sudoer file

[jdoe@Eng-Lab-004 ~]$ su -
Password: {user root’s password}
[root@Eng-Lab-010 ~]# gpasswd -a jdoe wheel
Adding user jdoe to group wheel
[root@Eng-Lab-010 ~]#

No comments:

Post a Comment