Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Error:Update failed: Unable to overwirte

Quote Reply
Error:Update failed: Unable to overwirte
Greetings:

Am now getting the following error when trying to to an autoupdate. I have never received this error before BUT it is the first time I have tried to update any files since I started to run under mod_perl.

Error: Update failed: Unable to overwrite '/path/to/admin/Links.pm' with tempfile '/path/to/admin/tmp/GTTemp85023597': Could not open '/path/to/admin/Links.pm' for writing: Permission denied

Checking my file permission it is set to 644.

Could mod_perl have anything to do with this?


Regards,


Clint.
--------------------------
http://AffiliatesDirectory.com
The Affiliate Programs Directory
Quote Reply
Re: [Clint] Error:Update failed: Unable to overwirte In reply to
Hi,

Permission 644 can work with CGI mode but with mod_perl, I think it shoud be 666 because mod_perl is run as a diffirent user. Is that correct?

Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [tandat] Error:Update failed: Unable to overwirte In reply to
Hi Dat:

Don't know .... I changed permissions to 666 then got the error message, when I tried to install, that it had again failed because it couldn't change file permissions.

Hmmmm....


Regards,


Clint.
--------------------------
http://AffiliatesDirectory.com
The Affiliate Programs Directory
Quote Reply
Re: [Clint] Error:Update failed: Unable to overwirte In reply to
You installed glinks using one user and are running under mod_perl as another. You need to set things up so that they both happen as the same user.

Adrian
Quote Reply
Re: [brewt] Error:Update failed: Unable to overwirte In reply to
Hi Brewt:

As everything is already 'setup' so to speak (albeit incorrectly:-)) which is the easiest way to achieve this?

Am I correct that if mod_perl loaded dynamically in Apache would be running under the user/group that Apache is running under?

Would the easiest way be to add the Apache user as a member of the 'group' that Links was installed under?


Thanks,


Clint.
P.S. Have a great Xmas...
--------------------------
http://AffiliatesDirectory.com
The Affiliate Programs Directory
Quote Reply
Re: [Clint] Error:Update failed: Unable to overwirte In reply to
In Reply To:
Am I correct that if mod_perl loaded dynamically in Apache would be running under the user/group that Apache is running under?
Yes, it should be.

In Reply To:
Would the easiest way be to add the Apache user as a member of the 'group' that Links was installed under?
It depends on the permissions on the files. If group permissions on the files allow write, then it would probably be the easiest way to get it to work.

Adrian