Wednesday, June 29, 2022

how to access samba file share from windows server 2019

 Ref: www.alibabacloud.com

gpedit.msc

After edit not restart Server

Solution

  1. On an on-premises Windows client, press Win+R to open the Run dialog box. In the Run dialog box, enter gpedit.msc in the Open field, and then click OK.

  2. In the left-side navigation pane of the Local Group Policy Editor dialog box, choose Computer Configuration > Administrative templates > Network > Lanman Workstation.

  3. In the Setting section of the Lanman Workstation page, click Enable insecure guest logons.

  4. In the Enable insecure guest logons dialog box, select Enabled. Click Apply.

  5. Mount the SMB share.

  6. 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: