Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Icacls, syntax question.


24 May 2011   #1

x86
 
 
Icacls, syntax question.

I want to give interactive user folder permissions, with icacls.
But I can´t find the correct syntax for the interactive user.

e.g.
icacls folder1 /grant user1:(M) ---> Works very well. User1 gets modify rights to the folder "folder1".

Now I want to give interactive user the same modify rights.
icacls folder1 /grant INTERACTIVE:(M)

But that syntax does not work. Anyone that can help?

My System SpecsSystem Spec
.

24 May 2011   #2

Windows 8.1 Pro RTM x64
 
 

What do you mean by interactive user? If you mean the currently logged in user, then this syntax will not work. With this command, you need to repeat it and explicitly name each user for whom you wish to grant rights to.
My System SpecsSystem Spec
25 May 2011   #3

x86
 
 

Quote   Quote: Originally Posted by Dwarf View Post
What do you mean by interactive user? If you mean the currently logged in user, then this syntax will not work. With this command, you need to repeat it and explicitly name each user for whom you wish to grant rights to.
The syntax icacls folder1 /grant *S-1-5-4:(M), should work.

Here you can read some more about Windows security identifiers,
http://technet.microsoft.com/en-us/l...8WS.10%29.aspx
My System SpecsSystem Spec
.


25 May 2011   #4

Windows 8.1 Pro RTM x64
 
 

I'm not particularly familiar with this command. However, do you have a sub-key in the registry under HKEY_USERS called S-1-5-4? See if the syntax works with one of the keys that is there. I suggest S-1-5-21.
My System SpecsSystem Spec
25 May 2011   #5

Windows 8.1 Pro RTM x64
 
 

Strange. I've just tried it on a dummy folder, and it appears to have worked.

Code:
Microsoft Windows [Version 6.2.7955]
Copyright (c) 2011 Microsoft Corporation.  All rights reserved.

C:\Windows\system32>icacls c:\users\cyclops\desktop\test /grant cyclops:(m)
processed file: c:\users\cyclops\desktop\test
Successfully processed 1 files; Failed processing 0 files

C:\Windows\system32>icacls c:\users\cyclops\desktop\test /grant *S-1-5-4:(m)
processed file: c:\users\cyclops\desktop\test
Successfully processed 1 files; Failed processing 0 files

C:\Windows\system32>
My System SpecsSystem Spec
25 May 2011   #6

x86
 
 

Quote   Quote: Originally Posted by Dwarf View Post
Strange. I've just tried it on a dummy folder, and it appears to have worked.

...
Yep, works fine for me too. I´m happy I found a solution.
My System SpecsSystem Spec
25 May 2011   #7

Windows 8.1 Pro RTM x64
 
 

You're welcome. Did you find out what was causing the error? I'm guessing something in the syntax.
My System SpecsSystem Spec
25 May 2011   #8

x86
 
 

I found the solution on another forum, I just wanted to share.
My System SpecsSystem Spec
25 May 2011   #9

Windows 8.1 Pro RTM x64
 
 

Ahh, I think I get it now. You mean you needed to substitute *S-1-5-4 for INTERACTIVE, correct?
My System SpecsSystem Spec
26 May 2011   #10

x86
 
 

Quote   Quote: Originally Posted by Dwarf View Post
Ahh, I think I get it now. You mean you needed to substitute *S-1-5-4 for INTERACTIVE, correct?
Exactly. I didn´t know about the SID syntaxes, S-1-5-4 e.g.
Another way is of course to right-click on a folder and
give out permissions via properties, but that is not a solution for software
distribution.
My System SpecsSystem Spec
Reply

 Icacls, syntax question.




Thread Tools



Similar help and support threads for2: Icacls, syntax question.
Thread Forum
Solved Are changes permanent using takeown/icacls? General Discussion
icacls trustedinstaller fails Software
ICACLS and Printing with WIN 7 ?? Performance & Maintenance
Solved Cannot Replace Owner with icacls! General Discussion
icacls and the unknown users General Discussion
Icacls and Authenticated Users General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 10:52 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33