how to configure ftp server on redhat linux?

Answers were Sorted based on User's Feedback



how to configure ftp server on redhat linux?..

Answer / amsin21

RHEL server comes with vsftpd which is the Very Secure File
Transfer Protocol (FTP) daemon. The server can be launched
via a xinetd or as standalone mode, in which case vsftpd
itself will listen on the network port 21.

Install vsftpd:
# yum install vsftpd

Turn on vsftpd ftp service:
# service vsftpd start

Open FTP port:
Open /etc/sysconfig/iptables file, enter:
# vi /etc/sysconfig/iptables

Append following line to open ftp port 21 before REJECT line:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp
--dport 21 -j ACCEPT

Save and close the file. Restart the firewall:
# service iptables start

Test ftp server:

# ftp localhost

The default configuration file is /etc/vsftpd/vsftpd.conf file.
# vi /etc/vsftpd/vsftpd.conf

Is This Answer Correct ?    95 Yes 25 No

how to configure ftp server on redhat linux?..

Answer / surendra singh adhikari

firstly create the user.
useradd surendra
passwd surendra

then opne the FTP file:-
vi /etc/vsftpd/vsftpd.conf
add this line at the end of the file
userlist_deny=NO

then open this file,
vi /etc/vsftpd/user_list

and add the above created user in this file to access FTP
services.

and restart the FTP services
/etc/init.d/vsftpd start
chkconfig vsftpd on ( for permanent on )

Is This Answer Correct ?    70 Yes 22 No

how to configure ftp server on redhat linux?..

Answer / sachit k verma

fisrt install yum server after then
# yum install vsftpd*
# service vsftpd restart
# chkconfig vsftpd on
then after for chk
# ftp <server IP>
# anonumous

press two times enter because anonymous is using without
password if its successfully done means ur ftp is working

Is This Answer Correct ?    46 Yes 22 No

how to configure ftp server on redhat linux?..

Answer / muhammad.ali

step 1:first check sw is install or not by command

rpm -q vsftpd

if it is install go to step 2

step2:go in configuration file by using vi or vim editor

vim /etc/vsftpd/vsftpd.conf

step3:by default no change is required if u want the user to

enter through password then make user and give password.

adduser tom

passwd tom

and in vsftpd.conf file

their is line local_enable =YES should be done yes

step 4:restart service

service vsftpd restart

step 5: now u open brower and type their

ftp://127.0.0.1 (ip of server me using loopback address)

for anonymous user

or

ftp://tom@localhost
for localhost user above line.

Is This Answer Correct ?    22 Yes 1 No

how to configure ftp server on redhat linux?..

Answer / sanjay

step 1- open this file
vim /etc/yum.repos.d/local.repo
[sanjay]
name=sanju
baseurl=ftp://192.168.0.0/repo (server IP)
enabled=1
gpgcheck=0

save the file and follow step 2

yum clean all

yum install vsftpd

mkdir /var/ftp/sanjay
chmod 775 /var/ftp/sanjay
chgrp ftp /var/ftp/sanjay
la -ld /var/ftp/sanjay

vim /etc/vsftpd/vsftpd.conf
go to line no 12 using se nu
anonymous_enable = YES
local_enable = YES
anon_umask = 022
anon_upload_enable = YES
save the file
service vsftpd start
chkconfig vsftpd on
chcon -t public_content_rw-t /var/ftp/sanjay
la -lZ /var/ftp/
getsebool -a |grep ftp
setsebool -p allow_ftpd_anon_write on
setsebool -p ftp_home_dir1(local user)
service vsftpd restart

then log in

ftp <server IP>
# anonumous

press two times enter because anonymous is using without
password if its successfully done means ur ftp is working

Is This Answer Correct ?    25 Yes 6 No

how to configure ftp server on redhat linux?..

Answer / satish malanch

FTP server is the best method to download files over
internet.In case of linux ftp server is configured by
installing vsftp rpm package on a linux machine:
the vsftpd package can be installed eihter with rpm command
or by yum command.
after configuring ftp server user either can be logon
annoymousily or by a secure user name and password,depeding
upon how you configure it.Usaly on internet it is
configured as anoymously

Is This Answer Correct ?    21 Yes 15 No

how to configure ftp server on redhat linux?..

Answer / guest

for file transfer to network.

Is This Answer Correct ?    23 Yes 21 No

how to configure ftp server on redhat linux?..

Answer / satish kr malanch

This is explained in details here:
http://malanchlinux.blogspot.com/2010/01/configuring-vsftp-server-ftp-server-in.html



....Satish Kr Malanch

Is This Answer Correct ?    7 Yes 5 No

how to configure ftp server on redhat linux?..

Answer / srikanth

install package
#yum install vsftpd* -y
you need check package install or not
#rpm -qa |grep -i vsftpd*
install package ok
packages not install go to packages location install packages
#rpm -ivh vsftpd*
After completed this task
service restart or service on
#service vsftpd restart
#chkconfig vsftpd on
These steps follow server and client side
After login ftp client side
ftp <password>
ftp>name
ftp>password ( we are used anonymous user name,password : enter ales type password
ftp>ls present location
ftp>cd pub which directory located in your file and directory that path
ftp>get file or directory(single file)
ftp>mget (multiple files , directory)
ftp>put (single files)
ftp>mput(multiple files)
ftp> completed your task ( don't type this words)
ftp>bye or quit
task is completed

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Linux System Calls Interview Questions

what kind of information the linux driver modules (.ko ) files has ?

2 Answers   NetApp,


what is stored at /lib/modules ?

2 Answers   NetApp,


what is sudo on linux?

3 Answers   IBM,


What is the use of proc structure?

2 Answers   NetApp,


what is samba, what is configuration file, how it will work?

3 Answers   Wipro,






what are different ways the context switch happens from user to kernel space or vice-versa ?

0 Answers   Alcatel,


what is stored in /proc ? what is significance of /proc in linux ?

3 Answers   NetApp,


what is bus trap.

1 Answers   NetApp,


How to give the root permision to users?

3 Answers   Wipro,


linux file defaults permition

8 Answers  


What does exec family return?

1 Answers  


what is segmentation fault?

11 Answers   AdTel, NetApp,


Categories