Solved

Access Denied error when executing batch file that was moved from Windows 2003 server to a Synology NAS server.

Posted on 2014-11-19
6
450 Views
Last Modified: 2014-12-31
We have a custoemr that we upgraded their Windows 2003 Server to a Synology NAS server.  All business files were stored on the 2003 server and are now copied to the new NAS server.  Most everything is working fine.  We do have a couple issues one being a DOS batch file (attached: change extention from txt to bat) that they use by copying files in the root of a shared directory on the NAS (S:) (which only has admin rights) and then right clicking on the addfilez.bat file and choosing 'paste'. This runs the batch file. If a admin runs the batch file all runs well, if a user runs the batch file they get a 'access denied' error on the cmd prompt while running the batch file. If I move the files to be copied that the user has rights to the batch file runs as expected ***I guess all this would be expected. The real problem arises when the same user copies the file from another computer on the network that she has admin rights to (and admin rights on the share) and the batch file does not run.  Any ideas on what might be going on here?

Thanks for you help in advance!

Gary
ADDFILEZ.txt
0
Comment
Question by:ImImIn
  • 2
  • 2
6 Comments
 
LVL 23

Expert Comment

by:NVIT
ID: 40453163
This can help you see what's happening:
1. Open CMD prompt in desired folder.
2. Run batch. You'll have to pass the filename to the .bat file. e.g. AddFilez filename.txt
0
 
LVL 26

Assisted Solution

by:akahan
akahan earned 500 total points
ID: 40453847
In the permissions on the batch file, is it executable by everyone, or just by the admin?  (On the Synology, right click on the batch file and check permissions).
0
 

Accepted Solution

by:
ImImIn earned 0 total points
ID: 40517702
I was able to fix this by making sure permissions were all set correctly on the NAS server.  I thought they were all set correctly but found more settings later!  All si well! Thanks for the attempted help!
0
 

Author Comment

by:ImImIn
ID: 40517710
I've requested that this question be closed as follows:

Accepted answer: 0 points for ImImIn's comment #a40517702

for the following reason:

I frankly forgot about this post (I am so sorry) and was able to solve on my own.
0
 
LVL 26

Expert Comment

by:akahan
ID: 40517711
Correct information was provided a  month ago... happy xmas!
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now