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 SUSE
any2djvu
ANY2DJVU(1) DjVuLibre-3.5 ANY2DJVU(1)
NAME
any2djvu - Convert .ps/.ps.gz/.pdf to .djvu
SYNOPSIS
any2djvu url {filename(s)}
DESCRIPTION
Converts files from .ps/.ps.gz/.pdf to .djvu by running them through a web server willing to perform this task.
Invoke with -h switch for usage information.
ENVIRONMENT
Non-empty value of DJVU_ONLINE_ACK acknowledges transmission of the documents to the server (so that no warning dialog is displayed).
EXAMPLES
any2djvu http://www.bcl.hamilton.ie/~barak/papers mesh-preprint.ps.gz
any2djvu localfile.pdf
AUTHORS
David Kreil, Barak A. Pearlmutter, Yaroslav O. Halchenko
BUGS
Using a web-based encoder server is a stop-gap measure until better encoders enjoy wide free distribution.
There is a security issue in operating on documents not intended for widespread distribution, which could be partially although not com-
pletely ameliorated by using a secure web connection.
SEE ALSO
The entire djvu suite, eg djvu(1), djview(1), and djvuserver(1).
DjVuLibre-3.5 02/12/2003 ANY2DJVU(1)