Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.11 KB

How_To_Install_Samba.md

File metadata and controls

45 lines (33 loc) · 1.11 KB

Install Samba

[global]  
username map = /etc/samba/smbusers  

[YourFolder]  
comment = Your Comment  
path = /your/path  
browseable = yes  
writeable = yes  
guest ok = no  
read only = no  
valid users = user1, user2  
admin users = user1, user2  
force user = user1  
force group = user1  

# Bash command  
sudo pdbedit -L
sudo pdbedit -x deleteYourUser # Delete user
sudo smbpasswd -a createYourUser # Create user  
sudo smbpasswd yourUserName # Modify password  

/etc/samba/smbusers

root = administrator

Windows 10 启用访问

gpedit.msc

计算机配置 - 管理模板 - 网络 - Lanman工作站 - 启用不安全的来宾登录

Windows credentials manage

net use /delete \\yourhost\dirname  
net use  
net use /user:yourUserName \\yourhost\dirname yourPassword  

Tips

  1. Restart your process 'explorer.exe'
  2. Windows key > Control panel > User accounts > Manage your credentials > Windows credentials > Remove server credentials
  3. Ctrl + R > rundll32.exe keymgr.dll, KRShowKeyMgr
  4. klist purge