/build/static/layout/Breadcrumb_cap_w.png

Grant Access using Subinacl

Hi ppl

I want to give access using Subinacl, but its not wokring.
Can anyone tell me whats wrong with the path and what is the correct path.
The program requires full rights to C:\Windows\Temp\ before builtin User can run the program.

"C:\Program Files\Tools\subinacl.exe" /subdirectories "C:\Windows\Temp\" /grant=Users=F

Thnx....

0 Comments   [ + ] Show comments

Answers (5)

Posted by: syn 14 years ago
Senior Yellow Belt
0
Hi SKS,

Haven't played with subinacl permissions wise too much usually just use it to reset owners. The following should work.

subinacl.exe /subdirec "c:\windows\temp\*" /grant=Users=F
Posted by: SKS 14 years ago
Orange Belt
0
Hi Syn

I tried what u posted but it didnt worked, but thnx for ur input...

This is working for sure :-)

subinacl.exe /subdirec "c:\windows\temp" /Grant=Users=F

The above line give full rights on Temp folder.

Cheers mate
Posted by: syn 14 years ago
Senior Yellow Belt
0
Just be careful with that as you may also be granting permission to anything under c:\windows with a subdirectory of "temp" i.e. C:\WINDOWS\pchealth\helpctr\Temp

Just check output to make sure.
Posted by: SKS 14 years ago
Orange Belt
0
u r right, it also grant access to other folders like C:\WINDOWS\pchealth\helpctr\Temp
but i only want to give accees to C:\WINDOWS\temp, ( which works but also give rights to other folders)

Look forward If you have any clue how only to give access to C:\WINDOWS\temp.

With below line it grant rights:
subinacl.exe /subdirec "c:\windows\temp" /Grant=Users=F

But how can i delete the rights, if i want to.
Posted by: syn 14 years ago
Senior Yellow Belt
0
Are you set on using subinacl for some reason? Where possible I prefer to use windows built in files only because it saves on adding extra files into my packages. The below cmd will do what you want fine:

c:\windows\system32\cacls.exe "C:\windows\temp" /T /E /G users:C

I have that set to users with change (modify) rights as I don't like handing out full control as it's bit me in the ass with dodgy programs resetting owners etc.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ