10-03-2010
Only allowing chmod 777 for file upload folder
Hey everyone. I have 2 different linux servers (each one is through a different web hosting company). On both servers I have the exact same PHP file upload script that allows users to upload a file or image to the server (everything on both servers is identical).
On server #1 the "attachments" directory (which is where the files are uploaded to), I have the permissions set to chmod 755 and the files are successfully uploaded to the server (into the attachments folder).
HOWEVER, on server #2 for some reason, the files will not upload into the "attachments" directory unless I put the permissions to chmod 777 (chmod 755 will not work on server #2).
Does anyone know any possible reasons as to why server #2 will not allow file uploads with chmod 755?
Thanks.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I've got 100 directories that each have 2 directories with in them.
Structered like this:
/home/domains/domain1/
through to
/home/domains/domain100/
and those 2 directories mentioned above are here:
/home/domains/domain1/directory1/
/home/domains/domain1/directory2/
through to... (7 Replies)
Discussion started by: Neko
7 Replies
2. UNIX for Advanced & Expert Users
Hi!
I'd like to upload a complete folder with subfolders with put. At the moment I always get the err-msg:
aboutme: not a plain file
Could anyone help me??
Thanx (3 Replies)
Discussion started by: roberthawke
3 Replies
3. UNIX for Dummies Questions & Answers
Hello all,
I did a considerable search of the forum and didn't find an answer so I'll ask it here. For clarity's sake I'll state that I know just enough about Unix to be Dangerous (I'm an old Clipper, VO, ASM programmer from the 80's.)
I would like to install PHP driven CMS program to my... (6 Replies)
Discussion started by: Gary777
6 Replies
4. UNIX for Dummies Questions & Answers
using the recursive option for chmod i am trying to make all the folders and subsequent files read only
i.e. chmod -R 444 folder
when i go to check the folder or contents using any command (cat, ls -l etc..)
i get permission denied reply
can someone tell me why and how to make folders... (2 Replies)
Discussion started by: rprules
2 Replies
5. Solaris
Hello Everyone:
One of our admins here accidently ran chmod -R 777 in the /usr folder on a V440 running Solaris 9. After that no one could run any command and could not login. I fixed most of the things by re-restricting some rights and applying the correct rights. Now there is a problem... (3 Replies)
Discussion started by: muntaser_zaheer
3 Replies
6. Windows & DOS: Issues & Discussions
Hello,
I am an amature at UNIX commands and functionality.
Please could you all assist me by replying to my below mentioned querry :
How can I upload a zip folder on a unix path from my windows folder?
Thanks guys
Cheers (2 Replies)
Discussion started by: ajit.yadav83
2 Replies
7. UNIX for Dummies Questions & Answers
I can belive I really did this... chmod 777 /home :eek:
I have my /home directory synced to another machine.
Can anyone tell me how to get the permissions from
back up server /home to production server /home
It's important that I dont over write the files on the... (1 Reply)
Discussion started by: shunter63
1 Replies
8. Cybersecurity
User usrA creates dirA directory and runs chmod 777 on the directory. Can usrB issue another 777 on dirA? It appears the answer is no even if the usrA and usrB are part of the same group. I know this is a rare scenario but I just ran across it and found out that usrB receives an error when... (4 Replies)
Discussion started by: zlek131
4 Replies
9. Web Development
Hi,
how can I upload a complete folder (and subfolders) on ftp from terminal ?
thanks (3 Replies)
Discussion started by: aneuryzma
3 Replies
10. Windows & DOS: Issues & Discussions
Hello,
I use windows XP on a small server. Lately I downloaded a software (hydrological computation) which asked me to install as well the software ‘cygwin' (kind of linux in windows environment) and then to perform in cygwin window the command: ‘chmod -R 777 *' in order to give writings... (2 Replies)
Discussion started by: Cedalise
2 Replies
LEARN ABOUT CENTOS
reporter-upload
REPORTER-UPLOAD(1) LIBREPORT MANUAL REPORTER-UPLOAD(1)
NAME
reporter-upload - Uploads compressed tarball of problem directory.
SYNOPSIS
reporter-upload [-c CONFFILE]... [-d DIR] [-u URL]
DESCRIPTION
The tool is used to create a compressed tarball of the problem directory and upload it to a URL. Supported protocols include FTP, FTPS,
HTTP, HTTPS, SCP, SFTP, TFTP and FILE.
Configuration file
Configuration file contains entries in a format "Option = Value".
The options are:
URL
The URL where tarball should be uploaded.
Integration with ABRT events
reporter-upload can be used as a reporter, to allow users to upload compressed tarballs of problem directories to a configured URL. This
usage can be configured in /etc/libreport/report_event.conf:
EVENT=report_Upload reporter-upload
It can be also used on the post-create event to upload it automatically.
EVENT=post-create reporter-upload
OPTIONS
-d DIR
Path to problem directory.
-c CONFFILE
Path to configuration file. When used in ABRT event system, the file contains site-wide configuration. Users can change the values via
environment variables.
-u URL
The URL where tarball should be uploaded. URL should have form protocol://[user[:pass]@]host/dir/[file.tar.gz] where protocol can be
http(s), ftp, scp, or file. File protocol can't have user and host parts: file.tar.gz[1]. If URL ends with a slash, the archive name
will be generated and appended to URL; otherwise, URL will be used as full file name.
ENVIRONMENT VARIABLES
Environment variables take precedence over values provided in the configuration file.
Upload_URL
The URL where should be the tarball uploaded.
AUTHORS
o ABRT team
NOTES
1. file.tar.gz
file:///dir/
LIBREPORT 2.1.11 06/18/2014 REPORTER-UPLOAD(1)