Dir access permission

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?

Who is Participating?
fosiul01Connect With a Mentor Commented:
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
s :  is the  setuid permission

have a look this one
davidw88Author Commented:
thanks fosiul01. then how to change "sr" to "xr"? or how to avoid setting up userid permission?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.