Ubuntu Pastebin

Paste from menn0 at Sun, 19 Jul 2015 23:36:21 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
# grant everyone read and execute
icalcs <dir> /grant:r everyone:RX

# replace inherited perms
icalcs <dir> /inheritance:r


Takes the perms from:

PS C:\Users\Administrator> icacls.exe foo
foo NT AUTHORITY\SYSTEM:(I)(OI)(CI)(F)
    BUILTIN\Administrators:(I)(OI)(CI)(F)
    WIN-ST067KBR3CO\Administrator:(I)(OI)(CI)(F)
    BUILTIN\Users:(I)(RX)
    BUILTIN\Users:(I)(OI)(CI)(IO)(GR,GE)
    Everyone:(I)(RX)
    Everyone:(I)(OI)(CI)(IO)(GR,GE)

To this:

PS C:\Users\Administrator> icacls.exe foo
foo Everyone:(RX)
Download as text