Find the answer to your Linux question:
Results 1 to 2 of 2
It's SAMBA. I have three groups of users which are g1,g2 and g3 g1 can only access folder group1 g2 can only access folder group2 but g3 can access every ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2012
    Posts
    1

    Question How to set shared folder only visible to valid users?


    It's SAMBA.
    I have three groups of users which are g1,g2 and g3

    g1 can only access folder group1
    g2 can only access folder group2
    but g3 can access every folder in the samba share

    What I want is...
    if I log in as an user in g1, I can only see folder group1.
    if I log in as an user in g2, I can only see folder group2.
    but if I log in as user in g3, I can see every folder.

    The question is, is it possible to do this? I've tried to figure out for 2 days but no clue

    my code looks sth like this
    [group1]
    public = no
    writable = yes
    guest ok = no
    valid users = +g1 +g3
    [group2]
    public = no
    writable = yes
    guest ok = no
    valid users = +g2 +g3
    [group3]
    public = no
    writable = yes
    guest ok = no
    valid users = +g3

    I have tried "hide unreadable = yes" but it doesn't work and and turn "browseable" off. It still doesn't what im looking for.

    any suggestions?
    Thank you
    Last edited by guzjang; 09-05-2012 at 07:48 AM. Reason: lack of information

  2. #2
    Just Joined!
    Join Date
    Sep 2012
    Posts
    3
    have you tried using the @ symbol instead of the + symbol with your valid users sections?

Posting Permissions

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