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 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).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest