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
zzpack

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
Dwarf

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
zzpack

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
Dwarf

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
Dwarf

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
zzpack

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
Dwarf

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
zzpack

x86
 
 

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

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
zzpack

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 Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
icacls to reset everything(sec/owner/premision) to admin.
icacls C:\ /grant administrators:F /T /C So would this set folders permissions and junk so the wandering folders permissions,ect get fixed. Is there anyway you can just turn off security/permissions,ect so you will not get owner/permissions issues anymore? Yes I did turned off UAC since...
System Security
Are changes permanent using takeown/icacls?
As the title states, are changes permanent using takeown or icacls? Does it weaken windows security? I'm asking because sometimes, when I make a "lite" version of 7, I need to remove several files that require ownership. Instead of just applying onwership to those files only, I usually end up...
General Discussion
icacls trustedinstaller fails
icacls cannot set any parameters for trustedinstaller Running command prompt as administrator Works fine with any other user e.g. icacls \temp\new_directory /t /grant trustinstaller:f trustinstaller: No mapping between account names and securi Successfully processed 0 files; Failed...
Software
ICACLS and Printing with WIN 7 ??
A while back by dad called me saying that he could not print on his computer. What I found was that he could print fine out of applications like WORD, etc, but he couldn’t print web pages or web based email in Internet Explorer. He is running a fairly new Dell that I upgraded from Vista to...
Performance & Maintenance
Cannot Replace Owner with icacls!
I am trying to access/move files on a drive pulled from an old XP machine that failed. The drive is connected to a W7 machine via an external USB case. When I use explorer to access the properties for A SINGLE FILE, the owner is shown as an unknown GUID (I expect this). Using this interface,...
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 11:58.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App