View Full Version : Username login for CACLS command
PierCed_3
09-18-2006, 12:43 PM
I am trying to CACLS a folder on the C: drive for our users on the floor (restricted generic user account) and would like to do it in a batch file... Question is, how do I launch the batch file as a particular user? I need to run it as admin.
Any suggestions?
Thanks!
Andrew
PierCed_3
09-18-2006, 01:04 PM
I just found it... I was having a major brainfart. The command is Runas. Does anyone know the correct syntax? One that I can understand? The syntax it gives you from Microsofts website is really confusing and it makes me believe that I need to use all the parameters.
What operating system are you referring to?
PierCed_3
09-20-2006, 03:28 PM
win xp
Sorry, I should have posted that.
What I am trying to accomplish is to give full access to a folder called C:Barcode to 150 computers on the floor. I am using a batch file at startup for the generic user on our production floor to map drives and I want to add a CACLS command to give full access to the folder. I have figured out the syntax now I just need to figure out how to make it so it doesn't ask for the password.
Does anyone know how to do this?
Thanks again.
Andrew
Statica
09-20-2006, 03:41 PM
http://blogs.msdn.com/oldnewthing/archive/2004/11/29/271551.aspx is a good discussion on the password prompt with runas. There are a number of considerations listed based on the level of security you're looking for.
PierCed_3
09-21-2006, 02:20 PM
Good info! I ended up using Sanur for my needs. It's a little confusing but it does the job. Thanks for the help, I appreciate it!
Andrew
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.