1823057 Members
3136 Online
109645 Solutions
New Discussion юеВ

Re: FTP

 
SOLVED
Go to solution
Tonatiuh
Super Advisor

FTP

I have just installed Red Hat AS 2.1 but I cannot open a ftp session to the server.

What should I config in the sever to allow users to open a ftp session?
19 REPLIES 19
HGN
Honored Contributor

Re: FTP

Hi

FTP is not enabled by default, you need to do the following

Install the ftp rpm(wuftpd)
Enable ftp

Then ftp will start working

No reboot is required install ftp rpm,then enable it using setup, do a kill -HUP on inetd and ftp will start working

Hope this helps

Rgds

HGN

Tonatiuh
Super Advisor

Re: FTP

I am really newbie in RH, could you please show me the syntax to install it?
Nobody's Hero
Valued Contributor

Re: FTP

Download the .rpm file
then run

rpm -i 'rpm_file_name'
UNIX IS GOOD
Nobody's Hero
Valued Contributor

Re: FTP

Tonatiuh,

I hope you get some help on this forum. I know you will. There are many talented peple on this forum and I owe a lot of what I have learned to them.

How about assigning them some points for the effort. Not for me but for the others. I dont have a clue.
UNIX IS GOOD
Jan Sladky
Trusted Contributor

Re: FTP

Hi Tonatiuh,
there is probably
1. no FTP server instalation on your box or 2.ftp server is not started or
3.your system is using ftp server via superserver or superdaemon - inetd or xinetd

1) check whether ftp is installed

rpm -qa | grep -i ftp

installation is done by

rpm -Uvh package.rpm (I'm using pure-ftpd)

2)start ftp daemon
/etc/init.d/your_ftp_server start

automatic start in boot you will achieve by

chkconfig --level 35 on pure-ftpd

where numbers are system levels
(try chkconfig --list )

3)you must find out which superserver is running on your box

ps -ef | grep inet

you should see something like this
......... 00:00:00 /usr/sbin/xinetd
or
....................../usr/sbin/inet

than you must allow ftp service in configuration file of superserver.

vi :/etc/xinetd.d/pure-ftpd

disable = no

or

vi /etc/inetd.conf

delete # on the begining of ftp rows

finnaly you have to restart superserver

xinetd restart

or

inetd -c

hope this will help

br Jan


GSM, Intelligent Networks, UNIX
Tonatiuh
Super Advisor

Re: FTP

I am really confused.

Does not RH have its own FTP server which just need to be activated and ready (similar to TelNet) ?

I have searched for the files all of you have told, but when I downloaded and try to install it, it says that has dependencies and the dependecies (downloaded) say that are from diferente architecture.

Is there any site to donwload all the files just for the RH AS distribution?

Could you helpe giving me the proper links to download the files you have mentioned?
Jan Sladky
Trusted Contributor

Re: FTP

try

rpm -qa | grep -i ftp

and you will see whether is ftp server instaled or not

try to install from original AS CD, you should have it
or try redhat.com downloads

br Jan
GSM, Intelligent Networks, UNIX
Tonatiuh
Super Advisor

Re: FTP

This is the output of the command

[root@RAC1 etc]# rpm -qa | grep -i ftp
gftp-2.0.8-2
ftp-0.17-12
ncftp-3.0.3-6
Jan Sladky
Trusted Contributor

Re: FTP

.... and also try to assign some points for answers you got ;-)

br Jan
GSM, Intelligent Networks, UNIX
Tonatiuh
Super Advisor

Re: FTP

I think I should wait until my problem be solved to assign points. At this moment, the answers have been not complete (to my out of experience) and my problem is not solved. So that I cannot assign points to answers which do not really help me.
Stuart Browne
Honored Contributor

Re: FTP

RH AS/ES comes with FTP servers, but unless you choose to install them at install time, they don't go on.

As all Enterprise RH products install 'ssh' by default, the assumption is that you neither need or desire telnet or ftp (unsecure and un-encrypted protocols).

You can download the 'wuftpd' package from the RedHat Network secure website (you've created a RHN account, yes?), or you can chose to use the 'vsftpd' package instead (more secure).

I can't give you URL's to these as they change per login user.

If you haven't created a RHN account, then you should do so immediately.

Without an RHN account, you only have access to Source RPM's on the RH FTP site (ftp.redhat.com). If you have to go down this path, you'll also need the development packages installed.

This is only necessary of course if you do not have the installation media available.

Once you have the package, it's very easy to install (follow Jan's advice).
One long-haired git at your service...
Jan Sladky
Trusted Contributor

Re: FTP

I suppose that easiest way for you is GUI installation tool accesible from KDE/GNOME menu.
I don't know the name of the tool , I'm using SuSE distro, but know it exists, I was using it several months ago. There select some ftp server.

You can also downloads pure-ftpd from

http://rpm.pbone.net/index.php3/stat/4/idpl/1129356/com/pure-ftpd-1.1.0-1.i386.rpm.html
(rpm)

or source from

http://sourceforge.net/projects/pureftpd/
(It is bz2, => I'll need to compile it:
bzip2 -d file

cd file
./configure
make
make install)

Jan

GSM, Intelligent Networks, UNIX
Alexander Chuzhoy
Honored Contributor
Solution

Re: FTP

Insert and mount a cdrom.
The rpm files should be on a cdrom under
/RedHat/RPMS/*

the command:
rpm -Uvh mountpoint/RedHat/RPMS/wu-ftpd-version.rpm

where mountpoint is the point where the cdrom is mounted, and version is the version of wu-ftpd on your cdrom - will install the ftp server on your RedHat.
From the output you gave us-it seems that currently you have ftp clients installed ,but no server.
After successfull installation of FTP server.
run the command:
chkconfig wu-ftpd on

This will enable and start the FTP service.
After that you can try to ftp to this server.



As alternative you can try to install the vsftpd server from the same set of CDROMs.
Johannes Krackowizer_1
Valued Contributor

Re: FTP

hi tonatiuh,

have a look at:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=698075

best regards,

johannes
"First off, I'd suggest printing out a copy of the GNU coding standards, and NOT read it. Burn them, it's a great symbolic gesture." (Linus Torvalds)
Tonatiuh
Super Advisor

Re: FTP

Thanks Alexander! I have successfully installed and activated the wu-ftpd.

But I can not ftp with root user, only with anoterh users.

What must I configure to ftp with root user?
Johannes Krackowizer_1
Valued Contributor

Re: FTP

hi,

there are some files in /etc/. i'm not sure but i think the are named ftpacces or something like that. you have to remove root from this file to allow root ftp access.

best regards,

johannes
"First off, I'd suggest printing out a copy of the GNU coding standards, and NOT read it. Burn them, it's a great symbolic gesture." (Linus Torvalds)
Jan Sladky
Trusted Contributor

Re: FTP

Hi,
In order to root can use ftp, you must delete
root from /etc/ftpusers

br Jan
GSM, Intelligent Networks, UNIX
Tonatiuh
Super Advisor

Re: FTP

/etc/ftpusers says:

# The ftpusers file is deprecated. Use deny-uid/deny-gid in ftpaccess.

I do not underestand how to config the ftpaccess to user root gain ftp acces?

Anoyone who can help me?
Johannes Krackowizer_1
Valued Contributor

Re: FTP

hi tonatiuh,

if you edit /etc/ftpaccess:

1) delete deny-gid and deny-uid lines
2) add allow-gid %1-10000 and allow-uid %1-10000

allow-gid %1-10000 means that all groups with id from 1 to 10000 are allowed to log onto ftp-server.

allow-uid %1-10000 means that all users with id from 1 to 10000 are allowed to log onto ftp-server.

root has group root.
user root's uid (user id) is 1.
group root has gid (group id) 1.

best regards,

johannes
"First off, I'd suggest printing out a copy of the GNU coding standards, and NOT read it. Burn them, it's a great symbolic gesture." (Linus Torvalds)