Re: xcopy access denied
- From: Logie Bear <LogieBear@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 1 May 2007 00:19:00 -0700
Sorry I missed that bit. Yes the share permissions are correct. As I said
previously I have done this on another twenty or so PC's (including some
yesterday) and it works fine. As for the commands you asked me to try the
results are as follows:
1. Invalid drive specification. 0 file(s) copied
2. The network path was not found
3. Invalid drive specification. 0 file(s) copied
"Pegasus (MVP)" wrote:
Getting a little further. Please try this:.
1. Click Start / Run / cmd {OK}
2. Type these commands and report the results.
xcopy /y /h c:\nt*.* "\\Server\users\dawns\My Documents\"{Enter}
ren "\\Server1\users\dawns\My Documents" "My Docs"{Enter}
xcopy /y /h c:\nt*.* "\\Server\users\dawns\My Documents\"{Enter}
In my previous reply I wrote this:
===================
As a separate question: Did you make sure that the
"Share" permissions (as opposed to the NTFS permissions)
of \\Server01\users are set to "Full access" for everyone?
===================
You never replied to this question. It is very important that you do.
"Logie Bear" <LogieBear@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9FF9E055-D503-42AC-A18C-023F297576B4@xxxxxxxxxxxxxxxx
This is the extract:at
Access denied
Unable to create directory - \\Server01\users\dawns\My Documents
0 File(s) copied
Exactly what I get when I run my version.
"Pegasus (MVP)" wrote:
Unfortunately you left out the most important bit in your
test - the redirection of the xcopy screen output. The following
line, taken from my previous reply, is supposted to be one
single long line, even though it may wrap around in your
newsreader.
I suggest you repeat the whole test.
xcopy /s /e /y /c "%UserProfile%\My Documents"
"\\Server01\users\%UserName%\My Documents\"
1>c:\test.txt 2>&1
"Logie Bear" <LogieBear@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:38B7BD26-78BB-4C02-8713-B626C2E78372@xxxxxxxxxxxxxxxx
I tried that one and the files scrolled up the screen with a message
thethe
end saying it copied 30 files. However, when I went in to check thebefore
destination directory it had not copied as I modified one of the files
I run it and the last amended date had not changed. The contents of
Operators:(OI)(CI)Ftest.txt file is:
USERDNSDOMAIN=LBS-HQ.LOCAL
USERDOMAIN=LBS-HQ
USERNAME=dawns
USERPROFILE=C:\Documents and Settings\dawns
Volume in drive \\Server01\users is Raid 5
Volume Serial Number is 6840-39D2
Directory of \\Server01\users\dawns
27/04/2007 13:24 <DIR> My Documents
0 File(s) 0 bytes
1 Dir(s) 371,672,825,856 bytes free
Volume in drive \\Server01\users is Raid 5
Volume Serial Number is 6840-39D2
Directory of \\Server01\users\dawns
\\Server01\users\dawns\My Documents LBS-HQ\dawns:(OI)(CI)F
LBS-HQ\SBS Folder
FILE_APPEND_DATABUILTIN\Users:(OI)(CI)(specialaccess:)
SYNCHRONIZE
access:)
BUILTIN\Administrators:(OI)(CI)F
NT AUTHORITY\SYSTEM:(OI)(CI)F
CREATOR OWNER:(OI)(CI)(IO)F
BUILTIN\Users:(OI)(CI)R
BUILTIN\Users:(CI)(special
anyway by
FILE_WRITE_DATA
"Pegasus (MVP)" wrote:
Fine, your feedback is very informative although it does
not yet tell me what's wrong. Now please type this command,
then post c:\test.txt again. Note that I deliberately omitted
the /d switch:
xcopy /s /e /y /c "%UserProfile%\My Documents"
"\\Server01\users\%UserName%\My Documents\" > 1>c:\test.txt 2>&1
As a separate question: Did you make sure that the
"Share" permissions (as opposed to the NTFS permissions)
of \\Server01\users are set to "Full access" for everyone?
"Logie Bear" <LogieBear@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:60712D73-BD21-4A7E-9837-1CF912EDCC84@xxxxxxxxxxxxxxxx
Still no joy - same error message . I got the SFN's from DOS
SYNCHRONIZEOperators:(OI)(CI)Fnavigating to the directory in question.
The contents of the c:\test.txt file are
USERDNSDOMAIN=LBS-HQ.LOCAL
USERDOMAIN=LBS-HQ
USERNAME=dawns
USERPROFILE=C:\Documents and Settings\dawns
Volume in drive \\Server01\users is Raid 5
Volume Serial Number is 6840-39D2
Directory of \\Server01\users\dawns
27/04/2007 13:24 <DIR> My Documents
0 File(s) 0 bytes
1 Dir(s) 371,672,825,856 bytes free
Volume in drive \\Server01\users is Raid 5
Volume Serial Number is 6840-39D2
Directory of \\Server01\users\dawns
\\Server01\users\dawns\My Documents LBS-HQ\dawns:(OI)(CI)F
LBS-HQ\SBS Folder
BUILTIN\Users:(OI)(CI)(specialaccess:)
BUILTIN\Administrators:(OI)(CI)FFILE_APPEND_DATA
FILE_WRITE_DATAaccess:)NT AUTHORITY\SYSTEM:(OI)(CI)F
CREATOR OWNER:(OI)(CI)(IO)F
BUILTIN\Users:(OI)(CI)R
BUILTIN\Users:(CI)(special
message
"Pegasus (MVP)" wrote:
"Logie Bear" <LogieBear@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
whichnews:60F433CE-C216-4BDF-A3E9-F95413DBCCC8@xxxxxxxxxxxxxxxx
I have used xcopy on a number of machines but there is one
formis
giving
me
grief. The command I use is the same on all machines (apart
itthe
name)
and is as follows:
xcopy /s /e /d /y c:\docume~1\username\mydocu~1
\\server01\users\username\mydocu~1
Like I said it works a treat on all apart form one. When I run
andon
one
machine I get the error message Access Denied Unable to create
thethen
the
name of the destination directory. The directory exists and
c:\test.txtparticular
user has full access to it just as I set up all the others.
Any ideas?
Why would you use 8.3 folder names? Since "My Computer"
shows you LFNs, you can never be sure that your SFNs really
correspond to the LFNs you wish to copy. This command
would be much more robust:
xcopy /s /e /d /y /c "%UserProfile%\My Documents"
"\\Server01\users\%UserName%\My Documents\"
Note the use of environmental variables where appropriate,
the /c switch and the trailing backslash at the far end of the
line.
About your actual question: I recommend that you run this
batch file, then post the contents of c:\test.txt:
@echo off
set user > c:\test.txt
net user "%UserName%" >> c:\test.txt
dir "\\Server01\users\%UserName%\My Doc*" >> c:\test.txt
dir /ah "\\Server01\users\%UserName%\My Doc*" >> c:\test.txt
cacls "\\Server01\users\%UserName%\My Doc*" >> c:\test.txt
md "\\Server01\users\%UserName%\My Documents\Test" 1>>
2>>&1
- Follow-Ups:
- Re: xcopy access denied
- From: Pegasus \(MVP\)
- Re: xcopy access denied
- Prev by Date: Re: Explorer doesn't close cleanly
- Next by Date: Computer won't boot(POST) with graphics card.
- Previous by thread: Entries in Registry
- Next by thread: Re: xcopy access denied
- Index(es):
Relevant Pages
|
Loading