ปล.samba user ต้องมีชื่อเป็น user ในระบบด้วยนะครับไม่งั้นจะ add samba user ไม่ได้
จะไม่ add ก็ได้นะครับ ใช้ user ที่มีอยู่ในระบบอยู่แล้วก็ได้ ส่วนการ add user ก็ง่ายๆ ไม่มีอะไรซับซ้อน Syetem > Administration > Users and Groups แล้วก็ add ตามสะดวกครับ ในที่นี้ติ๊ต่างเอาว่า add user ชื่อ sipa เข้าใหม่ในระบบ
กำหนดให้ sipa ที่เราเพิ่ง add เป็น user ของระบบให้เป็น samba user ด้วย หลังจากพิมพ์คำสั่งข้างบนมันจะขึ้น prompt มาถาม password ก็ให้คิด password สวยๆที่จะให้คนที่มาขอ connect เครื่องเราต้องกรอก พอคิดได้แล้วก็ใส่ลงไปซะ
ถ้าเป็น edgy หน้าจอการ set ค่าอาจจะต่างกันนิดหน่อย แต่ว่าหลักการเดียวกันแหละครับ
service type เลือกเป็น Windows share, Server ให้พิมพ์ ip เครื่อง samba ลงไป, User name ใส่ samba user ลงไป แล้วก็กด connect จะได้ folder โผล่มาบน Desktop ครับ
* สำเร็จแล้ว 5555!
ส่งท้าย: ถ้าเกิด connect เข้าไปแล้วไม่สามารถ สร้าง file, folder ได้ หรือ แก้ไขอะไรไม่ได้ ก็ไม่ต้องตกใจนะครับ มันเป็นเรื่องของ permission ในการเข้าใช้ file จะแก้ก็ง่ายๆ ให้ไปที่เครื่อง samba ที่เปิด share ไว้ แล้วก็ click ขวาที่ folder ที่เปิด share เลือก properties แล้วก็ click ที่ tab permission แล้วทีนี้ก็กำหนดสิทธิการเข้าใช้งานตามสะดวกเลยครับ น่าจะทำได้ง่ายๆครับ สู้ สู้ สู้ตาย!
Comments
ถ้าไม่อยากป้อน user password จะทำอย่างไรครับ
ผมต้องการใช้เหมือน share directory ของ windows ครับ
ทำงี้ครับ
step 1: $sudo gedit /etc/samba/smb.conf ---> เปิดไฟล์ configure ขึ้นมาแก้
step 2: ตรงบรรทัด security = user ให้แก้ไขเป็น security = share ครับ
step 3: ใส่ค่า public = yes ตรง directory ที่เราเปิด share
ขอบคุณมากครับ
กำลังหาอยู่พอดี
We are the most professional,
We are the most professional, highest quality team game, we have the cheapest, safest wow gold service. We can spend a little money you get the most fun game. The game allows you to upgrade to reduce dry time, so enjoy the fun of other games, our team provide wow power leveling and Warhammer Online Power Leveling services and other games, if you are interested, you can go to our website to find what you need of.