Einzelnen Beitrag anzeigen
Alt 11.10.2001, 02:16   #2
_m3
Inventar
 
Registriert seit: 24.09.2001
Beiträge: 7.335


Standard

Nachdem die Berechtigungen and den SIDs häengen, Du aber die Accounts neu anlegst, wird Dir so ein Tool (vorher Namen auslesen, nacher ACl setzen) nicht erspart bleiben.

Eventuell hilft Dir Perl weiter: http://www.roth.net/perl/perms/

Zitat:
In this example we will be placing read only permissions for cartman and full permissions for administrator on the file c:\test.txt and removing all references for guest from and then explicitly denying joel access to the c:\temp directory.

Apply permissions on a file.

use Win32::Perms;

# Create an empty Security Descriptor
$::ThisPage = new Win32::Perms || die;

# One of two ways to add an ACE
$::ThisPage->Allow('cartman', READ);

# The second way to add an ACE
$::ThisPage->Add( {Account=>'administrator', Mask=>FULL } );

# Set the file's permissions
$::ThisPage->Set('c:/test.txt');
HTH
____________________________________
Weiterhin zu finden auf http://martin.leyrer.priv.at , http://twitter.com/leyrer , http://www.debattierclub.net/ , http://www.tratschen.at/ und via Instant Messaging auf Jabber: m3 <ät> cargal.org .
_m3 ist offline   Mit Zitat antworten