su:无法设置组:操作不允许

su:无法设置组:操作不允许

我正在尝试为最初从控制台登录的用户获取 root 访问权限。我通过另一种方法获得了 root 访问权限。用户没有用户名,因此sudo不是一个选项。运行su返回错误“su:无法设置组:不允许操作”。su似乎具有正确的权限。这可能是什么原因造成的?

$ whoami
whoami: cannot find name for user ID 1009500000
$ stat /bin/su
  File: '/bin/su'
  Size: 32096       Blocks: 64         IO Block: 4096   regular file
Device: fd40h/64832d    Inode: 133566      Links: 1
Access: (4755/-rwsr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2017-06-01 12:15:40.000000000 +0100
Modify: 2017-06-01 12:15:40.000000000 +0100
Change: 2017-11-16 11:00:54.706471778 +0000
 Birth: -
$ /bin/su --command=/myscript.sh
Password: 
su: cannot set groups: Operation not permitted

相关内容