Can't upload to red hat 7.3


 
Thread Tools Search this Thread
Special Forums Hardware Filesystems, Disks and Memory Can't upload to red hat 7.3
# 1  
Old 11-13-2002
Power Can't upload to red hat 7.3

OS red hat 7.3

I deleted a user using webmin and while I was there I browsed around a bit. I didn't think I changed anything but....

http://rhinoseros.com/~pics/temp/webmin.gif

Now I can't upload a file except as root. In ssh file transfer I get "Transfer failed with error8: file.zip Undefined error occurred." Ftp just says error, trashed response.

Any clues? Thanks.


edit. I just disovered I can run perl/cgi scripts from the server root but not from users. I could before, but not anymore.

Directory permissions 'appear' to be correct.

Last edited by Phineus; 11-13-2002 at 05:01 PM..
# 2  
Old 11-13-2002
I've been searching but still haven't come up with the answer yet. However, this page sounds close http://www.perl.com/doc/FAQs/cgi/idiots-guide.html

Q: Under what uid does the server runs its CGI programs?
A: wwwuser (Oops, it can't write my files or directories.)

The author's flippant tone may amuse those in the know, but it doesn't help me one bit. How would one go about correcting this. Is it even in the right direction for what I described above? It associates uid with writing files, so it seems if not on target then at least relevent.
# 3  
Old 11-13-2002
When you make a mistake like this you need to 'stop thinking GUI' and get to the command line:

(1) What is the user ID your web server runs when users are connecting? Hint:

Code:
ps aux | grep httpd

(2) Does this user ID have executable permissions for the PERL or other CGI scripts?

(3) Does this user ID have read permissions into the HTTP document tree?

These are the things that the author of your cryptic note were trying to point out, and when you have these types of problems, you must 'leave your GUI' on the sidelines and learn to navigate the shell and use basic shell commands like cd, ls, pwd, find, chmod, chown, ps, grep, more and do some snooping around the fun and friendly filesystem.

FWIW: In over 15 years of UNIX and Linux work, I've never used a tool like Webmin.... it is just too much fun and a lot faster (when you get used to it) to command the shell !!
# 4  
Old 11-13-2002
Thanks for the response, Neo

>>When you make a mistake like this you need to 'stop thinking GUI' and get to the command line:

I didn't use Smilie for nothing. I should've known better. But it's spilt milk. I'm looking for the mop.

>>(1) What is the user ID your web server runs when users are connecting? Hint: ps aux | grep httpd

ps - process status
aux - all interesting user oriented and no terminal processes (I think)
| pipe it to
grep - get regular expression print
httpd - match this pattern

http://rhinoseros.com/~pics/temp/psauxgrephttpd.gif

But it's still just so many numbers to me.

>>(2) Does this user ID have executable permissions for the PERL or other CGI scripts?

I don't know and I don't know how to find out.

>>(3) Does this user ID have read permissions into the HTTP document tree?

ditto.

>>These are the things that the author of your cryptic note ...

I understand that, but it puts me no closer to solving the problem.

>>FWIW: In over 15 years of UNIX and Linux work, I've never used a tool like Webmin.... it is just too much fun and a lot faster (when you get used to it) to command the shell !!

For what it's worth, I used DOS 3.3 until 1998. I did not do any networking. Earlier this year, I saw webmin in a lab setting and was not impressed. A friend is taking a course and they are stressing webmin a lot. I just bought into a dedicated server after practicing at home for a few months and the company installed webmin so I thought I'd have a look. I should've known better cuz now it's screwed things up. Running the web server and troubleshooting scripts is all well and good but it still doesn't explain to me why other read/write problems exist in ssh or ftp situations. I have no phobia with command lines nor shells. I'll add, I like unix/linux as a concept but "useful" information is just plain and simple too hard to come by.

Thanks Neo, I hope you can point me to the next step.
# 5  
Old 11-14-2002
Okay, I got it. df -k show'd me the partition for /home/ was too small so I ran out of space even tho the hdd was no where near capacity yet. Then webmin removed ExecCGI from the directory line in httpd.conf, and made a few other changes that were hard to spot. In short, I'm back in business.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how to know if i use "Red Hat Enterprise Linux" or "Red Hat Desktop" ?

how to know if i use "Red Hat Enterprise Linux" or "Red Hat Desktop" ? (2 Replies)
Discussion started by: ahmedamer12
2 Replies

2. Red Hat

Red-hat

Hello, How do I see what IP addresses are connected to my machine? thanks (2 Replies)
Discussion started by: sonomao
2 Replies

3. Red Hat

Red Hat E 3

I'm am working with a Red Hat Enterprise 3 server. This is a dedicated server that is supposedly dedicated to one domain, but I have been tasked with trying to figure out if there are files on this system that are being accessed by other IP's. Does anyone know if how I would go about finding... (0 Replies)
Discussion started by: chrisPlusPlus
0 Replies

4. Linux

Red Hat?

I have a Red Hat upgrade disk. I installed it and it corrupted my entire hard drive! I had gotten the disks out of a Dummy's book at my local library. Trying to install 'Red Hat', has cost me $100.00 in damages. (The cool part is my friend gave me that $100.00 part) Ah...A 120gig Hard Drive. Just... (3 Replies)
Discussion started by: hdk_mkr
3 Replies

5. UNIX for Dummies Questions & Answers

Slackware's Linux 3.0 VS Red Hat Linux 7.x

Hello guys, I got overzealous (I Think). I got the book Linux Unleashed that comes with the Slackware 3.0 Version of Linux for $2.00.I also have Red Hat Linux 7.2 (No book, just the OS).What I wanted to know was,other than the bells and whistles of Red Hat is there any significant difference... (2 Replies)
Discussion started by: perrylx
2 Replies

6. UNIX for Dummies Questions & Answers

Red Hat 7.2.....

I just installed red hat 7.2 on my laptop. it's dual booted with xp and red hat. when i boot in to linux it boots up to the screen to ask me my name and pass....i put in root and my password. after this it goes to a blue screen and sits there. the after about 2 minutes it comes up with a fatal... (1 Reply)
Discussion started by: muzscman
1 Replies

7. Shell Programming and Scripting

Clearify what it means under 'WHAT' when hit the 'w'-command

I wonder how I shall read the result below, especially 'what' shown below. The result was shown when I entered 'w'. E.g what is TOP? What is gosh ( what does selmgr mean?)? login@ idle JCPU PCPU what 6:15am 7:04 39 39 TOP 6:34am 6:45 45 45 TOP 6:41am ... (1 Reply)
Discussion started by: Aelgen
1 Replies

8. UNIX for Dummies Questions & Answers

I 've installed Red Hat 7.2 but ????Help

The GUI didn't work Red hat 7.2 I have Voodoo rush and red hat installer chooses A3TD what Should I choose??? I don't Know what monitor Kind I have and red hat installer said that it's Unable to probe it ..SO what monitor I choose?????Plz help cause when I startx the PC said it 's error on... (2 Replies)
Discussion started by: atiato
2 Replies

9. UNIX for Dummies Questions & Answers

can't upload more than one file per session on zmodem

I am working on a website that I have to upload to a unix server. I know next to nothing about unix and I have tried to use Koalaterm and Absolute Telnet to upload files via zmodem. It will upload the first file when I type "sz myfile", however to upload any files beyond that I have to exit and... (1 Reply)
Discussion started by: chiquitita
1 Replies
Login or Register to Ask a Question