Now try to connect
with ftp server by following this command & you will get the result below
that will ensure you’re connected with ftp server, but if you want to connect
with ftp properly put the ftp username & password.
[root@client ~]# ftp
210.207.201.7
Connected to 210.207.201.7.
220 (vsFTPd 2.0.5)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (210.207.201.7:root):
Step-3: Create ftp account with Shared directory
Create group ftp-users as a group of ftp user account and share a
directory named Resources in to /home/ as a share directory for
the remote users.
[root@ftp
~]# groupadd ftp-users
[root@ftp
~]# mkdir /home/Resources
Make the directory accessible to the
ftp-users group.
[root@ftp
~]# chmod 750 /home/Resources
[root@ftp
~]# chown root:ftp-users /home/Resources
Now add some users into ftp-users
groups and make their default directory /home/Resources
[root@ftp
~]# useradd -g ftp-users -d /home/Resources user1
[root@ftp
~]# useradd -g ftp-users -d /home/Resources user2
[root@ftp
~]# passwd user1
[root@ftp
~]# passwd user2
Copy files to be downloaded by your
users into the /home/Resources directory
Change the permissions of the files
in the /home/Resources directory for read only access by the group
[root@ftp
~]# chown root:ftp-users /home/Resources/*
[root@ftp
~]# chmod 740 /home/Resources/*
Step-4: Now restart all the required services
[root@ftp ~]# service iptables stop
[root@ftp ~]# service network restart
[root@ftp ~]# service vsftpd restart