惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Forbes - Security
Forbes - Security
T
Tailwind CSS Blog
Hugging Face - Blog
Hugging Face - Blog
Blog — PlanetScale
Blog — PlanetScale
WordPress大学
WordPress大学
aimingoo的专栏
aimingoo的专栏
Y
Y Combinator Blog
U
Unit 42
I
InfoQ
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
V
Visual Studio Blog
B
Blog RSS Feed
Vercel News
Vercel News
F
Fortinet All Blogs
Know Your Adversary
Know Your Adversary
T
Troy Hunt's Blog
博客园 - 【当耐特】
MongoDB | Blog
MongoDB | Blog
大猫的无限游戏
大猫的无限游戏
A
About on SuperTechFans
Jina AI
Jina AI
小众软件
小众软件
T
Threatpost
有赞技术团队
有赞技术团队
人人都是产品经理
人人都是产品经理
The Hacker News
The Hacker News
T
The Exploit Database - CXSecurity.com
C
CXSECURITY Database RSS Feed - CXSecurity.com
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Microsoft Azure Blog
Microsoft Azure Blog
Recent Announcements
Recent Announcements
酷 壳 – CoolShell
酷 壳 – CoolShell
Scott Helme
Scott Helme
B
Blog
腾讯CDC
Last Week in AI
Last Week in AI
P
Proofpoint News Feed
S
Schneier on Security
N
News and Events Feed by Topic
Microsoft Security Blog
Microsoft Security Blog
K
Kaspersky official blog
G
Google Developers Blog
T
Tor Project blog
PCI Perspectives
PCI Perspectives
S
Secure Thoughts
Google Online Security Blog
Google Online Security Blog
Latest news
Latest news
Google DeepMind News
Google DeepMind News
MyScale Blog
MyScale Blog
罗磊的独立博客

博客园 - xiahaitao

Python中使用 * 处理列表 ssh-copy-id端口问题 linux下邮件查看命令 CCNA Day3 CCNA Day2 CCNA Day1 linux下创建用户并设置密码 国内常用NTP服务器地址及IP 虚拟光驱导致无法安装光驱驱动的解决方法 Centos语言问题 使用grep查找文件并输出 cactil安装--解决缺少snmpwalk包的问题 华为S5300交换机里的,有啥用? vim替换字符串指令 用linux做双线接入的路由器 intel显卡linux驱动 cacti安装完后就停留在登陆界面,输入默认的用户名密码登陆不进去! sftpd 启动 报错: vsftpd:500 OOPS: bad bool value in config file for: anonymous_enable Linux iptables配置FTP的主动和被动模式
账户家目录修复过程
xiahaitao · 2013-02-01 · via 博客园 - xiahaitao

创建了一个用户user1,在创建的时候有人用root的权限创建了一个文件夹叫/home/user1,如何将家目录修复?

修订版:

1. 改权限

chown -R user1:user1 /home/user1

2. 将“/home/user1”改为user1的家目录

usermod -d /home/user1 -m user1

Tom-2013.2.20 老的版本如下,应该上面的版本更合适:
1. 将“/home/user1”改为user1的家目录
#usermod -d /home/user1 -m user1
2. 改权限
chown user1 /home/user1
chgrp user1 /home/user1
chown user1 /home/user1/.bash*
chgrp user1 /home/user1/.bash*