The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

CHMOD FTP Perl

Discussion in 'General Discussion' started by jdawes, Oct 17, 2003.

  1. jdawes

    jdawes Well-Known Member

    Joined:
    Aug 7, 2003
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    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?
     
  2. Orstio

    Orstio Registered

    Joined:
    Oct 18, 2003
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
  3. jdawes

    jdawes Well-Known Member

    Joined:
    Aug 7, 2003
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    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.
     
Loading...

Share This Page