Results 1 to 10 of 14

Thread: Samba, public and private shares

Threaded View

  1. #11
    Join Date
    Dec 2009

    Re: Samba, public and private shares

    You have 2 options:

    [1] Change permissions on the directories themselves to allow everyone access and then use Samba to control who has access:
    sudo chmod 0777 /srv/samba/share
    sudo chmod 0777 /srv/samba/private
    [2] This is more compliated but change the share definitions, permissions, and group membership:

    Change the [share] to this:
    comment = backup share
    path = /srv/samba/share
    read only = No
    create mask = 0755
    guest ok = Yes
    force user = nobody
    Change [private] to this:
    path = /srv/samba/private
    guest ok = no
    read only = no
    force group = plugdev
    Change ownership to this:
    sudo chown :plugdev /srv/samba/private
    Change permissions to this:
     sudo chmod 0775 /srv/samba/private
    And then add your remote user to the plugdev group:
    sudo gpasswd -a morbius plugdev
    You will have to logout and back again for the group membership to take affect.
    Last edited by Morbius1; January 30th, 2013 at 07:05 PM.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts