1824976 Members
4000 Online
109678 Solutions
New Discussion юеВ

Enable FTP in Linux

 
SOLVED
Go to solution
muna_1
Frequent Advisor

Enable FTP in Linux

Hello Guys,

I have given a task to enable FTP in Linux systen and am sure how can i do that coz am still trainee ,,

can somebody help me plzz

what the command i have to use to enable FTP ??
23 REPLIES 23
Alexander Chuzhoy
Honored Contributor

Re: Enable FTP in Linux

you didn't specify what version of linux do you have,however if it's redhat,try
service vsftpd start
I'm assuming that you have vsftpd installed.

If you have trouble executing this command let us know.

muna_1
Frequent Advisor

Re: Enable FTP in Linux

vsftpd: unrecognized service

this is what i got!

acually am working on a test system that given to me, I don't know even which version this one !
Alexander Chuzhoy
Honored Contributor

Re: Enable FTP in Linux

try cat /etc/redhat-release

this reveals the exact version of redhat systems (in case this is a redhat system).
what's the output?
muna_1
Frequent Advisor

Re: Enable FTP in Linux

-bash: cat/etc/redhat-release: No such file or directory


this is the output!
Alexander Chuzhoy
Honored Contributor

Re: Enable FTP in Linux

should be space between cat and /etc/redhat-release,i.e.:
cat /etc/redhat-release
muna_1
Frequent Advisor

Re: Enable FTP in Linux

Red Hat Enterprise Linux AS release 3 (Taroon Update 2)

Now I got this
Alexander Chuzhoy
Honored Contributor

Re: Enable FTP in Linux

OK.
first install the vsftpd package-it's located on one of the installation disks.
the installation command is:
rpm -Uvh vsftpd*


Now you're able to start the service
service vsftpd start



that's it.
muna_1
Frequent Advisor

Re: Enable FTP in Linux

ok what if used "ftp> run" ?

I did that and I got >>> Receive unique on

what does that mean?
Alexander Chuzhoy
Honored Contributor

Re: Enable FTP in Linux

looks like you're redirecting the output to a file name "run"
If you've managed to start the ftp service,assigning points will be appreciated.
Ivan Ferreira
Honored Contributor

Re: Enable FTP in Linux

Use redhat-config-packages to install the vsftpd server. Then enable the server using:

service vsftpd start
chkconfig vsftpd on
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Ronald Schwartz_1
Frequent Advisor

Re: Enable FTP in Linux

Make sure your firewall on the server has the port 21 open
Rick Garland
Honored Contributor

Re: Enable FTP in Linux

In some distros, the FTP is not installed by default.

can verify this by using the rpm command as root
# rpm -qa | grep -i ftp

Another alternative is to use SFTP. Of course the recipient system needs the SSH utilities installed as well but on many distros of Linux, the SSH package is installed by default.
Indrajit_1
Valued Contributor

Re: Enable FTP in Linux

Hi,
If it is Red Hat Linux Enterprise 3, type the following commands..
#ntsysv
find if vsftpd service is present. if it present, check the squre box..

#service vsftpd start
Create a user (test)
Go to client machine and type..
#ftp

If vsftp is not present..
Download wu-ftp from Red Hat site..
#rpm -ivh --force
#vi /etc/inetd.d/wu-ftp .. make changes in the file
disable=no
save and come out..
#vi /etc/ftpd/ftpaccess
(Read the file carefully .. u need to made an entry..)
users test
save and come out..
#service inetd restart
Go to client machine.. do ftp to the server..

Hope it would work fine..

cheers
indrajit

Never Ever Give Up
muna_1
Frequent Advisor

Re: Enable FTP in Linux

Thanx alot Guys

I will try and let you know :)

....>>>
muna_1
Frequent Advisor

Re: Enable FTP in Linux

after typing #ntsysv

I got many services in the list and one of them is gssftp

is it the right one or i have to search for vsftpd file ???
muna_1
Frequent Advisor

Re: Enable FTP in Linux

In the Red Hat CD I got a file called

lftp-2.6.3-5.src.rpm

do you have any idea about it ?
muna_1
Frequent Advisor

Re: Enable FTP in Linux

hello guyz

I am trying to install the vsftpd file from a CD, but i got an error msg !!

Installation Tree Not Found!

The path /mnt/cdrom does not look like a valid installation source.

could you explain this to me plz?
Steven E. Protter
Exalted Contributor

Re: Enable FTP in Linux

Shalom muna,

To install the rpm, you need to be in the RPMS folder.

Then rpm -ivh

As an ITRC trainee, please take the time to assign points to those that provided you help.

Linux trainee? I had to train myself!

Good luck,

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Indrajit_1
Valued Contributor
Solution

Re: Enable FTP in Linux

Muna,

Sorry for the late reply...

u need to mount the cd properly.. do the following steps..
#mount /dev/cdrom /mnt
#cd /mnt
type ls command and find for Red Hat Directory..
#cd RedHat/RPMS
#ls vsftp*
u should able to see a file with vsftpxxx.rpm
#rpm -ivh --force vsftpxxxx.rpm
it will install the rpm package.
#ntsysv
u should able to see the vsftpd service.
or u download load wu-ftp package from red hat site. install the package using rpm command.
#vi /etc/xinetd.d/wu-ftp
disable=no
save and come out..
#service xinetd restart
#vi /etc/ftpd/ftpaccess
users save and come out..

Try this and let me know if it is working fine..

cheers
indrajit
Never Ever Give Up
muna_1
Frequent Advisor

Re: Enable FTP in Linux

hello Indrajit

I followed your steps and i enabled FTP , I did the following:

#mount /dev/cdrom /mnt
#cd /mnt
#ls
I got cdrom
#cd cdrom/RedHat/RPMS
#ls vsftp*
I saw the file that i want to install
#rpm -ivh --force vsftpxxxx.rpm
succeccdully installed
#ntsysv
I saw the vsftpd service in the list
#service xinetd restart

but here I faced problem >>
whenever I type this command
#vi /etc/ftpd/ftpaccess
I am getting this result

~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"/etc/xinetd.d/wu-ftp" [New File] 0,0-1 All

Can you explain this please!
muna_1
Frequent Advisor

Re: Enable FTP in Linux

Ok

I typed

vi /etc/ftpd/ftpaccess

users muna

:wq!

then I got a msg telling me :

vi /etc/ftpd/ftpaccess .. file not found!

muna_1
Frequent Advisor

Re: Enable FTP in Linux

I have created the user name

#ftp
ftp>open
Connected to .
220 (vsFTPd 1.2.1)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (:root): muna
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.


Now It's working

Thanx alot for helping me :)
muna_1
Frequent Advisor

Re: Enable FTP in Linux

DONE!!