Linux Network Management configuration

Source: Internet
Author: User

The role of file sharing between samba Windows and Linux

Ftp

Nfs


NFS between Linux and Linux

CIFS between Windows and Windows


Dos

DEC Unix

Sun Unix


SMB Service Message Block

Samba

=========================================

Server

Yum-y Install Samba

Vim/etc/samba/smb.conf

[Pub]//share name

Comment = Pub Stuff//Share description information

Path =/common//shared directory

Public = yes/allow Guest user access

writable = yes//The shared directory is a science and

printable = no//whether printing

Write list = Huahua//user to allow write operations

Valid users = Huahua//Allow access to the shared user

Systemctl Restart SMB

New User: Useradd username

Set Samba password for User: Smbpasswd-a username

Ugo permissions: If you want the user to have permission to write, you need to set the user's W permissions on the shared directory.

=====================================================================

Client:

Windows: \\samba server address \ Share name

Linux:mount-t CIFS 192.168.2.222:/pub/media-o Username=huahua



Considerations Regarding Permissions issues:

1. Program Settings permissions

2.UGO Permissions

3.Selinux Permissions


FTP File Transport protocol


21 Control Connection Command channel

20 Data transfer Channel


Active Mode POST

Passive Mode PASV


User type:

(1) Anonymous User: Anon

(2) Local Users:/etc/passwd

(3) Virtual User: Map the logged-in user to the specified system account (/sbin/nologin) to access the FTP resource


/ETC/VSFTPD/VSFTPD.CONF Master configuration file

Anonymous_enable=yes//Allow anonymous access

Local_enable=yes//Allow local user access

Write_enable=yes//local user can read and write

LOCAL_UMASK=022//default permissions for local user-created files (umask)

Anon_upload_enable=yes//Whether anonymous users can upload files

Dirmessage_enable=yes//If the directory exists. Message hidden file, enter the directory and the. Message is displayed.

Xferlog_enable=yes//Whether to continue uploading the downloaded log

Connect_from_port_20=yes//connection from Port 20

Chroot_local_user=yes//Imprison Local users to their home directory

Xferlog_std_format=yes//Log format

Listen=no//whether monitoring

Listen_ipv6=yes


PAM_SERVICE_NAME=VSFTPD//Lists the name of the file associated with Pam, that is, the file name in the/etc/pam.d/directory

Userlist_enable=yes

Tcp_wrappers=yes//Support TCP Wrappers


Virtual User:

(1) Install package: Yum install Pam Libdb libdb-utils

(2) Edit user password file

Vim/etc/vsftpd/ftpuser.txt

Test

123456

(3) Generating database files

Db_load-t-T Hash-f/etc/vsftpd/ftpuser.txt/etc/vsftpd/vsftpd_login.db

(4) Configuring the Auth and Account modules

cd/etc/pam.d/

Vim VSFTPD

Auth sufficient/lib64/security/pam_userdb.so Db=/etc/vsftpd/vsftpd_login

Account Sufficient/lib64/security/pam_userdb.so Db=/etc/vsftpd/vsftpd_login

(5) Adding system users

Useradd-s/sbin/nologin Ftpuser

(6) Configuring the master configuration file

Vim/etc/vsftpd/vsftpd.conf

Pam_service_name=vsftpd

Userlist_enable=yes

Tcp_wrappers=yes

Guest_enable=yes

Guest_username=ftpuser

Virtual_use_local_privs=yes

(7) Start-up service

Systemctl Restart VSFTPD



Linux Network Management configuration

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.