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

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

  1. ytrox macrumors newbie

    Jan 22, 2011
    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

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

    belvdr macrumors 603

    Aug 15, 2005
    No longer logging into MR
    The command is chmod. This will get you the sticky bit:

    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:

    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

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

    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

    Jan 22, 2011
    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

    Jan 22, 2011

Share This Page