นำความรู้เก่าที่การเปิดใช้งานระบบ file sharing บนวินโดว์ หรือ samba บนเครื่อง Ubuntu
วิธีทำ ก็ง่ายแสนง่าย ดังนี้
จาก WikiBall
นำความรู้เก่าที่การเปิดใช้งานระบบ file sharing บนวินโดว์ หรือ samba บนเครื่อง Ubuntu
เนื้อหา |
ติดตั้ง
ก่อนอื่น ลง samba ก่อน
sudo apt-get install samba smbfs
Authentication
Config
sudo vim /etc/samba/smb.conf
####### Authentication #######
# “security = user” is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba-HOWTO-Collection/ServerType.html
# in the samba-doc package for details.
; security = user
เอา comment ออก เพิ่มไปอีกบรรทัดนึง
security = user
username map = /etc/samba/smbusers
Create a Samba User
สร้าง smb password
sudo smbpasswd -a <username>
สร้าง smbusers file
sudo vim /etc/samba/smbusers
ถ้าต้องการใช้ username ให้เหมือนที่ใช้ username ของ Ubuntu
<ubuntuusername> = “<samba username>”
หรือถ้าต้องการสร้าง username ขึ้นมาใหม่โดยไม่ผูกกับ OS
<username> = “<username>”
สร้าง directory
sudo vim smb.conf
[dirname] comment = The ball's comment path = /path/to/share/file browseable = yes read only = no guest ok = no write list = root, <username>

0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.