Create ftp account with Shared directory Part 3HARDWARE NETWORKING LINUX SOFTWAREIt Tech Technology

It Tech Technology

COMPUTER HARDWARE NETWORKING

Breaking

Home Top Ad

Post Top Ad

Wednesday, February 24, 2016

Create ftp account with Shared directory Part 3


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.

[[email protected] ~]# 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.

[[email protected] ~]# groupadd ftp-users

[[email protected] ~]# mkdir /home/Resources

Make the directory accessible to the ftp-users group.

[[email protected] ~]# chmod 750 /home/Resources 

[[email protected] ~]# chown root:ftp-users /home/Resources

Now add some users into ftp-users groups and make their default directory /home/Resources

[[email protected] ~]# useradd -g ftp-users -d /home/Resources user1

[[email protected] ~]# useradd -g ftp-users -d /home/Resources user2

[[email protected] ~]# passwd user1

[[email protected] ~]# 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

[[email protected] ~]# chown root:ftp-users /home/Resources/*

[[email protected] ~]# chmod 740 /home/Resources/*


Step-4: Now restart all the required services

[[email protected] ~]# service iptables stop

[[email protected] ~]# service network restart

[[email protected] ~]# service vsftpd restart

Post Bottom Ad