_unknown User and Lack of Permission

It's been about a month or so since I last attached my external drive. Never had any problems.

Today, I attached it because there were two things I wanted to accomplish:

1) Copy a file from an old Time Machine backup (of a previous installation).
2) Edit the tags and information of some of the audio in my iTunes library (I store it all on there).

I tried iTunes first. I couldn't edit the information (Artist, Year, etc.) for the majority of my files. I navigated to the their directory in Finder. Pressed cmd+i and noticed a user called "_unknown" (with RW privleges. Alongside staff and everyone which are read only). I wasn't listed (whereas I was for those few files I could still edit in iTunes, with Read & Write).

So, then I tried copying that file I was after instead. I couldn't even reach the file. Just trying to enter the back up copy of the Documents folder brought up:

===
The folder "Documents" can't be opened because you don't have permission to see its contents
===

cmd+i again and noticed the same thing. I'm not listed but "_unknown" is. Again, _unknown has RW privileges. The only other user is "everyone" with no access.

I manually added myself back onto that Documents folder and copied the file I was looking for. I really don't want to do that for every other file that's experiencing a problem. Is there an automated way of doing this?

Through the Terminal I'm assuming.

Much thanks!

MacBook Pro, Mac OS X (10.6.5)

Posted on Nov 17, 2010 10:32 PM

Reply
19 replies

Nov 18, 2010 12:22 PM in response to baltwo

Following those instructions, I was successfully added to the staff group.

However, that isn't of much benefit for my original problem. Pressing cmd+i on the folders in my Time Machine directories still reports that I do not have access. The only users listed are "_unknown" with Read & Write privileges and "everyone" with No Access.

My audio files (in my iTunes library, also on the same external drive) state that I have custom access. Staff is listed as a user, but only with Read Only privileges.

Nov 18, 2010 1:25 PM in response to TRIFORCE89

Any path you want to restore yourself as owner (using Terminal);
at the prompt:
sudo chown -R <user>:<group> /Path/to/change
(press return, enter admin password,press return again)

sample; user is 'joe', group is 'staff', external disk named 'mydata', folder is 'joe's folder':
sudo chown -R joe:staff /Volumes/mydata/"joe's folder"
#path names with space(s) in them must be enclosed in quotes#

http://support.apple.com/kb/HT2963?viewlocale=en_US

http://www.comentum.com/unix-osx-permissions.html

http://www.gideonsoftworks.com/macosxprivileges.html

http://brockwoolf.com/blog/change-file-permissions-using-terminal-in-mac-os-x

http://osxfaq.com/Tutorials/LearningCenter/

http://en.wikipedia.org/wiki/Chmod

http://en.wikipedia.org/wiki/Chown

http://manuals.info.apple.com/enUS/Command_Line_Adminv10.5.pdf

http://manuals.info.apple.com/enUS/File_Services_Adminv10.5.pdf

Nov 18, 2010 3:00 PM in response to baltwo

The command I used for iTunes was what KJK555 posted.

sudo chown -R <user>:<group> /Path/to/change

So, in my case:
sudo chown -R myname:staff /Volumes/"HFS+ HD"/"iTunes Media"

While just sudo chown -R byname:staff /Volumes/"HFS+ HD" didn't work. It stopped part way through the Time Machine backup directory and every file said "Operation not permitted"

With Time Machine, the only users listed are "_unknown" with Read & Write privileges and "everyone" with No Access. Can I edit "everyone" so they have access? Or add the staff somehow?

Nov 18, 2010 6:47 PM in response to TRIFORCE89

"With Time Machine, the only users listed are "_unknown" with Read & Write privileges and "everyone" with No Access. Can I edit "everyone" so they have access? Or add the staff somehow?"

first give "everyone" (others) read privileges:
sudo chmod -R o=u /Path/to/change

next:
sudo chmod -R =rw,+X,g=u /Path/to/change

next:
sudo chown -R <user>:<group> /Path/to/change

Nov 19, 2010 5:30 AM in response to KJK555

Unfortunately those last three commands didn't seem to work, KJK555.

sudo chmod -R o=u /Path/to/change
sudo chmod -R =rw,+X,g=u /Path/to/change
sudo chown -R <user>:<group> /Path/to/change

For each command, "Operation not permitted" was displayed for every file (or just about every file. There's too many lines to look through).

By the way, just some additional information since I hadn't mentioned it before. I can access the Time Machine files either through the Finder or through the Time Machine application itself.

In in interim, I manually added myself to some of the directories I can't access in the "latest" backup (of my previous installation. I don't have access issues with the backups of my current installation) by pressing cmd+i and then unlocking the padlock and adding a user.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

_unknown User and Lack of Permission

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.