in reply to user previlage in windows

why don't you use Win32::File.
For example if you want to make foo.txt read_only :-
use Win32::File; Win32::File::GetAttributes("foo.txt", $attrib) || die $!; Win32::File::SetAttributes("foo.txt", $attrib | READONLY) || die $!;
cheers.

Replies are listed 'Best First'.
Re^2: user previlage in windows
by dfaure (Chaplain) on Jul 06, 2004 at 13:31 UTC

    but if you want to make foo.txt readable only by foo_user and administrators?

    ____
    HTH, Dominique
    My two favorites:
    If the only tool you have is a hammer, you will see every problem as a nail. --Abraham Maslow
    Bien faire, et le faire savoir...