Exportfs commands, NFS client issues, FTP introduction, using VSFTPD to build FTP

Source: Internet
Author: User
Tags file transfer protocol

Exportfs command

Function description
NFS Shared Management
Syntax format
Exportfs [Necessary parameters] [selection parameters] [catalogue]
Function description
EXPORTFS command: For managing the NFS (Network file System) filesystem, use EXPORTFS to operate without directly editing the/etc/exports file
Select parameters
-A incremental update to mount and unload portions of/etc/exports additions or modifications
-i< File > Specify configuration file

-R update configuration, re-read/etc/exports

-U Uninstalls the specified directory

-O Use specified parameters

-V Show sharing details

"Common Parameters for NFS sharing"

RO read-only access

RW Read-Write access

Sync to write to hard drive

Async Staging Memory

Secure NFS is sent over a secured TCP/IP port below 1024

Insecure NFS is sent over 1024 ports

Wdelay when multiple users write to a shared directory, the data is written by group (default)

No_wdelay Write data immediately when multiple users write to a shared directory

Hide does not share its subdirectories

No_hide share its subdirectories

Subtree_check forcing NFS to check the permissions of the parent directory

No_subtree_check do not check parent directory permissions

All_squash any visitor to anonymous Yong

Root_squash Root user accesses this directory and maps to the same permissions as the anonymous user (default)

No_root_squash root user access to this directory with root operation privileges

Introduction to FTP

FTP is the abbreviation for the file Transfer Protocol (document Transfer Protocol), which is used to control the two-way transmission of files over the Internet.
The primary role of FTP is to have the user connect to a remote computer (which runs an FTP server program), view the files on the remote computer, and then copy the files from the remote computer to the local computer, or transfer the files from the local computer to the remote computer.
Small companies with many, large enterprises without FTP, because unsafe

Build:
Yum Install vsftpd
Vi/etc/vsftpd/vsftpd.conf
Anonymous_enable=no
Local_enable=yes
Write_enable=yes
local_umask=022
Dirmessage_enable=yes
Connect_from_port_20=yes
Xferlog_enable=yes
Xferlog_std_format=yes
Xferlog_file=/var/log/vsftpd.log
Chroot_local_user=yes
#local_root =/data/
local_root=/newbackup/carisok/
User_config_dir=/etc/vsftpd/userconfig
Listen=yes
Pam_service_name=vsftpd
Userlist_enable=no
Tcp_wrappers=yes

chmod 777-r *
Local_root This directory modification

sudo useradd-d/newbackup/carisok/-M Zdnst
sudo passwd zdnst

Verify ftp://192.168.1.100

Exportfs commands, NFS client issues, FTP introduction, using VSFTPD to build FTP

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.