set permission -rw"S"r-xr-x

Discussion in 'Mac Basics and Help' started by ytrox, Jan 22, 2011.

  1. ytrox macrumors newbie

    Joined:
    Jan 22, 2011
    #1
    HI all, I'm searching a way to set as root the executable/domain socket permission bat I can't find nothing. anybody knows how to do this?
     
  2. chrismacguy macrumors 68000

    Joined:
    Feb 13, 2009
    Location:
    United Kingdom
    #2
    You should be able to do this via BSD Unix commands in the Terminal (Applications -> Utilities -> Terminal.app).
     
  3. belvdr, Jan 22, 2011
    Last edited: Jan 22, 2011

    belvdr macrumors 603

    Joined:
    Aug 15, 2005
    #3
    The command is chmod. This will get you the sticky bit:

    Code:
    chmod 4655 <file>
    This sets the setuid bit, but does not grant execute permissions to the owner (i.e. the capital S). If you want the owner to have execute perms as well, then issue:

    Code:
    chmod 4755 <file>
    Then you'll see a lowercase s, which means it is setuid and the owner has execute perms.
     
  4. LPZ macrumors 65816

    Joined:
    Jul 11, 2006
    #4
    Open Terminal (in Utilities) and enter the following, but don't press return. Be sure to leave a space or two after the x.

    Code:
    sudo chmod u=rws,go=rx 
    Now drag the file you want into the Terminal window and drop it there. The file is not actually being moved, but the file's path will be appended to the command you typed. Now click on the Terminal window to make it active and press return. Enter you password when requested to.
     
  5. ytrox thread starter macrumors newbie

    Joined:
    Jan 22, 2011
    #5
    Ok, thank you for your answers. sudo chmod 4755 works fine. In the post I have wrote a wrong capital "S". I need executable permission so I had to write "s"
     
  6. ytrox thread starter macrumors newbie

    Joined:
    Jan 22, 2011
    #6

Share This Page