I solved a problem regarding changing the umask of a file directory here: Chmod wont stick
But now I have a new problem all together. PHP fails to write to files on that directory even though they are all chmod 644, fulle read write access to users, groups and public. After executing ls -la in SSH I found out that the user for the files was apache.
I'm uploading to /var/www via SFTP and wondered how I can get it so when I upload a file or folder it always has the owner and group as www, and have the default chmod as 770.
I have tried this so far,
chmod 770 /var/www -R
chown www:www /var/www -R
and I have also tried
chmod u+s www -R
Currently when I upload a file the owner is the user I'm logged into and group www and chmod is 644.
I'm serving my website using Nginx as web server.
I offer upload functionality to my users (they are allowed to submit pictures up to 5Mb) so I have the directive: client_max_body_size 5M; in my server config.
What I've noticed is that if I try to upload any file the webserver does not prevent the upload of bigger files.
I have a basic linux server setup (setup locally on my network with no outside access) and i wanted to FTP files to the /var/www directory.
I have installed vsftpd and i have access to the server via FTP on another machine.
The problem i am having is the permissions on the directories and files uploaded are no the same as root, although i have setup a user with the admin user group which has root
Hello,
I have a problem when trying to upload (ftp) a file to a specific server.
In detail, I have 6 PCs with Ubuntu 8.10 that are on the internet with different IPs. One of the machines is the server that I use to upload and download files using the rest of the machines.
I have many clients uploading to the same directory.
I have set chmod to 733 and chown to another user on the upload folder so that the different clients do not see each others files,
but that also causes the client to not see their own files after they are uploaded or not being able to resume broken uploads.
I would like the different user log in with their own username and password but all upl
I want a web page on my Ubuntu server (Apache for example), where when I visit the page in my browser, there should be an Upload button, and I click on it, browse the local machine for a file, and upload it, and it gets uploaded to a folder on my server.
I also want to be able the web page to be able to show a list of all files in that directory and allow me to click on their links to download th
I'm trying to upload many large (30GB+) files to an S3 bucket using the multipart upload feature.
So far, my experience with command line tools (e.g. the perl s3put/s3get scripts) has been less than ideal. Due to less-than-reliable connections, the upload seems to terminate before a whole file is uploaded.
I've got a bit of an odd FTP issue. I'm trying to upload a file (about 12 megs) to a client's FTP server. Whenever I try, 0 bytes are uploaded, and the connection eventually times out.
Small files (like text files) upload fine. I'm in PASV mode and binary mode.
Here's the weird thing: it works on my local computer (running OS X Lion).