Change the user's home directory for centos
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
💘 相关文章
- How to query the hard disk usage time of various distribution Linux systems
- MySQL adds the user with the least authority and the method of restricting the user to occupy system resources
- 更改用户home目录 for centos
- unzip End-of-central-directory signature not found 错误的解放方法
- linux stdio.h: No such file or directory的解决方法
- rclone error listing directory not found的解决方法
- ubuntu 系统出现has install-snap change in progress的解决方法
- Seek the full name of this movie
- mac系统Error: The current working directory doesn't exist, cannot proceed.的解决方法
- 开源3D设计软件Sweet Home 3D