Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Migration of user home directory

2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report