<<<<<<< HEAD [[2022-05-24]] ==2022-05-24 19:34==

Default edits

Changing the username

  1. get the root access OR log out the user session you want to change else it give error
    usermod: user old_user is currently used by process 2345
  2. command to change username usermod -l new_username old_user_name
  3. it will show the changes after the reboot

Changing the /home/dir name

  1. get the root access OR log out the user session you want to change else it give error
    usermod: user old_user is currently used by process 2345
  2. command to change username usermod -m -d /home/new_username new_username
  3. use the usermod -h for description.

Changing the host name

  1. To change the host we have to modify the /etc/hostname file
  2. use vi and change the hostname you like

    [[2022-05-24]]

    ## Working With User

📅 2022-05-24 — ⏰ 14:49

Tags ♠️

0d502c5ed3591ca81542810c25c872d5258af4dd