1. Add user useradd smb
2. Modify user password passwd smb
3. Add samba user smbpasswd -a
4. Modify directory permissions
chown -R smb /opt/smb
#chmod -R 744 /opt/smb
5. SAMBA configuration
[smb]
comment = C languange example learning
path = /opt/smb
write list = smb
printable = no
browseable = yes
create mask = 755
directory mask = 755
6. Restart samba
service smb restart
samba configuration
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326559180&siteId=291194637
Ranking