Fixing server 2003 folder permissions

Tom_Hickerson
Tom_Hickerson used Ask the Experts™
on
I had to take ownership of someones desktop folder so I could make some additions to their desktop.  When I did that I tried to change it back so they could have acess to the files again.  Apparently I messed things up.  I get an error in the event log every time this user logs in...

Failed to perform redirection of folder Desktop. The new directories for the redirected folder could not be created. The folder is configured to be redirected to <\\Wine\Accounts\%USERNAME%\Desktop>, the final expanded path was <\\Wine\Accounts\james\Desktop>. The following error occurred:
This security ID may not be assigned as the owner of this object.  This is windows server 2003


What would be the proper procedure to set the security and ownership so everything is back to working properly?

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
Is the use an admin of the box in question?
Use a program called xcals.vbs from MS http://support.microsoft.com/kb/825751
syntax cscript.exe xcacls.vbs "filename" /o "user"


The program works real good.

Author

Commented:
I don't have a problem changing the permssions, but what should I change them all to?
Introduction to R

R is considered the predominant language for data scientist and statisticians. Learn how to use R for your own data science projects.

Commented:
syntax cscript.exe xcacls.vbs "filename" /o "user" will set the ownership of the files to whom ever.
each user should have change on thier folder and all subfolders.    (you will have to do this one at a time...if you only have 20 or so user folders.  or you need to run 65td's script to give each user change control to thier individual folder and subfolders.)

Author

Commented:
In the script you say "filename"  Do I have to do this for each file, or?
Did you even try to read the article?


filename            [Required] If used alone, it displays ACLs.
                       (Filename can be a filename, directory name or
                       wildcard characters and can include the whole
                       path. If path is missing, it is assumed to be
                       under the current directory.)
                       Notes:
                       - Put filename in quotes if it has spaces or
                       special characters such as &, $, #, etc.
                       - If filename is a directory, all files and
                       subdirectories under it will NOT be changed
                       unless the /F or S is present.


http://support.microsoft.com/kb/825751

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial