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

0dev

macrumors 68040
Original poster
Dec 22, 2009
3,947
24
127.0.0.1
In the root of my HD, I can see a "private" folder, which apparently was created in September of this year.

Isn't this a system folder which is meant to be hidden? And shouldn't it have been created before then?
 
To show hidden files in Finder, enter the following two commands into a Terminal window (press enter after each line):
defaults write com.apple.Finder AppleShowAllFiles TRUE
killall Finder​
To hide hidden files in Finder, enter the following two commands into a Terminal window (press enter after each line):
defaults write com.apple.Finder AppleShowAllFiles FALSE
killall Finder​
 
Hidden files are not showing, I just seem to be able to see the private folder as if it's a normal one.
 
Four folders: etc, tftpboot, tmp, and var are in it.

The permissions say the system can read and write, everyone else can only read.

That sounds like the legit Private folder. I'm not sure why it would be visible.
 
It says it was created in September of this year, any idea how that's possible? My last install was way before then.
Try showing hidden folders and see if another private folder shows up. It might be that OS X had to re-create it, but I couldn't begin to guess why. Mine shows to be created in Dec 2007 (before I got my Mac) and last modified in Feb 2008, also before I got my Mac.
 
Do not delete /private!

The stuff in there is part of the OS and required. Normally Apple normally keeps it (finder) hidden from "prying eyes" ;) I don't know how it became finder visible for you.

FWIW, if you have the Developer Tools installed you can execute the following commands from the Terminal to make it hidden again:

sudo setfile -a V /private
killall Finder

The second command is just to relaunch the finder at which point /private should be hidden.

If you don't have the Developer Tools installed, don't let it bother you. It's just one of many other (hidden) directories in the root directory. It doesn't matter whether its invisible or not. Only that what's in there stay there!

Also, I believe there a a few third party apps to selectively hide/unhide files. I just don't recall any specific one at the moment.
 
You can do this without dev tools installed though I think it only works for folders unlike setfile.

Try this terminal command :

sudo chflags nohidden /private
 
You can do this without dev tools installed though I think it only works for folders unlike setfile.

Try this terminal command :

sudo chflags nohidden /private

Close... but i believe the OP wants to hide an already visible item:

sudo chflags hidden /private

...which works on regular files as well as directories.
 
Close... but i believe the OP wants to hide an already visible item:

sudo chflags hidden /private

...which works on regular files as well as directories.

Oops, yes of course that's what I meant :rolleyes:

Maybe it's apps it doesn't work on then...
 
Thanks for telling me how to hide it, I'll do that now.

Any idea why it was supposedly created just a few months ago, though?
 
Thanks for telling me how to hide it, I'll do that now.

Any idea why it was supposedly created just a few months ago, though?

My guess is that whoever/whatever modified /private to be visible caused it's mod date to be changed too. Look at that date too see if it possibly jogs your memory of what you may have been doing on that date (yeah, I know, I hardly remember what I was doing yesterday :D).
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.