New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Folders being repopulated after deletion


Post Reply New Thread Subscribe

 
Thread Tools
sparkyvision

 
Member Since: Dec 24, 2009
Posts: 2
sparkyvision is on a distinguished road

sparkyvision is offline
New MacBook Pro with Snow Leopard.

I've enabled the root user to rename / organize my home directory the way I like it. In this case, I renamed "Movies" to "video", and every so often the folder "Movies" reappears in my home directory, annoying the crap out of my OCD hard drive organization soul. I have to go back and rm -rf it as root or sudo - I can't just drag it to the trash because I get a "(folder name) can’t be modified or deleted because it’s required by Mac OS X".

Yeah, whatever, I'm root, suck it, Mac OS. But I would like to keep this folder from coming back. I'm from a Windows administration background, where I could just set up an auditing log to see what process was creating the file...is there some way to do this on OSX? Or should I just create a hidden folder named "Movies" and chmod the heck out of it so nothing can overwrite it and I don't have to be annoyed by it anymore?

Thanks!
QUOTE Thanks
Slydude

 
Member Since: Nov 15, 2009
Location: North Louisiana, USA
Posts: 5,423
Slydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant future
Mac Specs: 2.8 GHz MacBook Pro 10.8,3 8 GB mem, 2.66 GHz Mac Pro - Dead, iPhone 4

Slydude is offline
The Unix geeks (gurus) around here may have a better answer but I think that folder is going to keep re-spawning. The OS is expecting that folder to be present. Some other software (such as iMovie and Front Row) expects it as well. I wonder if it would be possible to make the folder invisible? That way you don't see it but it is still present.

Sylvester Roque Former Contributing Editor About This Particular Macintosh

Don't blame me if following this advice causes loss of data, a rip in space time allowing dinosaurs to roam free, or your significant other to leave.
QUOTE Thanks
toMACsh

 
toMACsh's Avatar
 
Member Since: Jul 30, 2009
Location: Wisconsin
Posts: 5,327
toMACsh is a glorious beacon of lighttoMACsh is a glorious beacon of lighttoMACsh is a glorious beacon of lighttoMACsh is a glorious beacon of lighttoMACsh is a glorious beacon of lighttoMACsh is a glorious beacon of light
Mac Specs: Mac Mini Core 2 Duo

toMACsh is offline
Fix your attitude, and leave the folder names alone. The OS will continue to create those folders, whether you like it or not. That's just the way it is. Accept it.
QUOTE Thanks
bobtomay

 
bobtomay's Avatar
 
Member Since: Dec 22, 2006
Location: Texas, where else?
Posts: 24,597
bobtomay has a reputation beyond reputebobtomay has a reputation beyond reputebobtomay has a reputation beyond reputebobtomay has a reputation beyond reputebobtomay has a reputation beyond reputebobtomay has a reputation beyond reputebobtomay has a reputation beyond reputebobtomay has a reputation beyond reputebobtomay has a reputation beyond reputebobtomay has a reputation beyond reputebobtomay has a reputation beyond repute
Mac Specs: 15" MBP 2.33 C2D 256 4GB, MBA 13" i7 1.8, MB 2.0 2GB, Nano 4th, 3GS, iPad 1

bobtomay is offline
Yep, that's a system folder. Anytime something runs that expects that folder to be there, it's going to pop back up again. Slydude has a good idea to try. Rename it with a dot in front of it and see it that'll work.

I cannot be held responsible for the things that come out of my mouth.
In the Windows world, most everything folks don't understand is called a virus.
QUOTE Thanks
sparkyvision

 
Member Since: Dec 24, 2009
Posts: 2
sparkyvision is on a distinguished road

sparkyvision is offline
Solution!

Edited visudo to allow a specific script to be run without asking for permission.

sparky localhost=(root) NOPASSWD: /Users/sparky/scripts/delete-annoying-folders-dammit

Then created the script:

#!/bin/sh
rm -rf /Users/sparky/Movies
rm -rf /Users/sparky/Pictures

Set the execute bit, added the script as a login hook, PROBLEM GONE.

Woo!
QUOTE Thanks

Post Reply New Thread Subscribe


« How to play webcam videos from my dell laptop on my iMac? | won't run plug-ins »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
iphoto 5 - reinstalled OS and need to import previous library and folders for iPhoto misteratm Images, Graphic Design, and Digital Photography 3 10-31-2009 10:55 PM
OSX sharing folders automatically shonamelissa Internet, Networking, and Wireless 6 10-15-2009 11:08 AM
want to move the contents of a LOT of folders, but not the folders roxxan23 OS X - Operating System 2 05-30-2009 08:30 PM
entourage will not show public folders! help! monkey109 OS X - Apps and Games 1 07-09-2008 02:56 PM

All times are GMT -4. The time now is 10:08 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?