For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > August 2005 > Namespace for Unix File Permission checker









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Namespace for Unix File Permission checker
Bengt-Arne Fjellner

2005-08-06, 4:59 pm

Hi I'm working on a module to check if another user may read/write... a
named file/directory
Namespace for that? File::Permissions or any better suggestions.

Bengt-Arne Fjellner
Luleċ Technical University
LTU Skellefteċ
Skellefteċ
Sweden


Christian Winter

2005-08-07, 3:59 am

Bengt-Arne Fjellner schrieb:
> Hi I'm working on a module to check if another user may read/write... a
> named file/directory
> Namespace for that? File::Permissions or any better suggestions.


IMHO one level deeper would be appropriate.
File::Permissions::Unix would leave room for other
permission models (File::Permissions::Posix,
File::Permissions::Win32 etc.)

One could then build a generic File::Permissions
module on top of all specific modules and use something like
use File::Permissions ':Unix';
or even let File::Permissions default to the most commonly
used standard for the current operating system.

-Chris
Bengt-Arne Fjellner

2005-08-07, 5:00 pm


"Christian Winter" <thepoet_nospam@arcor.de> skrev i meddelandet
news:42f5af9e$0$6992$9b4e6d93@newsread2.arcor-online.net...
> Bengt-Arne Fjellner schrieb:
>
> IMHO one level deeper would be appropriate.
> File::Permissions::Unix would leave room for other
> permission models (File::Permissions::Posix,
> File::Permissions::Win32 etc.)
>
> One could then build a generic File::Permissions
> module on top of all specific modules and use something like
> use File::Permissions ':Unix';
> or even let File::Permissions default to the most commonly
> used standard for the current operating system.
>
> -Chris


I think your right

Bengt-Arne Fjellner
Luleċ Technical University
LTU Skellefteċ
Skellefteċ
Sweden


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com