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

how to configure ftp server on redhat linux?

9 Answers   Infosys,


1.Diff between Active and passive FTP? 2.What is anacron? 3.Diff between yum update and yum install while doing for kernel? 4.root_squash and no_root_squash does what? 5.What are the commands will you execute to find a new hardware? 6.How will you find out a lun allocated from SAN? 7.What is the main diff in CaT5 and CAT6 cable, except the 1/100 and 1/1000? 8.What is stale NFS and How will you fix it? 9.What is kernel panic error? 10.How will you recover password and shadow file, in case both got deleted. Explain the steps? 11.Explain boot process 12.What is network bonding. Explain the steps? 13.What are the exit codes returned by FSCK? 14.What is LDOM? 15.Diff between block and character device?

2 Answers   Wipro,


what is mean by raid and what are all raids available even in software and hardware?

5 Answers   Satyam,


what is sudo on linux?

3 Answers   IBM,


what is cups and how to configure?

7 Answers   IBM,






what is the difference between user APIs and kernel system calls ?

1 Answers   NetApp,


What is the use of proc structure?

2 Answers   NetApp,


how to create samba server in fedora linux 9 ?

2 Answers   Accenture,


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

0 Answers   Alcatel,


what is the diff b/w MUTEX and semaphore?

12 Answers   Sony, TCS,


What are system calls used for process management in linux?

0 Answers  


diff b/w spinlock, seamaphores and mutex and where to use it.

2 Answers   Intel,


Categories