Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Try: (if you have access to su)

 su - root

These are pretty close to the os defaults, but you could make them more restrictive. (umask 027)

chown -R root:root /usr/bin
find /usr/bin -type d -exec chmod 0755 {} \;
find /usr/bin -type f -exec chmod 0755 {} \;
chmod 0666 /usr/bin
chmod 4111 /usr/bin/sudo
chmod 4755 /usr/bin/su
chmod 4755 /usr/bin/umount
chmod 4755 /usr/bin/pkexec
chmod 4755 /usr/bin/passwd
chmod 4755 /usr/bin/gpasswd
chmod 4755 /usr/bin/newgrp
chmod 4755 /usr/bin/at
chmod 4755 /usr/bin/crontab
chmod 4755 /usr/bin/chage
chmod 4711 /usr/bin/chfn
chmod 4711 /usr/bin/chsh
chmod 2755 /usr/bin/write && chown root:tty /usr/bin/write
chmod 2755 /usr/bin/screen && chown root:screen /usr/bin/screen
chmod 2711 /usr/bin/locate && chown root:slocate /usr/bin/locate
chmod 0644 /usr/bin/redhat_lsb_init

- or -

Once in recovery mode drop to the shell.

mount -o remount,rw /
chown root:root /usr/bin/sudo
chmod 4111 /usr/bin/sudo

reboot