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

Re: Perl can't write files

by sundialsvc4 (Abbot)
on Apr 10, 2014 at 14:07 UTC ( #1081819=note: print w/replies, xml ) Need Help??


in reply to Perl can't write files

It’s fairly-obviously a permissions problem:   the user-id for the web server is probably nobody, which for very obvious reasons “isn’t allowed to do squat!”   Windows handles permissions somewhat differently, but the principle and therefore the essential problem is the same.

And of course, with regards to web servers you should be practicing the “principle of least privilege.”   Web servers are built to respond to (unpredictable, and quite possibly malicious) requests from the outside world-at-large.   You therefore want to strictly limit what they are capable of doing, touching, or even seeing.   That way, if someone somehow clocks your server in the head and fools it into asking the operating system to do something really nasty, the operating system will say:   “not only ‘no,’ but ...!!”   And there will be nothing that the web server (nor the person who secretly took it over) can do about it.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1081819]
help
Chatterbox?
[choroba]: needed everywhere, available rarely
[LanX]: Question: starting a script from an icon in Windows, but after C-c the window closes ... what I want is to restart in the cmd.exe. Recommendations?
[Corion]: LanX: What do you mean by "restart in the cmd.exe" ?
[Corion]: Do you want to launch a script and keep the command prompt/console window open?

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (12)
As of 2017-03-27 15:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (320 votes). Check out past polls.