A few days ago, on CentOS4, it was easy to enable the samba service. However, after the Ubuntu service is enabled at home, it cannot be accessed in windows. Today, I checked some information on the Internet and finally fixed the problem first, create a directory mkdir/home/leafroot/javaschmod777/home/leafroot/share to edit/etc/samba/smb. remove security = from conf
A few days ago, on CentOS 4, it was easy to enable the samba service. However, after the Ubuntu service is enabled at home, it cannot be accessed in windows. Today, I checked some information on the Internet and finally fixed the problem.
First, create a directory
Mkdir/home/leafroot/share
Chmod 777/home/leafroot/share
Edit
/Etc/samba/smb. conf
Remove the ones before security = user;
Add username map =/etc/samba/smbuser
At the end of the file, add
[Share]
Comment = comment
Path =/home/leafroot/share
Public = yes
Writable = yes
Valid users = wanghn
Create mask = 0700
Directory mask = 0700
Force user = nobody
Force group = nogroup
Available = yes
Browseable = yes