Dir access permission

Posted on 2009-04-16
Medium Priority
Last Modified: 2012-05-06
Hi experts,

I have a dir "/var/log/talogger_data$" on my Ubuntu.  I used command "sudo mkdir 88" to create a directory "88". Now its access permission is

drwxr-sr-x 2 root copy    4096 2009-04-16 09:57 88

On this same machine there is another dir "/var/log/talogger_cpi_data$". I also used the same command "sudo mkdir 88" and the created dir "88" has an access permission of

drwxr-xr-x 2 root root   4096 2009-04-16 09:58 88

Notice the difference in the "grp" access permission. One is "sr" and the other is "xr". Anybody knows why "sr" was created?  What I want is "xr" instead of "sr".  I tried to use "chmod" to change "sr" but failed. any help?

Question by:davidw88
  • 2
LVL 29

Expert Comment

ID: 24160461
s :  is the  setuid permission

have a look this one

Author Comment

ID: 24160834
thanks fosiul01. then how to change "sr" to "xr"? or how to avoid setting up userid permission?
LVL 29

Accepted Solution

fosiul01 earned 375 total points
ID: 24161109
ommm to set setguid you need to type
chmod g+s file.txt

to remove it just give it any permission again , it will took s permisison

like chmod 755 file.txt

you will not see setguid permission again

try first .then go to live directory

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Fine Tune your automatic Updates for Ubuntu / Debian
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month15 days, 4 hours left to enroll

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question