Process Useradd RedHat
useradd [options] username
inactive until
passwd username
process action after command "useradd arif"
1. vi /etc/passwd
arif:x:501:501::/home/arif:/bin/bash
arif = username
x = indicate tht the system uses Shadow Password
501 = UID
501 = GID
:: = can be fullname or phone number
/home/arif = home directory
/bin/bash = default shell
2. vi /etc/shadow
arif:!!:14798:0:99999:7:::
3. vi /etc/group
arif:x:501:
4. vi /etc/gshadow
arif:!::
! = lock the group
5. create home directory on /home
ls -l /home
drwx------. 4 arif arif 4096 Mar 3 18:23 arif
6. copy default user setting on folder /etc/skel to /home/arif
ls -la /home/arif
drwx------. 4 arif arif 4096 Mar 3 18:23 .
drwxr-xr-x. 5 root root 4096 Mar 3 18:23 ..
-rw-r--r--. 1 arif arif 18 Jun 22 2010 .bash_logout
-rw-r--r--. 1 arif arif 176 Jun 22 2010 .bash_profile
-rw-r--r--. 1 arif arif 124 Jun 22 2010 .bashrc
No comments