| Author |
Message |
Meena Desai
Guest
|
Posted:
Wed Feb 09, 2005 5:48 pm Post subject:
File access rights in Windows Server 2003 |
|
|
Hi,
I am using windows server 2003 for my site. When I move the code folder from
one location to another, the permissions which I have assigned to users for
files in the folder are changed. So, I can not delete files (after moving
the code folder) from my site. It shows me "Access denied" error.
Is there any way such that all the rights for all the users remain same as
they were, before moving the folder?
Thanx in advance,
Meena. |
|
| Back to top |
|
 |
Miha Pihler [MVP]
Guest
|
Posted:
Wed Feb 09, 2005 11:17 pm Post subject:
Re: File access rights in Windows Server 2003 |
|
|
When I am moving files among servers, I usually create a backup files with
ntbackup. Then I copy the *.bkf file to new server and I do a restore. This
process will also restore a file and folder permissions.
I tried few other tools, but still above method works best for me.
The problem with e.g. xcopy or similar tools is that you have to run it with
certain account (credentials) e.g. domain administrator account. Now let say
the user changed permissions on his folder and removed domain administrator
(and all other accounts except his) from the folder. In this case the xcopy
tool will fail (access denied) to copy (move) these files and folders.
I hope this helps,
--
Mike
Microsoft MVP - Windows Security
"Meena Desai" <meena@intraactionsoftware.com> wrote in message
news:%23LImDupDFHA.148@TK2MSFTNGP14.phx.gbl...
| Quote: | Hi,
I am using windows server 2003 for my site. When I move the code folder
from
one location to another, the permissions which I have assigned to users
for
files in the folder are changed. So, I can not delete files (after moving
the code folder) from my site. It shows me "Access denied" error.
Is there any way such that all the rights for all the users remain same as
they were, before moving the folder?
Thanx in advance,
Meena.
|
|
|
| Back to top |
|
 |
Ulf B. Simon-Weidner [MVP
Guest
|
Posted:
Thu Feb 10, 2005 5:15 am Post subject:
Re: File access rights in Windows Server 2003 |
|
|
"Meena Desai" <meena@intraactionsoftware.com> wrote in message
news:meena@intraactionsoftware.com:
| Quote: | Hi,
I am using windows server 2003 for my site. When I move the code folder
from
one location to another, the permissions which I have assigned to users
for
files in the folder are changed. So, I can not delete files (after
moving
the code folder) from my site. It shows me "Access denied" error.
Is there any way such that all the rights for all the users remain same
as
they were, before moving the folder?
|
Hello Meena,
Robocopy /copyall will preserver security and auditing access control
entries in the files.
Robocopy is part of the ressourcekit.
--
Gruesse - Sincerely,
Ulf B. Simon-Weidner
MVP-Book "Windows XP - Die Expertentipps": http://tinyurl.com/44zcz
Weblog: http://msmvps.org/UlfBSimonWeidner
WebSite: http://www.windowsserverfaq.org |
|
| Back to top |
|
 |
Meena Desai
Guest
|
Posted:
Thu Feb 10, 2005 6:08 pm Post subject:
Re: File access rights in Windows Server 2003 |
|
|
Hi Mike,
Thankx a lot. It is working.
Meena.
"Miha Pihler [MVP]" <mihap-news@atlantis.si> wrote in message
news:OHlhvrsDFHA.3324@TK2MSFTNGP15.phx.gbl...
| Quote: | When I am moving files among servers, I usually create a backup files with
ntbackup. Then I copy the *.bkf file to new server and I do a restore.
This
process will also restore a file and folder permissions.
I tried few other tools, but still above method works best for me.
The problem with e.g. xcopy or similar tools is that you have to run it
with
certain account (credentials) e.g. domain administrator account. Now let
say
the user changed permissions on his folder and removed domain
administrator
(and all other accounts except his) from the folder. In this case the
xcopy
tool will fail (access denied) to copy (move) these files and folders.
I hope this helps,
--
Mike
Microsoft MVP - Windows Security
"Meena Desai" <meena@intraactionsoftware.com> wrote in message
news:%23LImDupDFHA.148@TK2MSFTNGP14.phx.gbl...
Hi,
I am using windows server 2003 for my site. When I move the code folder
from
one location to another, the permissions which I have assigned to users
for
files in the folder are changed. So, I can not delete files (after
moving
the code folder) from my site. It shows me "Access denied" error.
Is there any way such that all the rights for all the users remain same
as
they were, before moving the folder?
Thanx in advance,
Meena.
|
|
|
| Back to top |
|
 |
|
|
|
|