jdawes

Well-Known Member
Aug 7, 2003
59
0
156
Australia
I have been having a few problems with write access when using cgi/php

when I FTP up I am writing to the system as the cpanel user (station), however the web server accesses the server as user 'nobody'. The user 'Nobody' does not have rights to write to 'station's directories or files. I think there are two solutions to this, one is to make 'nobody' a more powerful user, obviously not a good solution security wise. The other involves masks....im not sure how it works, but there is a mask which can be applied to directories and files when they are created which allows 'nobody' access....

really, I am not sure how the whole show works, but I have to always modify chmods with FTP before I can write to a file using fileman. Basically I need to allow the user 'nobody' (the username that apache runs as) to have access to:

/var/tmp/

This is to allow http file uploads with php.........any ideas?
 

Orstio

Registered
Oct 18, 2003
1
0
151
Similar problem

I've had a similar issue with another control panel provider, except it worked the other way around.

Files are uploaded/created by script, and "owned" by user "nobody". So, it is impossible to edit, chmod, or delete these files by FTP.

Is there no way to have some sort of "master" FTP account, so that one could edit, chmod, or delete files, regardless of who the "owner" is?
 

jdawes

Well-Known Member
Aug 7, 2003
59
0
156
Australia
the only way to assign chmod etc as a global user that i have found is to login with ssh and punch in the commands to asign to those files. necessary for downloading copies of backup archives etc.