Skip to content

Instantly share code, notes, and snippets.

@blackstuend
Last active December 11, 2018 02:09
Show Gist options
  • Save blackstuend/c652eae9f63bd2c45ebf5de80d735cea to your computer and use it in GitHub Desktop.
Save blackstuend/c652eae9f63bd2c45ebf5de80d735cea to your computer and use it in GitHub Desktop.

Samba使用

# yum install -y samba //安裝Samba
# mkdir /sharedpath 
# gedit /etc/samba/smb.conf
  • 修改smb.conf
[global]
  workgroup =WORKGROUP
[myshare]
  path=/sharedpath
  read only = no
  browsable= yes
  comment = test
  • 啟動samba
# systemctl start smb
# systemctl start nmb
  • 新增使用者
# pdbedit -a user
  • 也可以使用smbpasswd 來創建
# useradd user 
# smbpasswd -a user
  • 在windows 開啟
  • 去執行 > 輸入 //192.168.56.103
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment