Is there a module that can check if user "foo" may read a file?

Is there a module that can check if user "foo" may read a file?

am 05.08.2005 15:59:17 von Bengt-Arne Fjellner

Hi i want to check a number of file against different user uid:s and see if
they can read/write execute that file.
I have searched on cpan but it looks like most modules includes my search
words.
So please any pointers welcome

/Bengt-Arne Fjellner

Re: Is there a module that can check if user "foo" may read a file?

am 05.08.2005 16:24:54 von Tom Regner

Bengt-Arne Fjellner wrote:

> Hi i want to check a number of file against different user uid:s and see
> if they can read/write execute that file.
> I have searched on cpan but it looks like most modules includes my search
> words.
> So please any pointers welcome
searching CPAN for "File Permissions"
got the result

File::Find::Rule::Permissions

http://search.cpan.org/~dcantrell/File-Find-Rule-Permissions -1.2/lib/File/Find/Rule/Permissions.pm

which should enable you to solve your problem.

regards,
Tom

--
Dievision GmbH | Kriegerstrasse 44 | 30161 Hannover
Telefon: (0511) 288791-0 | Telefax: (0511) 288791-99
http://www.dievision.de

Re: Is there a module that can check if user "foo" may read a file?

am 05.08.2005 17:04:07 von Bengt-Arne Fjellner

"Tom Regner" skrev i meddelandet
news:42f376b6$0$28623$4d3ebbfe@news1.pop-hannover.net...
> Bengt-Arne Fjellner wrote:
>
>> Hi i want to check a number of file against different user uid:s and see
>> if they can read/write execute that file.
>> I have searched on cpan but it looks like most modules includes my search
>> words.
>> So please any pointers welcome
> searching CPAN for "File Permissions"
> got the result
>
> File::Find::Rule::Permissions
>
> http://search.cpan.org/~dcantrell/File-Find-Rule-Permissions -1.2/lib/File/Find/Rule/Permissions.pm
>
> which should enable you to solve your problem.
>
> regards,
> Toms
>
> --
> Dievision GmbH | Kriegerstrasse 44 | 30161 Hannover
> Telefon: (0511) 288791-0 | Telefax: (0511) 288791-99
> http://www.dievision.de

Thanks i saw that module but thought !! FALSELY !! that it couldnt check a
file (blush)

Now it works.