Why is my private folder visible in / ?

zorahk

macrumors 6502
Original poster
Jul 18, 2008
468
0
North Korea
For some reason this is now visible in my hard drive's root.

How do I hide it again? I don't wanna go near that thing!
 

Mercellus

macrumors regular
Nov 4, 2008
181
0
Is this the only hidden file that is showing up (e.g. you're not seeing .DS_Store or anything else around in the Finder)?

To hide the private folder, you should be able to issue the "sudo chflags hidden /private" command, followed by your password (as you are executing the command as a "root" user by using sudo, known as "super-user do").
 

richard.mac

macrumors 603
Feb 2, 2007
6,292
2
51.50024, -0.12662
… you should be able to issue the "sudo chflags hidden /private" command, followed by your password (as you are executing the command as a "root" user by using sudo, known as "super-user do").
also if you are unfamiliar use Terminal in the Utilities folder to excecute this command. note: Terminal will not display typing feedback when you enter your password.
 

pcs are junk

macrumors 65816
Sep 28, 2009
1,046
0
Is this the only hidden file that is showing up (e.g. you're not seeing .DS_Store or anything else around in the Finder)?

To hide the private folder, you should be able to issue the "sudo chflags hidden /private" command, followed by your password (as you are executing the command as a "root" user by using sudo, known as "super-user do").
wow thanks dude, even though this message mite be a year late, it was a big help!
 

DarrenSW

macrumors member
Dec 28, 2006
42
22
Awesome. Every other post I could find on this wanted me to install XCode! Thanks a million :D
 

BittenApple

macrumors 65816
Nov 29, 2008
1,017
580
Thanks!

It showed up after a Time Machine restore, so I suppose somehow down the line, the settings changed. The terminal command did sure work though.
 

ni240sx

macrumors newbie
Feb 8, 2010
4
0
Thanks!

It showed up after a Time Machine restore, so I suppose somehow down the line, the settings changed. The terminal command did sure work though.
sorry for the ignorance. i've tried to enter the command using terminal.

sudo chflags hidden /private (password)

it didn't work? and i'm also getting an error message

sudo: /etc/sudoers is mode 0666, should be 0440
Segmentation fault
________________

UPDATE: after doing some more googling. and i found the solution. just needed the disk utility to repair disk permissions. and i've been able to hide this "private" folder.
 

factory186

macrumors newbie
Jul 10, 2010
3
0
But what about repairing permissions?

I know how to make folders invisible, but I am curious as to why my /private folder suddenly became visible... and why repairing permissions does not make it go invisible again, which I would have thought it would have done...
 

Zephar

macrumors newbie
Jul 26, 2011
13
0
I have this same issue

I know how to make folders invisible, but I am curious as to why my /private folder suddenly became visible... and why repairing permissions does not make it go invisible again, which I would have thought it would have done...
Let me know if you find a fix to make these invisible again. I mistakenly deleted two folders that showed up on root directory on one of my drives,

/private and /dev

Boy, the iMac did not like that, and when I tried to install Lion it hung up and would not install…. not sure what to do with this disk now. It has all my data that does not fit on the SSDs that are the StartUp disks, although I also keep the internal HD capable to be a StartUp disk.

Best,
Seth
 

Zephar

macrumors newbie
Jul 26, 2011
13
0
I have this same issue

I know how to make folders invisible, but I am curious as to why my /private folder suddenly became visible... and why repairing permissions does not make it go invisible again, which I would have thought it would have done...
Let me know if you find a fix to make these invisible again. I mistakenly deleted two folders that showed up on root directory on one of my drives,

/private and /dev

Boy, the iMac did not like that, and when I tried to install Lion it hung up and would not install…. not sure what to do with this disk now. It has all my data that does not fit on the SSDs that are the StartUp disks, although I also keep the internal HD capable to be a StartUp disk.

Best,
Seth
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.