So the other night i did a chgrp -R and accidentally changed the group of / to www. Realized it pretty quick, when trying to shutdown via Gnome, that I had messed something up. So I did chgrp -R root /* and let it finish. Shutting down worked just fine.
However I tried to su and it gave an authentication error. So something got missed, or fouled up and shouldn’t have the root group applied to it. Anyone point me in that direction?
This changed the group of all files/directories to root.
However I tried to su and it gave an authentication error. So something got missed, or fouled up and shouldn’t have the root group applied to it. Anyone point me in that direction?
I suppose your problem is related to the fact that /etc/shadow (i.e. where the passwords are stored) is normally owned by the group shadow, not root, and the group has read permissions.
Try to run “chkstat” as root. That should fix the permissions of most system files/folders.
If you get an error message, please post it.
And I guess you should run “chgrp -R users /home/*” at least.
when i try to run it doesn’t seem to do anything. I tried --set and --warn for the / directory. I manually chgrp the shadow file and shadow-, didn’t seem to affect su command. still get the authentication error. I can login to gnome as root (how i’m doing all of this)
And I guess you should run “chgrp -R users /home/*” at least.
Right. The output from chkstat shows that the suid/sgid bits were missing.
/etc/shadow can only be read by its owner (root) and its group (shadow normally), because of the missing suid/sgid bits those utilities only ran as the normal user and could not access it therefore.