login about faq

We have the following batch file executing successfully when the user is set to an Admin on the windows server:

scpg3 nbsoqmt@reportnetsql:/out/IMAssociateRpt/As* L:ArmadilloFlat_files

The problem is, as soon as we remove the Admin rights from the user, the batch file fails. Are there specific files/directies that our non-admin account needs access to in order to successfully run the batch file? We have multiple other batch files (for different purposes) that run successfully under the non admin account. We can't seem to get this to work. Please advise

asked Aug 04 '11 at 22:58

dmyoung805's gravatar image

dmyoung805
1111

to further Clarify, the error occurs when running a scheduled task. The scheduled task fails when the user is not an admin. All of our other scheduled tasks run fine under the non admin account. I'm on a 2003 Windows box.

(Aug 04 '11 at 23:41) dmyoung805 dmyoung805's gravatar image

Is L a mapped drive? Are the other scripts (the ones that are succeeding) also using mapped drives? If running as a scheduled task the mapped drive might not be available at that stage since I believe these are mapped only after user login.

Could you try using the full share name as destination?

Additionally if the destination share is within a domain does it have the correct permissions for non-admins to write to it? You could first try to get the scheduled task to copy the file to another folder in the same host just to rule out any possible share/permission problems first.

Also I suppose the scheduled task is running under a specified user account and not SYSTEM. There should not be any specific files/directories that require admin access for something like this to work.

Another thing to try is to add the batch mode option -B so that in case the script is failing due to requiring user interaction it will now fail with an error message instead of just hanging and waiting for input.

Finally if all else fails, I would recommend starting from scratch with a non-admin account rather than with an admin account and then removing the privileges. This makes troubleshooting permission related problems easier.

link

answered Aug 05 '11 at 08:23

Roman's gravatar image

Roman ♦♦
7735817

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×17

Asked: Aug 04 '11 at 22:58

Seen: 3,530 times

Last updated: Aug 05 '11 at 08:23

All user contributed content licensed under the cc-by-sa license.
Powered by OSQA.