Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

zoliky

macrumors newbie
Original poster
Jun 8, 2009
22
0
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!
 
chmod 755 file
sudo chown root:wheel file

would result in

-rwxr-xr-x root wheel
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.