Centos 7 install samba server
1. Turn off the firewall, systemctl stop firewalld.service and setenforce 0
2.mkdir /home/samba
chmod 777 /home/samba
3. Configure smb.conf, vim /etc/samba/smb.conf
smb.conf Configuration content
[global]
unix charset = UTF-8
workgroup = WORKGROUP
security = user #share and server have been disabled in samba4
(representing the IP of 192.168.1.*)
hosts allow = 192.168.1.
map to guest =Bad User
[My-Resource]
path = /media/resource
writable = yes
browseable = yes
guest ok= yes
3. Start samba service, systemctl start samba.service
Note: share and server have been disabled in samba4, you need to use security = user and map to guest =Bad User to access the directory without password
4. Log in to the samba server
1) For Windows system
, enter "\\192.168.1.109" in Windows Explorer.
2) For Linux system
users, log in
to the command line and enter smbclient //192.168.1.109/samba shared directory -U username
Enter the user password to log in to the command line
anonymously
Enter smbclient //192.168.1.109/samba shared directory and press
Enter and still prompt for a password, but just press Enter
Centos7 install samba server
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326655476&siteId=291194637
Ranking