I mistakenly changed ownership of all files on a CentOS system from root to my login account. I can login but if I su
I get:
su: cannot set groups: Operation not permitted
I don't need the system to be fully functional but I do need to su
into it for a few days. Since I can log in and I do have permission to the entire system, it seems like the su
function can't write to something with groups. If I change this then it will.
Does anyone know what permissions I need to change?
su
is complaining because thesetgroups()
call fails (not being run with uid=0). And since this is a security problem,su
decides to exit instead. I suggest you to boot a recovery/install media and restore the file ownerships/permissions. – Laszlo Valko Oct 27 '15 at 05:37/home
and your config files from/etc
and re-install from scratch. – cas Oct 27 '15 at 05:53