SHARE
TWEET

Untitled

a guest Mar 20th, 2017 75 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.    name resolve order = lmhosts host wins bcast
  12.    log file = /var/log/samba/log.%m
  13.    max log size = 1000
  14.    syslog = 0
  15.    panic action = /usr/share/samba/panic-action %d
  16.    server role = standalone server
  17.    passdb backend = tdbsam
  18.    obey pam restrictions = yes
  19.    unix password sync = yes
  20.    passwd program = /usr/bin/passwd %u
  21.    passwd chat = *Entersnews*spassword:* %nn *Retypesnews*spassword:* %nn *passwordsupdatedssuccessfully* .
  22.    pam password change = yes
  23.    map to guest = bad user
  24.    usershare allow guests = yes
  25.  
  26. #======================= Share Definitions =======================
  27.  
  28. [share]
  29.    comment = FileServer
  30.    path = /mnt/FILESERVER
  31.    browseable = yes
  32.    read only = no
  33.    writeable = yes
  34.    guest ok = no
  35.    security = user
  36.    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