Results 1 to 10 of 14

Thread: Samba, public and private shares

Threaded View

  1. #11
    Join Date
    Dec 2009
    Beans
    5,461

    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:
    Code:
    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:
    [share]
    comment = backup share
    path = /srv/samba/share
    read only = No
    create mask = 0755
    guest ok = Yes
    force user = nobody
    Change [private] to this:
    [PRIVATE]
    path = /srv/samba/private
    guest ok = no
    read only = no
    force group = plugdev
    Change ownership to this:
    Code:
    sudo chown :plugdev /srv/samba/private
    Change permissions to this:
    Code:
     sudo chmod 0775 /srv/samba/private
    And then add your remote user to the plugdev group:
    Code:
    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.

Bookmarks

Posting Permissions

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