Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm working on our login script for our OS X 10.5 deployment and I want to redirect the user's Documents and Desktop directories to their network home directory. In the login script I have a line that attempts deletes the old folders before creating the link but I get an permissions error. If I try to delete the directories through the finder I get the following error message:

""Folder Name" can't be modified or deleted because it is required by Mac OS X".

Is there some way to allow me to remove these?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

The "Standard" folders in a user's home directory have access control entries that block deletion. You can use chmod -N to clear their ACLs before deleting...

share|improve this answer
    
Thanks this has been bugging me for weeks. :-) –  Scott Warren Aug 24 '10 at 23:11

From my brief experience with OS X Server (10.5), I think you'll want to actually create the users on the Server and have their desktops authenticate against the server with Open Directory. From there, you can set up their home directory to be a network folder and authorize the use of offline/mobile access if desired (if they were to take the desktop to somewhere the Server could not be accessed). If you're making the user authentication method on each desktop and then writing a shell script that symlinks to files on a network file server, I'm afraid OS X will not let you delete necessary local account directories.

share|improve this answer

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.