Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Removing users from a directory

by earthboundmisfit (Chaplain)
on Jan 10, 2003 at 15:29 UTC ( #225822=note: print w/replies, xml ) Need Help??


in reply to Removing users from a directory

You need to define "using the files" more fully. If you simply mean that no other user should have read/write access to the files while User A is doing something to the directory through a Perl script, then file locking by means of a semaphore file is the best way to handle this. If you mean that no one else can have access to the files via any means, you will need to set permissions on an OS level. For Win32, this is done with a module: Win32::FileSecurity

For a good example of semaphore file locking have a look at this node

HTH

---- I am what I read

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://225822]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2018-10-18 15:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When I need money for a bigger acquisition, I usually ...














    Results (102 votes). Check out past polls.

    Notices?