# Samba簡易手冊 1. 安裝Samba: yum install samba 2. 設定Samba: /etc/samba/smb.conf 3. 加入Samba使用者: smbpasswd -a user (user需為OS存在的使用者) 4. 新增Samba的Group: groupadd smbgrp 5. 將使用者加入Samba的Group: usermod -g smbgrp user 6. 將要分享的資料夾權限改為Samba的Group: chown :smbgrp /usr/share 7. <font color=red>**關閉SELinux**: setenforce 0 (允許檔案的權限)</font> 8. 重開samba: service smb restart 9. 新增防火牆規則並重開: :::info firewall-cmd --permanent --zone=public --add-service=samba firewall-cmd --reload ::: --- ###### tags: `Samba`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up