LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-03-2002, 05:18 PM   #1
jholbrook
LQ Newbie
 
Registered: May 2002
Posts: 9

Rep: Reputation: 0
FTP problems in RedHat 7.2


WHY I AM POSTING: I'm having trouble figuring out what is going on with my FTP server that I just set up. I had it running once before, but now it seems to have problems.

WHAT I DID: I re-installed RedHat 7.2, and I selected the "high" firewall security, but I also checked the little box to allow FTP through. The installation screen says that this will work, as long as users connect in PASV mode. I then created a guest user account for someone (by doing useradd, then editing /etc/ftpaccess and /etc/passwd to mark them as a guest user with a specific home directory).

HERE IS MY PROBLEM: On another computer, I downloaded an FTP client and installed it. I set it up with the correct login, password, IP address and PASV mode. It seems to connect just fine, all the way down to the point where it says "retrieving file list." Then it seems to hang for a very long time. However, the user's home directory does finally show up. But there aren't any files showing in it. And when I try to upload, it seems like it takes a very long time again, then finally goes back to "awaiting command," but again the file doesn't actually show up.

THIS IS MY QUESTION: Does this problem have to do with permissions, ports, both or neither? In case it helps, I noticed in the FTP dialog box while I was doing this that after it says all the stuff about password required, user logged in, /XYZ is your current directory, etc., etc., then it says:


200 Type set to A
PASV
227 Entering Passive Mode (192,168,XXX,XXX,4X,2XX)
(#Note: all those X's were numbers, obviously.)
LIST
TYPE A
TYPE A
200 NOOP Command Successful
(#Note: This is where I was trying to upload....)
TYPE A
200 NOOP Command Successful


So, what the heck is NOOP, what the heck is TYPE A, and is this what is messing me up? Thanks very much for any help you folks can offer.

Please feel free to email me with suggestions at jholb@bellsouth.net. Thanks

Last edited by jholbrook; 06-03-2002 at 05:22 PM.
 
Old 06-04-2002, 06:00 AM   #2
MartBrooks
Member
 
Registered: May 2002
Location: London
Distribution: Debian
Posts: 388

Rep: Reputation: 31
"NOOP" is short for "NO OPeration" or in other words do nothing.

TYPE defines the way data will be sent A being ASCII and B being binary. The difference being that in ASCII mode only 7 bits of each byte will be sent as ASCII text will not use the highest bit.

The gotcha here is that if you transfer a binary file (i.e. pretty much anything other than plain text) in ASCII mode, you will corrupt it and render it unusable.

Regards
 
Old 06-04-2002, 06:29 AM   #3
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
make sure you have proper permissions on directory where you allow connecting (root ftp dir, or user home dir)
 
Old 06-04-2002, 12:22 PM   #4
jholbrook
LQ Newbie
 
Registered: May 2002
Posts: 9

Original Poster
Rep: Reputation: 0
Thank you both for posting, I appreciate it.

Noerr - I don't think permissions is the issue, because I also tried connecting as a regular user who has a login on the host machine. Everything was pretty much the same: acting like it's hung up but then finally displaying home/username. But again, there were no files present and I could not upload.

MartBrooks - Could the problem be the fact that some of the ports are not open on the server's internal firewall? I thought PASV mode worked around that, by letting the server specify where everything would happen, but maybe that's the issue....?

If anyone else has any suggestions for how to fix this, please let me know. Thanks very much.
 
Old 06-05-2002, 06:05 AM   #5
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
you need to duble check your root dir, if that isn't ok it won't work regardless what user has logged in
 
Old 06-05-2002, 12:05 PM   #6
jholbrook
LQ Newbie
 
Registered: May 2002
Posts: 9

Original Poster
Rep: Reputation: 0
Question

I'm sorry, but I don't know very much about this. Can you tell me what you mean? What do I need to check?

--Thanks again.
 
Old 06-05-2002, 04:55 PM   #7
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
checkout my old (now I use proftpd) config
this will work 99%
regards

-----------------------------------------------------
# class can have name instead of all (local, remote whatever)
class all real,guest 0.0.0.0/0


guestuser *
realuser root
#realgroup ftpusers

pasv-allow all 0.0.0.0/0
port-allow all 0.0.0.0/0
keepalive yes

# deny user with specific UID
deny-uid %1-499 %1800-
deny-gid %1-499 %1800-
allow-uid ftp
allow-gid ftp

# Default directory for the guests (overwrites dir in /etc/passwd)
guest-root /ftp
guest-root /ftp/nacrti %1700-1706 %1708-1799
# Allow uploading in the following dir
upload /ftp /pub/upload yes

email root@localhost

loginfails 3

readme README* login
readme README* cwd=*

message /etc/ftp/welcome.msg login all
message /etc/ftp/chdir.msg cwd=* all

umask no all
defumask 0002 all
compress yes all
tar yes all
#chmod no guest

log syslog

shutdown /etc/ftp/shut.msg
timeout accept 120
timeout connect 120
timeout data 1200
timeout idle 900
timeout maxidle 1200
timeout RFC931 100

passwd-check rfc822 warn
 
Old 06-05-2002, 05:15 PM   #8
jholbrook
LQ Newbie
 
Registered: May 2002
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks very much, you're a champ. I will give that a shot tonight. I appreciate the way you have followed up on all these posts. Hopefully it's helped some other people as well.

Sincerely,

J. Holbrook
 
Old 06-06-2002, 08:30 AM   #9
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
btw, rather go for proftpd

good luck
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems trying to FTP via Redhat Server cyberzork Linux - Networking 2 10-08-2005 10:15 PM
Problems with FTP client under RedHat 9.0 mlse Linux - Networking 7 06-20-2005 05:00 AM
FTP problems with RedHat 9 markstevens Linux - Networking 21 12-08-2004 06:31 AM
ftp problems in RedHat 7.1 flip12 Linux - Software 1 08-24-2003 07:01 PM
Redhat FTP Install problems mrquint15 Linux - Software 2 02-20-2001 04:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration