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?