How to share home folders with read only or read/write permission in Ubuntu

Posted in:Tips 'n Tricks

                   sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup

        gksudo gedit /etc/samba/smb.conf
  • Find this line
...
;  security = user
...
  • Replace with the following lines
         security = user
         username map = /etc/samba/smbusers
  • Remove the ; in front of the following lines (there will text in between explaining what they do):
;[homes]
;comment = Home Directories
;browseable = no
;valid users = %S
;writable = yes
  • If you want other network users to be able to edit to the folder then change
 # By default, the home directories are exported read-only. Change next
 # parameter to 'yes' if you want to be able to write to them.
 ;   writable = no
  • Replace with the following lines
  writable = yes
  • Save the edited file
  • Read http://ubuntumanual.org/posts/73/how-to-adddelete-network-users-in-ubuntu
      sudo testparm
       sudo /etc/init.d/samba restart
Press the button below if you liked this site.
webmaster's picture

The brains or the lack of it behind Ubuntu Manual. Crazy about Linux, hates windows except for the fact that it runs many of his favorite games by default. Loves blogging

writeforus