Ik weet dat je via advanced security panel je de ownership kan veranderen. maar welk cmdline commando kan dat ook? Ik heb nl. een directory map nl. alle rechten van users (incl admin) perongelijk verwijderd behalve 1 user. En het is op een remote bak. Nu wil ik via telnet ingelogd als admin de ownership veranderen en weer de rechten goed zetten.
Ik heb het zelf nog nooit gebruikt, maar misschien kan het met xcacls? Alleen even lastig hoe je dat op het systeem krijgt, wellicht via administrative shares.
Edit: meer info over xcacls: http://msdn.microsoft.com...us/dnexnt01/html/ewnt.asp
Edit: meer info over xcacls: http://msdn.microsoft.com...us/dnexnt01/html/ewnt.asp
[ Voor 21% gewijzigd door blackd op 07-09-2003 01:08 ]
9000Wp o/w SolarEdge SE6K - Panasonic 5kW bi-bloc - gasloos sinds 17-7-2023
[d:\]c:xcacls.exe "d:\docs\source-table" /G administrator:OXCACLS filename [/T] [/E|/X] [/C] [/G user:perm;spec] [/R user [...]]
[/P user:perm;spec [...]] [/D user [...]] [/Y]
Description:
Displays or modifies access control lists (ACLs) of files.
Parameter List:
filename Displays ACLs.
/T Changes ACLs of specified files in
the current directory and all subdirectories.
/E Edits ACL instead of replacing it.
/X Same as /E except it only affects the ACEs that
the specified users already own.
/C Continues on access denied errors.
/G user:perm;spec Grants specified user access rights.
Perm can be:
R Read
C Change (write)
F Full control
P Change Permissions (Special access)
O Take Ownership (Special access)
X EXecute (Special access)
E REad (Special access)
W Write (Special access)
D Delete (Special access)
Spec can be the same as perm and will only be
applied to a directory. In this case, Perm
will be used for file inheritance in this
directory. By default, Spec=Perm.
Special values for Spec only:
T Valid for only for directories.
At least one access right has to
follow. Entries between ';' and T
will be ignored.
/R user Revokes specified user's access rights.
/P user:perm;spec Replaces specified user's access rights.
Access right specification as same as
/G option.
/D user Denies specified user access.
/Y Replaces user's rights without verify.
NOTE:
Wildcards can be used to specify more than one file.
More than one user can be specified.
Access rights can be combined.
Examples:
XCACLS /?
XCACLS TEMP.DOC /G ADMINISTRATOR:RC
XCACLS *.TXT /G ADMINISTRATOR:RC /Y
XCACLS *.* /R ADMINISTRATOR /Y
XCACLS TEST.DLL /D ADMINISTRATOR /Y
XCACLS TEST.DLL /P ADMINISTRATOR:F /Y
XCACLS *.* /G ADMINISTRATOR:F;TRW /Y
XCACLS *.* /G ADMINISTRATOR:F;TXE /C /Y
Do you want to continue (Y/N)?y
processed directory: D:\docs\source-table
ERROR: Access is denied.
crap
wat doe ik verkeerd? Verder ben ik gewoon ingelogd als administrator
hmm.. terminal services wordt niet toegelaten? vreemd dat ze dan telnet wel open laten.. heb je die xcacls ook geinstalleerd via telnet sessie?
[ Voor 24% gewijzigd door axis op 07-09-2003 01:07 ]
Two advices for network troubleshooting.. learn to draw diagrams in Visio, and THINK IN LAYERS!
Je zal via de bovenliggende dir met /T moeten werken om ook de onderliggende dir van de juiste rechten te voorzien.... /F dus voor de admin.
[ Voor 9% gewijzigd door alt-92 op 07-09-2003 01:14 ]
ik heb een 864 GB floppydrive! - certified prutser - the social skills of a thermonuclear device
Pagina: 1