how to configure ftp server on redhat linux?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
1. Where the History file can be located? 2. How will you harden the server? 3. Diff between Raid 1 and Raid 5? 4. What is the largest disk size can be used in LVM? 5. How will you remove a PV from lvm without any data loss? 6. What is the diff between ext3 and ext2 File system? 7. How we can use resize2fs, what is the purpose? 8. What is the purpose of LVM? Why it is used? 9. If the FS is in read-only mode, so we cannot create any file. How will you fix it? 10. How to create swap partition after OS installation? 11. What is the diff between ssh and telnet? 12. How to find out the dependency required for a package?
how to create samba server in fedora linux 9 ?
What are system calls used for process management in linux?
What does exec family return?
What will happen when we invoke a system call and say with an example of invoking a system call ?read? for a device?
what is samba, what is configuration file, how it will work?
what are the different ways the Linux can swich from User Space to Kernel Space & vice-versa ?
how to create a ftp user on redhat linux 4.0?
if root user forget the password how to change it?
how to configure ftp server on redhat linux?
linux system its not booting up its showing groub error what i need to do?
what is nis server