Menu

#177 Round Robin FTP Owner Permissions

open
bzrudi
2
2005-07-14
2005-07-13
Brad Smith
No

First off, great job to all developers on the LinPHA
project.

Like many low budget people, I use a hosting provider
that utilizes cPanel X. PHP runs as 'nobody' on these
servers. That causes a problem when you use a mixed
mode of uploading images. I like to use FTP, but other
family members who contribute to my gallery use the
built-in File Management.

Directories and Files created and modified cannot be
changed by my SSH, SFTP, or FTP account. Also this is
a slight (unlikely) security problem since the
permissions are set for nobody and any other PHP
application from another customer on the SAME server
could view and possibly change my gallery.

A possible Round Robin solution is to use ftp_*
functions included in PHP to locally make, move, and
change album pics. So after the file is uploaded, have
the ability to instead of use move_uploaded_file to
ftp_connect (localhost), ftp_login (using stored acct
info as I would use to via FTP), and ftp_fput (from tmp
file to album's dir).

Same goes for mkdir and copy. Thanks and keep up the
EXCELLENT work!

Brad Smith

Discussion

  • bzrudi

    bzrudi - 2005-07-14

    Logged In: YES
    user_id=184593

    Greetings,

    the LinPHA crew has received your feature request. Your request
    is now
    assigned to a LinPHA developer.

    Thanks for reporting!
    bzrudi71

     
  • bzrudi

    bzrudi - 2005-07-14
    • priority: 5 --> 2
    • assigned_to: nobody --> bzrudi
     

Log in to post a comment.