Mostly used ftp commands In Linux on Telugu
Hi guys ! here we are going to learn mostly used ftp commnads
Below command is used to create user(raja) -d option is used to create user with home -s used for mention login ,/bin/false means we are restricting ftp user.
useradd raja -d /home/raja -s /bin/false
Below command is used to assign owner permission.
chown raja:raja /home/raja
Below command is used to change user passwd
passwd raja
Using below path we can do required settings for ftp logins.
vi /etc/vsftpd/user_list
My vsftpd.config file configuration as below
anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
anon_upload_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
chroot_local_user=YES
chroot_list_enable=YES
listen=NO
listen_ipv6=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
userlist_file=/etc/vsftpd/user_list
userlist_deny=NO
#chroot_list_file=/etc/vsftpd/vsftpd.chroot_list
allow_writeable_chroot=YES
------
Below command is used to login into ftp server
ftp -i 192.168.48.131
directory.
mkdir - create a new directory within the current remote directory.
pwd - print the current working directory on the remote machine.
delete - remove a file in the current remote directory.
help or ? - list all available FTP commands.
mget - copy multiple files from the remote to the local machine.
put - copy one file from the local to the remote machine.
mput - copy one file from the local to the remote machine.
Downloading Files with the FTP Command
cd - change directory on the remote machine.
lcd - change directory on the local machine.
ls - list the names of the files and directories in the current remote
rmdir- remove a directory in the current remote directory.
get - copy one file from the remote to the local machine.
bye/close/exit- used to exit from ftp
Below command is used to create user(raja) -d option is used to create user with home -s used for mention login ,/bin/false means we are restricting ftp user.
useradd raja -d /home/raja -s /bin/false
Below command is used to assign owner permission.
chown raja:raja /home/raja
Below command is used to change user passwd
passwd raja
Using below path we can do required settings for ftp logins.
vi /etc/vsftpd/user_list
My vsftpd.config file configuration as below
anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
anon_upload_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
chroot_local_user=YES
chroot_list_enable=YES
listen=NO
listen_ipv6=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
userlist_file=/etc/vsftpd/user_list
userlist_deny=NO
#chroot_list_file=/etc/vsftpd/vsftpd.chroot_list
allow_writeable_chroot=YES
------
Below command is used to login into ftp server
ftp -i 192.168.48.131
directory.
mkdir - create a new directory within the current remote directory.
pwd - print the current working directory on the remote machine.
delete - remove a file in the current remote directory.
help or ? - list all available FTP commands.
mget - copy multiple files from the remote to the local machine.
put - copy one file from the local to the remote machine.
mput - copy one file from the local to the remote machine.
Downloading Files with the FTP Command
cd - change directory on the remote machine.
lcd - change directory on the local machine.
ls - list the names of the files and directories in the current remote
rmdir- remove a directory in the current remote directory.
get - copy one file from the remote to the local machine.
bye/close/exit- used to exit from ftp
Comments
Post a Comment