10-03-2010
When you upload a file via a web server, generally, the user id of the process writing the file is the user id of the web server.
Do you know the UID of your web server process?
You need to start there. What is it?
Then look at the user and group ids of the directory where the file is uploaded, as well as the permissions of the directory.
If you have to open the directory up to 777 for the web server to write to it, that usually means the directory is not owned by the web server (process), or group (of course), depending on how things are set up.
What are these users, groups and permissions?
These are the basics you need to look at (nothing very complex).
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 DEBIAN
roundup-server
ROUNDUP-SERVER(1) General Commands Manual ROUNDUP-SERVER(1)
NAME
roundup-server - start roundup web server
SYNOPSIS
roundup-server [options] [name=tracker home]*
OPTIONS
-C file
Use options read from the configuration file (see below).
-n hostname
Sets the host name in the Roundup web server interface.
-p port
Sets the port to listen on (default: 8080).
-d file
Daemonize, and write the server's PID to the nominated file.
-l file
Sets a filename to log to (instead of stdout). This is required if the -d option is used.
-i file
Sets a filename to use as a template for generating the tracker index page. The variable "trackers" is available to the template
and is a dict of all configured trackers.
-s Enables to use of SSL.
-e file
Sets a filename containing the PEM file to use for SSL. If left blank, a temporary self-signed certificate will be used.
-N Log client machine names instead of IP addresses (much slower).
-u UID Runs the Roundup web server as this UID.
-g GID Runs the Roundup web server as this GID.
-d PIDfile
Run the server in the background and write the server's PID to the file indicated by PIDfile. The -l option must be specified if -d
is used.
-v Print version and exit.
-h Print help and exit.
name=tracker home
Sets the tracker home(s) to use. The name variable is how the tracker is identified in the URL (it's the first part of the URL
path). The tracker home variable is the directory that was identified when you did "roundup-admin init". You may specify any number
of these name=home pairs on the command-line. For convenience, you may edit the TRACKER_HOMES variable in the roundup-server file
instead. Make sure the name part doesn't include any url-unsafe characters like spaces, as these confuse the cookie handling in
browsers like IE.
EXAMPLES
roundup-server -p 9000 bugs=/var/tracker reqs=/home/roundup/group1
Start the server on port 9000 serving two trackers; one under /bugs and one under /reqs.
CONFIGURATION FILE
See the "admin_guide" in the Roundup "doc" directory.
AUTHOR
This manpage was written by Bastian Kleineidam <calvin@debian.org> for the Debian distribution of roundup.
The main author of roundup is Richard Jones <richard@users.sourceforge.net>.
27 July 2004 ROUNDUP-SERVER(1)