admin avatar

Change the user's home directory for centos

🕛 by admin

Change the user's home directory for centos

yum install finger

Install related components

id username

View user uid

usermod -d /home/newfolder -u uid username

Modify the user's home directory,

finger username

Check whether the user home is successfully modified.

It is impossible to modify the home directory for users who have logged in online.

see link

https://www.vpslala.com/t/42

💘 相关文章

写一条评论