我试图从最初从控制台login的用户获得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