TEXT   24

smb.conf

Guest on 23rd April 2022 12:46:05 AM

  1. smb.conf
  2. --------
  3.  
  4. 01.  vi /etc/samba/smb.conf
  5. 02.  set workgroup = WORKGROUP
  6. 03.  hosts allow = 192.168.0. 127 (this allows 192.168.0.x and 127 localhost)
  7. 04.  encrypt passwords = yes
  8. 05.  wins support = yes (require for linux to act as WINS server)
  9. 05.  set up shares
  10.  
  11. setup users
  12.  
  13. 01.  smbpasswd -a username (adds username to smb list and creates password)
  14.  
  15.  
  16. Sample Share
  17. ------------
  18. [username_public_html]
  19.         path = /home/username/public_html
  20.         writable = yes
  21.         valid users = username
  22.         guest account = username
  23.  
  24.  
  25. Location of SMB
  26. ---------------
  27.  
  28. /etc/rc.d/init.d/
  29.  
  30. ./smb start/stop/restart
  31.  
  32. OR
  33.  
  34. service smb start|stop|restart
  35.  
  36.  
  37.  
  38. Printing
  39. --------
  40.  
  41. public = yes
  42. only guest = yes
  43.  
  44. And setup the Default Samba user so that it can print?
  45.  
  46. SELinux gets involved
  47. ---------------------
  48. setsebool -P samba_export_all_rw 1  (or ro for read only)
  49.  
  50. Note: don't add folders for sharing to / unless you want to change the
  51. context, as in, if the context was like it is on /etc/shadow, the system would
  52. just know to not allow it b/c of the context.

Raw Paste


Login or Register to edit or fork this paste. It's free.