Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Permissions/directory creation question...

Status
Not open for further replies.

MeatSaber

MIS
May 16, 2001
14
US
Hello,

I have a department here at work that uses job files for our products. The manager asked me to write a batch file that will create, after a couple user inputs, a directory tree that contains all the relevant folders for the job file they're creating, along with preset permissions on each folder in the tree. These folders are being created on a network share. There will be at least 3 people that will be tasked with creating these directories. Unfortunately, not all of these people have full control of all of the relevant folders. I, as an admin, have no problem running the batch file successfully. The other 3 get permissions errors when the batch is run under their logins. Is there a DOS command or switch that will allow users to create folders for which they won't have write access to? I'd like to have this work without any intervention on my part, and without having to change their accounts every time they need to create a file structure...and I'd like to avoid having to create the folders for them.

As an aside, all of the users except one are running Win2K, and the other is running NT4. The server in question is running Server 2003.

Thanks for any help...
 
can you use the runas command? Run it as an administrator

Kind Regards

Kelley Lewis
 
. Perhaps member Greg Palmer's utility can help:
. For limited users there may be no other resolution other than what is possible with the Secondary Logon Service (RunAS).

You can ask for prompting for passwords:
To start an instance of the command prompt as an administrator on the local computer, type:

runas /user:localmachinename\administrator cmd
When prompted, type the administrator password.
 
. Perhaps member Greg Palmer's utility can help:
. For limited users there may be no other resolution other than what is possible with the Secondary Logon Service (RunAS).

You can ask for prompting for passwords:
To start (as an example, an instance of the command prompt) as an administrator on the local computer, type:

runas /user:localmachinename\administrator cmd
When prompted, type the administrator password.

Replace cmd with your .bat or .cmd file entry.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top