Shashikant shah

Wednesday, 12 September 2012

HOW TO CHANGE USRENAME


  1. shashi (new username)
  2. unicom (old username)

# usermod -d /home/shashi -m -l shashi unicom

# groupadd shashi ( Create a group for shashi )

# system-config-users (GUI interface)

# shashi (select user)


# Go to properties – Group – unselected unicom


# select shashi




# chown -R shashi:shashi /home/shashi ( change the Ownership )

# cat /etc/passwd | grep shashi

shashi:x:508:510::/home/shashi:/bin/bash

No comments:

Post a Comment