Dir access permission

Posted on 2009-04-16
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
    LVL 29

    Expert Comment

    s :  is the  setuid permission

    have a look this one

    Author Comment

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

    Accepted Solution

    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

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
    Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    754 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

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now