chmod 777 /导致系统异常
2020-08-15误操作执行权限导致系统异常,sshd无法启动,mysql无法启动等。
1、修改各个路径权限,sshd恢复了
2、mysql总是启动failed报错,但是没有更多日志,清理my.cnf后,报:
[root@server001 etc]# systemctl start remysqld.service
** (pkttyagent:2546): WARNING **: 19:36:12.358: Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject
Error registering authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject (polkit-error-quark, 0)
Failed to start remysqld.service: Unit not found.
Error registering authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject (polkit-error-quark, 0)
Failed to start remysqld.service: Unit not found.
3、stat /发现为644
stat /
File: ‘/’
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: fd01h/64769d Inode: 2 Links: 19
Access: (0755/drw-r-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2020-08-15 19:39:14.890879979 +0800
Modify: 2019-12-03 15:06:44.876785228 +0800
Change: 2020-08-15 19:39:02.698879979 +0800
Birth: -
File: ‘/’
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: fd01h/64769d Inode: 2 Links: 19
Access: (0755/drw-r-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2020-08-15 19:39:14.890879979 +0800
Modify: 2019-12-03 15:06:44.876785228 +0800
Change: 2020-08-15 19:39:02.698879979 +0800
Birth: -
4、chmod 755 /后都正常了
分类:Linux | 标签: |