Use Samba service implementation files between Linux and Windows systems to share

Use Samba password authentication service allows to share files more secure, so only allow trusted users access and authentication process is also very simple, in order to use password authentication mode, we need to need to create a separate Samba server database.

Step 1: Install Samba service package

 

 

 

 Step two: Check for the current user authentication mode

# cat /etc/samba/smb.conf

 

 Step 3: Create a shared folder    description for the shared folder information

# Mkdir / database #vi /etc/samba/smb.conf 

In the SMB service main profile of the bottom of the configuration parameters of the additional folders to share files:

[database]
comment = Do not arbitrarily modify the database file
path = /database
public = no
writable = yes

Save smb.conf after the restart to start SMB file services:

# systemctl restart smb

Step four: Use Windows host attempts to access the remote host input information \\ 192.168.14.100 in the Run box (win + R) in

 

 Step 5: Create Separate SMB service account

To access current Windows system requirements to verify the share, while the SMB service configuration file password database backend type " tdbsam ", so this account and password are independent account information Samba services , we need to use pdbedit command to create SMB service user database

Create a system user: # useradd smbuser

This system users upgrade to SMB users:

# pdbedit -a -u smbuser

Username: smbuser    

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/7-58/p/11858153.html