Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

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

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

1 Answer 1

up vote 1 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
share|improve this answer
    
Thnx. Worked like a charm –  P5ycH0 Mar 7 '11 at 16:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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