NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
bcl1947
Nov 29, 2012Aspirant
Batch File Access Denied
I am new to this but something worked yesterday now it doesn't and I have no idea why.
I originally set my Duo V2 up by just switching it on and it installed Xraid2. I wrote some batch files to copy my files to the machine and all worked fine. I decided I wanted to use the two drives in Raid1 mode (which I understand to mean they are both identical copies of the backup, yes?) I followed the instructions and backed up the backup to a USB drive then rebooted the machine selected Raid mode, used the back up to copy the USB drive contents back to the NAS. So far so good.
This is where I first ran into trouble The USB drive had a couple of folders which were not part of the Backup (ie leftovers from earlier usage) so I went into Windows Explorer to delete them from the NAS drive(s) I was refused permission to do so. I went into Dashboard and was able to delete them from there. Previously in XRAID mode I had been able to delete files from Windows Explorer.
When I ran the Batch file which had previously worked fine it said something like "Access denied. Unable to create directory..." for each line. The folder layout is exactly as previously created. The batch file is pretty simple with lines so:
xcopy "%userprofile%\Documents\*.*" "\\nas-BCL\backup\%computername%\Documents\" /y /d /s /exclude:AcerExcludeList.txt
Anybody know what I need to change? everything else is as default I have no users or groups but I didn't before either. Some ideas please where to look or what to change. I am running Windows 7 on a small home network and the firmware on the ReadyNAS is up to date. Windows Explorer has no problems seeing the contents of the Nas Backup directory.
Regards
Bruce
I originally set my Duo V2 up by just switching it on and it installed Xraid2. I wrote some batch files to copy my files to the machine and all worked fine. I decided I wanted to use the two drives in Raid1 mode (which I understand to mean they are both identical copies of the backup, yes?) I followed the instructions and backed up the backup to a USB drive then rebooted the machine selected Raid mode, used the back up to copy the USB drive contents back to the NAS. So far so good.
This is where I first ran into trouble The USB drive had a couple of folders which were not part of the Backup (ie leftovers from earlier usage) so I went into Windows Explorer to delete them from the NAS drive(s) I was refused permission to do so. I went into Dashboard and was able to delete them from there. Previously in XRAID mode I had been able to delete files from Windows Explorer.
When I ran the Batch file which had previously worked fine it said something like "Access denied. Unable to create directory..." for each line. The folder layout is exactly as previously created. The batch file is pretty simple with lines so:
xcopy "%userprofile%\Documents\*.*" "\\nas-BCL\backup\%computername%\Documents\" /y /d /s /exclude:AcerExcludeList.txt
Anybody know what I need to change? everything else is as default I have no users or groups but I didn't before either. Some ideas please where to look or what to change. I am running Windows 7 on a small home network and the firmware on the ReadyNAS is up to date. Windows Explorer has no problems seeing the contents of the Nas Backup directory.
Regards
Bruce
5 Replies
Replies have been turned off for this discussion
- bcl1947AspirantI think the problem is directly related to where the files came from. I wrote a quick batch file that uploaded to another (new) directory and it worked fine and I was able to delete the files from Windows explorer. I presume the fact that these directories were recreated from the USB drive is the problem and that the USB drive only has permission to delete or add to them. If I try to delete anything from Windows explorer I get this:
So, how do I change the permissions to allow me access to the files from the computer from which they were originally transferred?
Regards
Bruce - HERBIEOAspirantHave you got Raidiator 5.3.7 firmware installed ?
- bcl1947AspirantYes definitely 5.3.7 Firmware
- HERBIEOAspirantLog in to the dashboard click on configure tab then on share tab select the share you want to manage, then in the right pane scroll down to protocol-specific settings tick the box for automatic permissions, then scroll down to the very bottom to files and folders expand it then set Folder Owner Rights - Folder Group Rights - Folder Everyone Rights to read/write, then change Folder Owner to nobody and Folder Group to nogroup then click the reset permissions button at the bottom.
- bcl1947AspirantThanks will give it a go.
Regards
Bruce
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!