Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

•Re: Re: •Re: Re: •Re: Re-runnably editing a file in place

by merlyn (Sage)
on May 22, 2003 at 13:13 UTC ( #260052=note: print w/replies, xml ) Need Help??

in reply to Re: •Re: Re: •Re: Re-runnably editing a file in place
in thread Re-runnably editing a file in place

In UNIX, you handle deleting and renaming control by setting permissions on the directory, not on the file. That actually makes more sense to me.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

  • Comment on •Re: Re: •Re: Re: •Re: Re-runnably editing a file in place

Replies are listed 'Best First'.
Re: •Re: Re: •Re: Re: •Re: Re-runnably editing a file in place
by BrowserUk (Pope) on May 22, 2003 at 13:41 UTC

    I'm not sure whether I agree or disagree. I guess it makes sense if that's what your used to, and there probably isn't too much wrong with it as a way of operating, else it would have changed a long time ago.

    That said, Win32 allows any combination of Read|Write|Exec|Delete|Permission|Ownership rights to be applied on a per file or per directory basis, to either individuals or groups, so if AS or whomever built the particular build of Perl choose to more closely emulate the *nix view of permissions, then they certainly could. At least for files managed completely from Perl scripts.

    It wouldn't even be that hard to set up a given machine so that the defaults settings followed the User/Group/World pattern. A few clicks on the permissions tab of the roots of the drives, and allow them to propogate would do it. Not so sure I'd want to relinquish that much control, but it could be done.

    T'is a shame that the availablity of a point and click Systems Admin utilities means that SA in the Win32 is often seen as something that "anyone can do". This means that many of those charged with doing the task have no real understanding if the why's and wherefores of security, permissions etc. with the knock on effect that the OS gets the blame for the lack of sensible policies and admin on behalf of the sa's (no caps:).

    Then again, if MS didn't insist on shipping the OS with the default permissions set so that every damn machine was and open (e-)book...

    "the sins of the progenitor shall be visited upon its offspring"!

    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://260052]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2018-06-21 16:52 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (118 votes). Check out past polls.