24th Day Vsftp, Samba basic application

Source: Internet
Author: User
Tags response code file transfer protocol ftp protocol

1. FTP protocol and VSFTP Basic application

2. Advanced application of VSFTP

3. RPC concept and basic application of NFS

4. Samba and its basic applications


One, file sharing services:

Application Layer: FTP

Kernel: NFS (Sun)

Cross-platform: Samba implements the CIFS (SMB) protocol on Linux

Ftp:file Transfer Protocol Application layer protocol: TCP, 21/TCP

C:

Client: Program

Server: Programs

Data:

Command connection: File Management class command, always on-line connection

Data connection: Transfer, create and close connections on demand


Data transfer format: text transfer, binary transfer


Active: The connection is created by the server

Command:

client:50000-server:21

Data:

SERVER:20/TCP-Client:50000+1


Passive: The connection is created by the client

Command:

client:50000-server:21

Data:

Client:50000+1-Server: Random port


SERVER:WU-FTPD, PROFTPD, Pureftp, vsftpd (Very Secure ftp), SERVU


Client:ftp\ (Lftp, Lftpget), wget, Curl, FileZilla, gftp (Linux GUI) \flashfxp\cuteftp


Response code:

1XX: Information

2XX: Status code for Success class

3xx: Prompt for further status codes for supplemental information

4XX: Client Error

5XX: Service-side error


User authentication:

Virtual User: Used only to access resources in a particular service


Nsswitch:network Server switch, name resolution framework

Configuration file:/etc/nsswitch.conf

Module:/lib64/libnss*,/usr/lib64/libnss*

Pam:pluggable authentication module, user authentication Framework

Module:/lib64/security/

Configuration files:/etc/pam.conf,/etc/pam.d/*


System users:

Anonymous users:


CentOS 6.5:vsftpd

User Authentication profile:/etc/pam.d/vsftpd

Service script:/ETC/RC.D/INIT.D/VSFTPD

Configuration file directory:/ETC/VSFTPD

Master configuration file: vsftpd.conf

Anonymous user (mapped to FTP user) shared resource location:/var/ftp

Location of resources accessed by the system user via ftp: User's own home directory

Location of resources accessed by the virtual user via ftp: The home directory of the system user to which the virtual user specified the mapping becomes



Configuration of anonymous users:

Anonymous_enable=yes Virtual User enablement

Anon_upload_enable=yes Virtual User upload permissions

Anon_mkdir_write_enable=yes Create directory permissions for virtual users

Anon_ohter_write_enable=yes Delete directory and file permissions for virtual users


Configuration of the system User:

Local_enable=yes Local System User enabled

Write_enable=yes Local System User Write permissions (create and delete files, directories)

local_umask=022 file permissions for system users after uploading files 644


Imprison all FTP Local users in their home directory:

Chroot_local_user=yes


The FTP local users specified in the imprison file are in their home directory:

Chroot_list_enable=yes

Chroot_list_file=/etc/vsftpd/chroot_list


24th Day Vsftp, Samba basic application

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.