I'm trying to get root access for a user who is initially logged in from a console. I have root access from another method. User does not have a username, so sudo
is not an option. Running su
returns error "su: cannot set groups: Operation not permitted". su
seems to have the correct permissions. What could be causing this?
$ 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