Archives > 2007

Changing owner/permissions

(1/2) > >>

I migrated Panther files to a fresh Tiger install. Immediately rebooted to the newly moved user which had all my user info. Now I encounter many files that are reported as belonging to the Tiger account even though they were created on the Panther volumes and many exist on separate volumes. I believe this happened because the Tiger account is 501 and those other files were also created by 501 albeit while in Panther.

Moved user account is now 502 since it was technically the second account created within the Tiger install. Since this is causing a lot of problems with using files/folder and may be a problem with backups, I would like to consolidate all 501 and 502 files/folders to one account and delete the other. The 502 account is the one I want to use. Will it present any problems wince 501 is usually the primary account? If not, could you help me with the proper commands to do so? Or would just deleting the 501 account do the trick without orphaning the files and folder and making them unusable? If I can combine to 502, could I then delete the 501 and change 502 to 501?

I came across the following suggestions in similar thread  at another forum but not sure which might be the correct way.
QUOTESo for example, if the old account was 'tommy' and the new account is 'thomas', then create thomas, and while still in another account copy the files from /Users/tommy to /Users/thomas, then give the command

sudo chown -R thomas:thomas /Users/thomas

The 'thomas:thomas' means it will change both user AND group. The '-R' means it will change everything inside the directory that the command points at--in this case /Users/thomas.


QUOTEI just wanted to finish up this thread. 1st of all, Trevor, thnx 4 all your help. In the end I used:
sudo niutil -createprop . /users/userName uid 501
to change his UID to 501. Then:
sudo find / -user UID -exec chown userName {} \;
to search out files created by my buddy & other admin accounts & change the ownership to him. My friend had files he created coming up owned by UID 501, 503, & 504. Strange...
I tried this in the begining of my troubleshooting & it didn't help. I got advice from a few forums & combined suggestions, tired a few things & eventually things were @ the point the ownership changes stuck.

Please note I am not all that comfortable in the Terminal so I need explicit instructions.

QUOTEPlease note I am not all that comfortable in the TerminalNor am I, that's why I always take a friend with me when I visit the bus station...

You're way over my head with this quest! Only thing I would suggest is asking for help in some of those 'geek' forums. Just be prepared for some less than extensive suggestions until they understand your exact request. Then comes the dilemma of trying something suggested by someone you know absolutely nothing about!

Good luck and if you aren't completely blocked from using the new setup, let us know how it goes! If it all comes crashing down around you, I think you have some snail mail addresses of some of us!

I have also posted on the Apple board and at  The latter are pretty Geeky so I hope to get some help there.

Things are working OK, it's just that when I copy something to a partition it tells me that I don't have permission and have to authenticate. I disabled permissions on the data volumes but I don't want to do that on the boot partitions or it will screw things up royally.

Am in the process of doing some extra backups to externals.  

Every time I see a reference to Terminal I think of that old Parkay® commercial: "It's not nice to fool mother nature!"

It's much more comforting to know exactly what each command and their arrangement in the statement means/does and the possible consequences of a miss-typed command. Backups are critical, of course, but I still wince when I see -rm in a line!

I fear that your particular problem is not that wide-spread and there may be simple if more inconvenient methods for getting Permissions back in line. Does removing a user not reset any/all Permissions for that user back to 501? Or do the files hang around with out-of-date 'ownership?'

That's what I'd like to know. If removing the one account will automatically make the files that were belonging to it now belong to admin or system then it would be OK. But I want to make sure they suddenly don't become unusable.


[0] Message Index

[#] Next page

Go to full version