File permission

Discussion in 'macOS' started by zoliky, Apr 26, 2013.

  1. zoliky macrumors newbie

    Joined:
    Jun 8, 2009
    #1
    Hi,
    I have a file:

    Code:
    $ls -l
    -rw-r--r--@  1 zoliky  staff    7 Apr 26 23:00 file.sh
    I would like to move that file into root:wheel and the permission to be like this:

    Code:
    -rwxr-xr-x   1 root    wheel     nameofthefile.sh
    
    What command should I use for that? Thank you!
     
  2. w0lf macrumors 65816

    w0lf

    Joined:
    Feb 16, 2013
    Location:
    USA
    #2
    chmod 755 file
    sudo chown root:wheel file

    would result in

    -rwxr-xr-x root wheel
     

Share This Page