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

yellow

Moderator emeritus
Oct 21, 2003
16,018
6
Portland, OR
Read the man page?

http://www.hmug.org/man/8/chown.php

AFAIK, 'id -u' is not a flag that chown understands. My guess is that it will complain about syntax.

However, "id -u" will give the numerical UID of the current user.. I don't know if it would be called correctly from inside chown but it did.. this command would change the ownership of the application to the UID of whomever is the current user.

EDIT: I was right.. 'id -u' is an invalid argument.

Code:
sudo chown -R 'id -u' /Users/yellow/Desktop/BooBoo.app
chown: id -u: Invalid argument

Perhaps this person wanted you to do id -u in the Terminal FIRST, and then substitute that numerical UID for the 'id -u' portion.. which is how the syntax should go when using chown.
 

dogbone

macrumors 68020
Original poster
Thanks for the quick reply.

I've already been through the experience of trashing my system folder by a syntax error. Which is why I'm going to be absolutely sure this time before I do anything.:)

I'll have a look at that link it looks like it might do the trick. When I work out the correct code I'll confirm it first here to make sure I've got it right.

My gf has inherited my old computer and I've deleted all traces of me from the system but all the apps I installed have wacky permissions and ownership.

My goal is to change everything inside the Application folder to be owned by the proper owner of the computer and the group to be Admin, and all the permissions to be rwxrwxr--, then to run a repair permissions to change all the System apps back to their default values. I was given the above code but I'm not sure about it yet.

EDIT:, Just looked at the link and I'm not going to be able to work out the terminal commands on my own.
 

yellow

Moderator emeritus
Oct 21, 2003
16,018
6
Portland, OR
Oh.. if you know your girlfriend's short username, just do:

sudo chown -R shortusername /Applications/

sudo chmod -R ugo+wrX /Applications


Repair permissions to fix any apps that require particular permissions.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.