How to modify user's (home directory/files etc.)

1.0K    Asked by SiyaKohli in Devops , Asked on Jan 15, 2020
Answered by Siya Kohli

Adding information to any user account can be done via usermod command.

Adding info to user account

# usermod -c “This is my personalized account” devops

Change user home directory

# usermod -d /var/www/ devops

This will change user home directory from /home/devops to /var/www

Expiry of an user account

 # usermod -e 2020-12-12 devops

This will change the account expiry date of user devops.



Your Answer

Interviews

Parent Categories