Forum Moderators: phranque

Message Too Old, No Replies

Perl script ownership and/or permissions

         

aci20

5:59 pm on Aug 17, 2008 (gmt 0)

10+ Year Member



Hi there.

I've just changed website hosts and have come across what looks lie an ownership problem.

The symptoms:
I can run Perl scripts happily, but when I want a script to write a file using the 'open' command, it won't do it. It can over-write a file which I have given 666 permission to by FTP (i.e. I've added 'World' access to the usual 644 permission), and it can never write a new file.

I believe (please do correct me, cos I'm a dummy) that it means that my scripts are 'owned' by 'World' (aka 'Other'), whereas on my old server, they were 'owned' by me. Or maybe I'm getting that the wrong way round..... It's not a scripting problem, I swear.

Is there any way of fixing this? I've sent a request to the hosting people, but I have more faith in you lot.

Thanks!

Andy

jdMorgan

8:08 pm on Aug 17, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks for your faith, But your host support are the people to ask because they (hopefully) know what will be required on their server configuration to get your scripts to run as the proper user with the proper permissions. Otherwise, we have to slog through all the numerous "try this, maybe it will work on your server" possibilities...

Jim