Home > OS >  CentOs7 samba is not written to the file
CentOs7 samba is not written to the file

Time:10-09

Centos samba server, selinux closed 137/138/139/445 port open

The client win10 can open the Shared folder, you can copy/delete data,
Magic is, in the data in Linux,
Samb configuration file
Path=/home/naa/SMB
Mount the disk is ext3

TMP win10 side not

Could you tell me how to solve this

CodePudding user response:

Search the file name,

CodePudding user response:

How to configure the
Look testparm

CodePudding user response:

Install samba
Yum install samba

Start the samba
Systemctl start SMB
Set the startup samba
Systemctl enable SMB

Add the Shared file used to read and write permissions, and read-only access of users, the command is:
Sudo useradd -d/home/smbadmin smbadmin -s/bin/false - N
Sudo useradd -d/home/smbuser smbuser -s/bin/false - N
Set the account password, the command is as follows:
Sudo the smbpasswd -a smbadmin
Sudo the smbpasswd -a smbinstall
(every time lost password twice)
To create a Shared folder and assign the appropriate permissions, command is as follows:
Sudo mkdir -p/SRV/samba/smbadmin
Sudo chown smbadmin/SRV/samba/smbadmin/
Sudo chmod 755/SRV/samba/smbadmin/
Open/etc/samba/SMB. The conf file and pass on the file sharing "definition" part of the insert is similar to the following configuration file for the distribution point:
Type the command: vim/etc/samba/SMB. Conf
In the last row inserts:
[smbadmin]
Comment=smbadmin
Path=/SRV/samba/smbadmin
Browseable=no
Guest ok=no
Read only=yes
The create mask=0755
Read the list=smbuser
Write a list=smbadmin
Valid users=smbadmin, smbuser


The above is my installation and configuration method of samba, you can consult
  • Related