[Samba] How can I show only the shares that user have access to in SAMBA
simon ben
guy20034u at yahoo.com
Thu Oct 11 02:22:26 MDT 2012
Dear Bjorn
I really apprecite your quick reply.
by the way I did add the
access based share enum = yes
but when I do a testparm it gives a error
-------------------------------
[root at kmshare samba]# testparm /etc/samba/smb.conf
Load smb config files from /etc/samba/smb.conf
Unknown parameter encountered: "access based share enum"
Ignoring unknown parameter "access based share enum"
Processing section "[homes]"
Processing section "[printers]"
Processing section "[kmplan]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
workgroup = MYGROUP
server string = Samba Server Version %v
passdb backend = tdbsam
disable spoolss = Yes
winbind use default domain = Yes
winbind trusted domains only = Yes
cups options = raw
[homes]
comment = Home Directories
read only = No
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
[kmplan]
comment = masterplan testing directory
path = /opt/network/testplan
valid users = @localgrp
write list = @localgrp
read only = No
hide unreadable = Yes
hide unwriteable files = Yes
------------------------------------
the directory /opt/network/testplan is sahred as kmplan and localgrp has 2 valid users
user1 and user2
so if I log in as user1 or user2 kmplan share can be accessed perfectly
i have a third user user3 and he not belong the localgrp .
also wanted to mentioned that I have used webmin to create local users and in
samba windows file sharing option of webmin==> user and group synchronisation ==> i am using yes for all. that is when a unix user is created automatically add a samba user likewise for groups.
apprecite your help and advise
regards
simon
--- On Wed, 10/10/12, Björn JACKE <bj at SerNet.DE> wrote:
From: Björn JACKE <bj at SerNet.DE>
Subject: Re: [Samba] How can I show only the shares that user have access to in SAMBA
To: "simon ben" <guy20034u at yahoo.com>
Cc: samba at lists.samba.org
Date: Wednesday, October 10, 2012, 1:28 PM
On 2012-10-10 at 13:02 -0700 simon ben sent off:
> i have right now one share and want only the users who have access to the share to see it
> and the others should not
>
> when I log into the user who has no access I see the share and when i double click it ask me for username and password
>
> googling arround this issuse is solved by using the below in smb.conf file
> hide dot files = yes
> hide unreadable = yes
> in the share definition section.
>
> but its still visible
can you please try setting
access based share enum = yes
?
Cheers
Björn
More information about the samba
mailing list