jessyhoule

Public Share

May 18th, 2018 (edited)
408
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.50 KB | None | 0 0
  1. sudo chmod -R 0777 /home/myuser/Documents
  2. sudo chown -R nobody:nogroup /home/myuser/Documents
  3.  
  4. sudo apt-get install samba
  5. sudo nano /etc/samba/smb.conf
  6.  
  7. # put this at the bottom of the file with spaces indicated below
  8. [Documents]
  9.    path = /home/myuser/Documents
  10.    browsable = yes
  11.    writable = yes
  12.    guest ok = yes
  13.    guest only = yes
  14.    read only = no
  15.    create mode = 0777
  16.    directory mode = 0777
  17.    force user = nobody
  18.  
  19. sudo service smbd restart
  20.  
  21. # on Debian
  22. su
  23. /etc/init.d/smbd restart
Advertisement
Add Comment
Please, Sign In to add comment