SHARE
TWEET

Untitled

a guest Mar 20th, 2017 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 1. sudo apt-get install samba-common samba
  2. 2. sudo  adduser --no-create-home --disabled-login --shell /bin/false <username>
  3. 3. sudo smbpasswd -a <username>
  4. 4. mkdir /mnt/FILESERVER
  5.    
  6. [global]
  7. workgroup = WORKGROUP
  8. server string = %h server (Samba, Ubuntu)
  9. wins support = yes
  10. dns proxy = no
  11. log file = /var/log/samba/log.%m
  12. max log size = 1000
  13. syslog = 0
  14. panic action = /usr/share/samba/panic-action %d
  15. server role = standalone server
  16. passdb backend = tdbsam
  17. obey pam restrictions = yes
  18. unix password sync = yes
  19. passwd program = /usr/bin/passwd %u
  20. passwd chat = *Entersnews*spassword:* %nn *Retypesnews*spassword:* %nn *passwordsupdatedssuccessfully* .
  21. pam password change = yes
  22. map to guest = bad user
  23. usershare allow guests = yes
  24.  
  25. #======================= Share Definitions =======================
  26.  
  27. [Share]
  28.    comment = FileServer
  29.    path = /mnt/FILESERVER
  30.    browseable = yes
  31.    read only = no
  32.    writeable = yes
  33.    guest ok = no
  34.    security = user
  35.    valid user = <username>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top