Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Migration of user home directory

Shulou Source: shulou.com Published: 2022-06-01 02:45:35 10月01日 Update

1 > create a new disk partition / dev/sdb1/home

2 > copy the directory under the user to the new partition

For example: user: lili

# cp-rp / home/lili / dev/sdb1/home/lili

3 modify the user's permissions in / etc/passwd in lili

# vim / etc/passwd

4 find the user lili and set her directory to / dev/sdb1/home

5 users can not see the change when they log in.

Ps: users can be given a disk quota if necessary to limit the amount of disk they occupy.

Tags: Users disks directories necessary occupancy permissions quotas changes logins restrictions Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS MySQL Huawei Shulou Tech Info vpn