Su: Cannot Set Groups Operation Not Permitted on Rhel 7
By Mistake We Did Chmod 777 on All Directories of Our Rhel 7 Server. Now We Are Trying to Do Su Root from a Different User but We Are Getting the Following...
By mistake we did chmod 777 on all directories of our rhel 7 server. Now we are trying to do su root from a different user but we are getting the following error su: cannot set groups: Operation not permitted.
Please let me know what steps i can follow to rectify the same.
1 Answer
chmod 4755 /bin/su
After executing above command i was able to do login as su from normal user (after chmod 777 for all directories).