I just changed my file permissions using $ sudo chmod g+s filename and my file permissions turned from drwxr-xr-x to drwxr-sr-x. How do I remove it?
I just changed my file permissions using $ sudo chmod g+s filename and my
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Change the
+for adding a permission into a-to remove it:If you want to do this programatically, you’ll need to use some bitwise operators. Normally it’s
where
S_ISUIDis 0o4000, a constant that uses mode bits above the typicalrwxones of something like0644.For example, in python
which prints