[root@hps2 ~]# systemctl stop hps-managernode
* (pkttyagent:10364): WARNING *: Unable to register authentication agent: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.PolicyKit1 was not provided by any .service files
Error registering authentication agent: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.PolicyKit1 was not provided by any .service files (g-dbus-error-quark, 2)linux
[root@hps2 ~]# useradd aihps
[root@hps2 ~]# su - aihps
su: warning: cannot change directory to /home/aihps: Permission denied
su: failed to execute /bin/bash: Permission deniedbash
[root@hps2 ~]# stat /
File: ‘/’
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: fd01h/64769d Inode: 2 Links: 23
Access: (0600/drw——-) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2016-05-30 09:54:45.692000000 +0800
Modify: 2016-05-25 15:41:46.204000000 +0800
Change: 2016-05-25 15:41:46.204000000 +0800
Birth: -
問題出來了,這裏的權限是錯誤的,X權限的丟失形成的。markdown
[root@localhost ~]#chmod 755 /
修改後,問題消失。ide
產生上述問題的操做:
第一種,chmod 666 /,能夠致使。
或者,
第二種,chmod 700 /lib/ld-xxxx.so,也能夠致使su失敗。
有興趣能夠本身試一下。
/ 權限的丟失對於各類運行在本身用戶身份上的daemon也存在一樣的影響。spa