problems copying some files (not all) across vpn

M

Matt

i've got my home computers behind a linksys wrt54g, with dd-wrt
installed. i've set up one computer on the network as a pptp server,
and set up port forwarding and pptp passthrough on the wrt54g. i can
connect to the vpn and browse network shares just fine, but with
certain directories i am getting access denied messages when trying to
copy files.

the weird thing is (for me anyway), the particular directory i'm
having issues with i can copy from subfolders of that directory but
not from the root of the directory. for example...

directory: xxx
subdirectory: xxx\yyy

i can copy files from xxx\yyy, but not directly from xxx. i have
tried everything i can think of...i've given the vpn account full
control on both the computer itself as well as thru sharing, i've
changed the owner to administrator and then back to the original
owner, i've given everyone full control access...nothing is working
and i'm getting extremely frustrated. help, please!

network structure right now: laptop is connected wifi to 192.168.1.0
subnet, home network is 192.168.99.0 subnet...i can see both routers,
can ping both routers and computers connected to both networks, can
network browse computers on both networks...just having this file
transfer issue with this stubborn directory.

it should also be noted that i have the same problem when the laptop
is connected wifi to my home network itself...same exact symptoms as
well. can copy from xxx\yyy, but not directly from xxx.

the offending directory is a subdirectory of my documents, if that has
anything to do with it (although i don't know how it would considering
i can get to the subdirectories of the offending folder).
 
P

Pegasus [MVP]

Matt said:
i've got my home computers behind a linksys wrt54g, with dd-wrt
installed. i've set up one computer on the network as a pptp server,
and set up port forwarding and pptp passthrough on the wrt54g. i can
connect to the vpn and browse network shares just fine, but with
certain directories i am getting access denied messages when trying to
copy files.

the weird thing is (for me anyway), the particular directory i'm
having issues with i can copy from subfolders of that directory but
not from the root of the directory. for example...

directory: xxx
subdirectory: xxx\yyy

i can copy files from xxx\yyy, but not directly from xxx. i have
tried everything i can think of...i've given the vpn account full
control on both the computer itself as well as thru sharing, i've
changed the owner to administrator and then back to the original
owner, i've given everyone full control access...nothing is working
and i'm getting extremely frustrated. help, please!

network structure right now: laptop is connected wifi to 192.168.1.0
subnet, home network is 192.168.99.0 subnet...i can see both routers,
can ping both routers and computers connected to both networks, can
network browse computers on both networks...just having this file
transfer issue with this stubborn directory.

it should also be noted that i have the same problem when the laptop
is connected wifi to my home network itself...same exact symptoms as
well. can copy from xxx\yyy, but not directly from xxx.

the offending directory is a subdirectory of my documents, if that has
anything to do with it (although i don't know how it would considering
i can get to the subdirectories of the offending folder).

Hard to say - you did not quote any error messages and you did not quote any
permission details. Running the batch file below will probably shed some
light on the issue.
@echo off
echo %date% %time% %Username% > c:\test.txt
cacls "x:\xxx" 1>>c:\test.txt 2>>&1
xcopy /s /y "x:\xxx\*.*" "c:\Test1\" 1>>c:\test.txt 2>>&1
xcopy %comspec% "x:\xxx" 1>>c:\test.txt 2>>&1
xcopy %comspec% "c:\Test1" 1>>c:\test.txt 2>>&1
Now post the contents of c:\test.txt.
 
M

Matt

Hard to say - you did not quote any error messages and you did not quote any
permission details. Running the batch file below will probably shed some
light on the issue.
@echo off
echo %date% %time% %Username% > c:\test.txt
cacls "x:\xxx" 1>>c:\test.txt 2>>&1
xcopy /s /y  "x:\xxx\*.*" "c:\Test1\"  1>>c:\test.txt 2>>&1
xcopy %comspec% "x:\xxx"  1>>c:\test.txt 2>>&1
xcopy %comspec% "c:\Test1"  1>>c:\test.txt 2>>&1
Now post the contents of c:\test.txt.

sorry, i thought with the "access denied messages" that would be self
explanatory.

i get "Cannot copy file: Access is denied. Make sure the disk is not
full or write-protected..." message.

where should i be running that file from? the laptop or the computer
the files are on?
 
P

Pegasus [MVP]

Hard to say - you did not quote any error messages and you did not quote
any
permission details. Running the batch file below will probably shed some
light on the issue.
@echo off
echo %date% %time% %Username% > c:\test.txt
cacls "x:\xxx" 1>>c:\test.txt 2>>&1
xcopy /s /y "x:\xxx\*.*" "c:\Test1\" 1>>c:\test.txt 2>>&1
xcopy %comspec% "x:\xxx" 1>>c:\test.txt 2>>&1
xcopy %comspec% "c:\Test1" 1>>c:\test.txt 2>>&1
Now post the contents of c:\test.txt.

sorry, i thought with the "access denied messages" that would be self
explanatory.

i get "Cannot copy file: Access is denied. Make sure the disk is not
full or write-protected..." message.

where should i be running that file from? the laptop or the computer
the files are on?

==================

OK, I missed the "access denied" bit in your post. - You run the batch file
on the same machine where you have the copy problem you report.
 
M

Matt

sorry, i thought with the "access denied messages" that would be self
explanatory.

i get "Cannot copy file:  Access is denied.  Make sure the disk is not
full or write-protected..." message.

where should i be running that file from?  the laptop or the computer
the files are on?

==================

OK, I missed the "access denied" bit in your post. - You run the batch file
on the same machine where you have the copy problem you report.

results below - am i supposed to be changing anything in the batch
file or running it exactly as you have it (which is what i did)?
---

Mon 09/14/2009 14:59:43.39 Matt
The system cannot find the path specified.

Invalid drive specification
0 File(s) copied
Invalid drive specification
0 File(s) copied
Does C:\Test1 specify a file name
or directory name on the target
(F = file, D = directory)? f
C:\WINDOWS\system32\cmd.exe
1 File(s) copied
 
P

Pegasus [MVP]

sorry, i thought with the "access denied messages" that would be self
explanatory.

i get "Cannot copy file: Access is denied. Make sure the disk is not
full or write-protected..." message.

where should i be running that file from? the laptop or the computer
the files are on?

==================

OK, I missed the "access denied" bit in your post. - You run the batch
file
on the same machine where you have the copy problem you report.

results below - am i supposed to be changing anything in the batch
file or running it exactly as you have it (which is what i did)?
---

Mon 09/14/2009 14:59:43.39 Matt
The system cannot find the path specified.

Invalid drive specification
0 File(s) copied
Invalid drive specification
0 File(s) copied
Does C:\Test1 specify a file name
or directory name on the target
(F = file, D = directory)? f
C:\WINDOWS\system32\cmd.exe
1 File(s) copied

=============

You used xxx\yyy as place holders, assuming that respondents would
understand what you meant. I used the same approach - you must obviously put
real names in there!
 
M

Matt

results below - am i supposed to be changing anything in the batch
file or running it exactly as you have it (which is what i did)?
---

Mon 09/14/2009 14:59:43.39 Matt
The system cannot find the path specified.

Invalid drive specification
0 File(s) copied
Invalid drive specification
0 File(s) copied
Does C:\Test1 specify a file name
or directory name on the target
(F = file, D = directory)? f
C:\WINDOWS\system32\cmd.exe
1 File(s) copied

=============

You used xxx\yyy as place holders, assuming that respondents would
understand what you meant. I used the same approach - you must obviously put
real names in there!

lol, i figured that as soon as i looked at the results.

---

Mon 09/14/2009 15:51:27.95 Matt
The specified network name is no longer available.

\\192.168.99.52\Saved\Asher Roth ft Keri Hilson - She Dont Want A
Man.mp3
Access denied
C:\WINDOWS\system32\cmd.exe
1 File(s) copied
C:\WINDOWS\system32\cmd.exe
1 File(s) copied
 
P

Pegasus [MVP]

results below - am i supposed to be changing anything in the batch
file or running it exactly as you have it (which is what i did)?
---

Mon 09/14/2009 14:59:43.39 Matt
The system cannot find the path specified.

Invalid drive specification
0 File(s) copied
Invalid drive specification
0 File(s) copied
Does C:\Test1 specify a file name
or directory name on the target
(F = file, D = directory)? f
C:\WINDOWS\system32\cmd.exe
1 File(s) copied

=============

You used xxx\yyy as place holders, assuming that respondents would
understand what you meant. I used the same approach - you must obviously
put
real names in there!

lol, i figured that as soon as i looked at the results.

---

Mon 09/14/2009 15:51:27.95 Matt
The specified network name is no longer available.

\\192.168.99.52\Saved\Asher Roth ft Keri Hilson - She Dont Want A
Man.mp3
Access denied
C:\WINDOWS\system32\cmd.exe
1 File(s) copied
C:\WINDOWS\system32\cmd.exe
1 File(s) copied
===============

Let's take this nice and easy and adjust *all* "xxx" references, then check
it carefully before responding. I reckon that Line 3 is still wrong!
 
M

Matt

lol, i figured that as soon as i looked at the results.

---

Mon 09/14/2009 15:51:27.95 Matt
The specified network name is no longer available.

\\192.168.99.52\Saved\Asher Roth ft Keri Hilson - She Dont Want A
Man.mp3
Access denied
C:\WINDOWS\system32\cmd.exe
1 File(s) copied
C:\WINDOWS\system32\cmd.exe
1 File(s) copied
===============

Let's take this nice and easy and adjust *all* "xxx" references, then check
it carefully before responding. I reckon that Line 3 is still wrong!

i have adjusted *all* "xxx" references. the output i posted is the
output from the file...there are no more xxx references in the batch
file.
 
P

Pegasus [MVP]

lol, i figured that as soon as i looked at the results.

---

Mon 09/14/2009 15:51:27.95 Matt
The specified network name is no longer available.

\\192.168.99.52\Saved\Asher Roth ft Keri Hilson - She Dont Want A
Man.mp3
Access denied
C:\WINDOWS\system32\cmd.exe
1 File(s) copied
C:\WINDOWS\system32\cmd.exe
1 File(s) copied
===============

Let's take this nice and easy and adjust *all* "xxx" references, then
check
it carefully before responding. I reckon that Line 3 is still wrong!

i have adjusted *all* "xxx" references. the output i posted is the
output from the file...there are no more xxx references in the batch
file.

==================

Fine. If so the you need to work out why the command
cacls "x:\xxx" 1>>c:\test.txt 2>>&1
generates this line:
"The specified network name is no longer available."

To do so you must start a Command Prompt, then type this command:
cacls "x:\xxx"
replacing "x:\xxx" with a *valid* drive and folder name. I think you're in
for some more LOL . . .
 
M

Matt

i have adjusted *all* "xxx" references.  the output i posted is the
output from the file...there are no more xxx references in the batch
file.

==================

Fine. If so the you need to work out why the command
cacls "x:\xxx" 1>>c:\test.txt 2>>&1
generates this line:
"The specified network name is no longer available."

To do so you must start a Command Prompt, then type this command:
cacls "x:\xxx"
replacing "x:\xxx" with a *valid* drive and folder name. I think you're in
for some more LOL . . .

ok, i found the problem - while i was setting permissions for the
directories, the files themselves were not getting the permissions
set...once i gave everyone full control to the individual files inside
the directory, i was able to copy the files without a problem...

this leads me to my next question: how do i change the default
permission set to give this access to begin with so i can transfer
files without having to worry about setting the permissions later?
 
P

Pegasus [MVP]

i have adjusted *all* "xxx" references. the output i posted is the
output from the file...there are no more xxx references in the batch
file.

==================

Fine. If so the you need to work out why the command
cacls "x:\xxx" 1>>c:\test.txt 2>>&1
generates this line:
"The specified network name is no longer available."

To do so you must start a Command Prompt, then type this command:
cacls "x:\xxx"
replacing "x:\xxx" with a *valid* drive and folder name. I think you're in
for some more LOL . . .

ok, i found the problem - while i was setting permissions for the
directories, the files themselves were not getting the permissions
set...once i gave everyone full control to the individual files inside
the directory, i was able to copy the files without a problem...

this leads me to my next question: how do i change the default
permission set to give this access to begin with so i can transfer
files without having to worry about setting the permissions later?

==============

New files inherit the permission settings of the folder they are in.
 
M

Matt

ok, i found the problem - while i was setting permissions for the
directories, the files themselves were not getting the permissions
set...once i gave everyone full control to the individual files inside
the directory, i was able to copy the files without a problem...

this leads me to my next question:  how do i change the default
permission set to give this access to begin with so i can transfer
files without having to worry about setting the permissions later?

==============

New files inherit the permission settings of the folder they are in.

that's what i thought - but there appears to be something weird going
on here then because that is definitely not happening in this case.
 
P

Pegasus [MVP]

Matt said:
New files inherit the permission settings of the folder they are in.

that's what i thought - but there appears to be something weird going
on here then because that is definitely not happening in this case.
========
If you want some respondent to look into it then you need to fully document
what you see, e.g. like so:

cacls "U:\Some Folder" > c:\test.txt
echo %date% %time% >> "U:\Some Folder\perms.txt"
cacls "U:\Some Folder\perms.txt" >> c:\test.txt

If there is something weird going on then the permissions of "U:\Some
Folder" will not agree with the permissions of "U:\Some Folder\perms.txt".
Let's have a look at the evidence!
 
T

Twayne

PatrickMc via WindowsKB.com said:
Have you tried biterscripting ( http://www.biterscripting.com ) to
batch or automatically copy files ? It may alleviate some of your
problems.

You should not remove the OPs description of a problem from your
responses. It leaves your own response with no context, plus prevents
others from seeing what problem the OP had in the first place and
possible a direct fix for them.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top