I am using Samba 3.5.0 on Arch Linux. I have security = user and am
looking to create a new server with a lot of different shares as well as
the [homes] share. So far my testing is making me pull my hair out...
If I create shares with certain users, everything works fine. However, I
see that if I connect to the \\server, the user will see all shares.
>From some google work, I can't see any way to limit that. I would prefer
to only show shares that the user has access too, but I don't believe it
is possible.
To remedy this, I tried to create a share called "share". Then create
subdirectories under that using UNIX groups. I am using a group sticky
bit in conjunction with create mask = 770 to keep the perms straight.
Here is the share:
[share]
nt acl support = no
path = /home/samba/share
writable = yes
guest ok = no
browsable = yes
create mask = 770
directory mask = 770
inherit permissions = yes
valid users = @share
hide dot files = yes
hide unreadable = yes
Hide unreadable works great, users cannot see any directories that they
do not have access to. However, they can still create folders in the
root of the share (/home/samba/share). I've even changed the perms of
that directory to 000, and still users can create directories there. Am
I missing something?
I guess if I have to manually create a share for each share I need, I
can do that. However, I would prefer users to only see the shares they
have access to...
--
Matthew Daubenspeck
http://oddprocess.org
Gentoo Linux i686 Intel(R) Xeon(R) CPU L5420 @ 2.50GHz
09:18:58 up 132 days, 22:45, 3 users, load average: 0.31, 0.16, 0.06
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba