<<<<<<< HEAD [[2022-05-24]] ==2022-05-24 19:34==
Default edits
Changing the username
- 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
- command to change username
usermod -l new_username old_user_name
- it will show the changes after the reboot
Changing the /home/dir name
- 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
- command to change username
usermod -m -d /home/new_username new_username
- use the
usermod -h
for description.
Changing the host name
- To change the host we have to modify the
/etc/hostname
file
use vi and change the hostname you like
[[2022-05-24]]
## Working With User
📅 2022-05-24 — ⏰ 14:49
- Change user name
- create user
- change user permission
delete user
Points ✴
data 💽
Command 💻
Links 🔗
1
0d502c5ed3591ca81542810c25c872d5258af4dd