Somehow my /private folder lost it's '@' attribute. Now, the folder shows up in my finder:

0 drwxr-xr-x    6 root  wheel       204 Mar  1 21:25 private

This is what it should be:

0 drwxr-xr-x@   6 root  wheel       204 Mar  1 21:25 private

How do I set it back?

link|improve this question
feedback

migrated from stackoverflow.com Mar 6 '11 at 21:22

This question came from our site for professional and enthusiast programmers.

1 Answer

up vote 0 down vote accepted

It's an indicator of extended attributes. On my machine, it's only com.apple.FinderInfo, with the value:

$ xattr -p com.apple.FinderInfo private
00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

The first eight bytes are type and creator codes, the next four are Finder flags (page 13).

On my machine, only kIsInvisible is set, so it's possible that when you navigate to your disk root folder, private is visible.

Enter the following in Terminal to restore its hidden state and the associated extended attribute:

sudo chflags hidden /private
link|improve this answer
Thnx. Worked like a charm – P5ycH0 Mar 7 '11 at 16:55
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.