VSFTPD
SERVER
1. yum install vsftpd -y
2. service vsftpd restart
3. setsebool -P ftp_home_dir on ->Do this to allow user to connect
CLIENTS
ANONYMOUS LOGIN
(connecting as anonymous or ftp user
and blank password)
ftp <ftpserver>
name ftp
pass ........... (Blank Password)
ftp> pwd ->you connect to pub dir
ftp> ls ->shows remotes file list
ftp> !ls ->shows local file list
ftp> get <file> ->Copy/download files
ftp> put <file> ->Cannot UPLOAD files
ftp> cd /home ->NOT allowed to change dir
ftp> bye ->Log out from ftp prompt.
NON-ANONYMOUS LOGIN
(connect as normal user of remote machine)
ftp <ftpserver>
name u1
pass 1
ftp> pwd ->you connect to home dir of u1
ftp> ls ->shows remotes file list
ftp> !ls ->shows local file list
ftp> get <file> ->Copy/download files
ftp> put <file> ->Copy/Upload files
ftp> cd /home ->Allowed to change dir
ftp> bye ->Log out from ftp prompt.
CONFIGURATION FILE
1. ftp users - To stop one/two users to use ftp
If you want to stop one or two users from using ftp
enter there names in this file. That stops that user
from connecting throu ftp.
2. user_list - To stop many users from
using ftp connection
a. Add the users whom you want to stop using ftp to this file +
b. And add this to /etc/vsftpd/vsftpd.conf userlist_deny=YES
c. service vsftpd restart
3.vsftpd.conf
OPTIONS FOR /ETC/VSFTPD/VSFTPD.CONF
1. To Allow anonymous login
anonymous_enable=YES
To Stop anonymous login
anonymous_enable=NO
2. To Allow normal user to login
local_enable=YES
To Stop normal user to login
local_enable=NO
3. To Allow normal user to create files by default
write_enable=YES
To Stop normal user to create files
write_enable=NO
4. To allow Anonymous user to UPLOAD file.
a> #anon_upload_enable=YES
->uncomment this line +
b> chmod a+w /var/ftp/pub
->/var/ftp/pub dir should be writable
c> write_enable=YES
->write enable should b yes
5. If Anonymous user uploads file,owner of file is ftp by default, but if you want u1 to be owner of file change here.
#chown_uploads=YES
#chown_username=u1
->uncomment this 2 lines + user=u1
6.no_anon_password=YES
->Wont prompt the password for anonymous user
no_anon_password=NO
->Prompt the password for anonymous user
If you found this post useful, I would really love it, if you can Like the Page, or share it with your Facebook/Google+/Twitter Friends... It will keep me motivated. Thank you!
SERVER
1. yum install vsftpd -y
2. service vsftpd restart
3. setsebool -P ftp_home_dir on ->Do this to allow user to connect
CLIENTS
ANONYMOUS LOGIN
(connecting as anonymous or ftp user
and blank password)
ftp <ftpserver>
name ftp
pass ........... (Blank Password)
ftp> pwd ->you connect to pub dir
ftp> ls ->shows remotes file list
ftp> !ls ->shows local file list
ftp> get <file> ->Copy/download files
ftp> put <file> ->Cannot UPLOAD files
ftp> cd /home ->NOT allowed to change dir
ftp> bye ->Log out from ftp prompt.
NON-ANONYMOUS LOGIN
(connect as normal user of remote machine)
ftp <ftpserver>
name u1
pass 1
ftp> pwd ->you connect to home dir of u1
ftp> ls ->shows remotes file list
ftp> !ls ->shows local file list
ftp> get <file> ->Copy/download files
ftp> put <file> ->Copy/Upload files
ftp> cd /home ->Allowed to change dir
ftp> bye ->Log out from ftp prompt.
CONFIGURATION FILE
1. ftp users - To stop one/two users to use ftp
If you want to stop one or two users from using ftp
enter there names in this file. That stops that user
from connecting throu ftp.
2. user_list - To stop many users from
using ftp connection
a. Add the users whom you want to stop using ftp to this file +
b. And add this to /etc/vsftpd/vsftpd.conf userlist_deny=YES
c. service vsftpd restart
3.vsftpd.conf
OPTIONS FOR /ETC/VSFTPD/VSFTPD.CONF
1. To Allow anonymous login
anonymous_enable=YES
To Stop anonymous login
anonymous_enable=NO
2. To Allow normal user to login
local_enable=YES
To Stop normal user to login
local_enable=NO
3. To Allow normal user to create files by default
write_enable=YES
To Stop normal user to create files
write_enable=NO
4. To allow Anonymous user to UPLOAD file.
a> #anon_upload_enable=YES
->uncomment this line +
b> chmod a+w /var/ftp/pub
->/var/ftp/pub dir should be writable
c> write_enable=YES
->write enable should b yes
5. If Anonymous user uploads file,owner of file is ftp by default, but if you want u1 to be owner of file change here.
#chown_uploads=YES
#chown_username=u1
->uncomment this 2 lines + user=u1
6.no_anon_password=YES
->Wont prompt the password for anonymous user
no_anon_password=NO
->Prompt the password for anonymous user
If you found this post useful, I would really love it, if you can Like the Page, or share it with your Facebook/Google+/Twitter Friends... It will keep me motivated. Thank you!
No comments:
Post a Comment