Ref: www.alibabacloud.com
After edit not restart Server
Solution
On an on-premises Windows client, press
Win+R
to open the Run dialog box. In the Run dialog box, entergpedit.msc
in the Open field, and then click OK.In the left-side navigation pane of the Local Group Policy Editor dialog box, choose Computer Configuration > Administrative templates > Network > Lanman Workstation.
In the Setting section of the Lanman Workstation page, click Enable insecure guest logons.
In the Enable insecure guest logons dialog box, select Enabled. Click Apply.
Mount the SMB share.
If you still fail to mount the SMB share, restart the Windows client to clean up the cache and try again.
Edit share configure on Samba
Change follow the Red highlight
-------------------------------------------//
[Downloads]
comment = Triple X
path = /home/user/Downloads
guest ok = yes
read only = no
writeable = yes
browseable = yes
create mask = 0775
directory mask = 0775
valid users = user, nobody
//--------------------------------------------
Allow user nobody only Write on folder Software
$ history | grep nobody
id nobody
chown +g nobody Downloads/Software/
chown nobody -R Downloads/Software/
sudo chown nobody -R Downloads/Software/
No comments:
Post a Comment