[Samba] Can I limit my browsing of share between clients?

2007-12-26 Thread Pelle Svensson

Hi,

I have a share like this:

[Accounts]
  comments = Accounting Dep common files
  browseable = yes 
  writable = yes
  locking = no
  path = /mnt/accounts
  guest ok = no
  hide ureadable = yes
  create mask = 0777
  directory mask = 0777
  host allowed = 192.168.0.20 192.168.0.25 192.168.0.27 192.168.0.28

I wan't 'Accounts' to only be visable on the client's WORKGROUP listed in 'host 
allowed'.
As it is now all clients can see Accounts but only the listed IP's can use it.
If I set 'browseable=no' then nobody can see it. 

Is it possible or is it of the nature of M$.

/Pelle




_
Spara, redigera och organisera dina foton enkelt med Photo Gallery!
http://get.live.com/photogallery/overview--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Can I limit my browsing of share between clients?

2007-12-26 Thread Necos Secon


Well, as part of SMB, I believe the broadcasting of shares is limited to the 
local workgroup. However, what you could do is, make the share not browseable, 
use hosts allow, and add the share as a network drive in the logon scripts. 
This is what I do at my job (without the hosts allow).

 From: [EMAIL PROTECTED]
 To: samba@lists.samba.org
 Date: Thu, 27 Dec 2007 00:33:39 +0100
 Subject: [Samba] Can I limit my browsing of share between clients?


 Hi,

 I have a share like this:

 [Accounts]
 comments = Accounting Dep common files
 browseable = yes
 writable = yes
 locking = no
 path = /mnt/accounts
 guest ok = no
 hide ureadable = yes
 create mask = 0777
 directory mask = 0777
 host allowed = 192.168.0.20 192.168.0.25 192.168.0.27 192.168.0.28

 I wan't 'Accounts' to only be visable on the client's WORKGROUP listed in 
 'host allowed'.
 As it is now all clients can see Accounts but only the listed IP's can use it.
 If I set 'browseable=no' then nobody can see it.

 Is it possible or is it of the nature of M$.

 /Pelle




 _
 Spara, redigera och organisera dina foton enkelt med Photo Gallery!
 http://get.live.com/photogallery/overview--
 To unsubscribe from this list go to the following URL and read the
 instructions: https://lists.samba.org/mailman/listinfo/samba

_
Share life as it happens with the new Windows Live.
http://www.windowslive.com/share.html?ocid=TXT_TAGHM_Wave2_sharelife_122007--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Can I limit my browsing of share between clients?

2007-12-26 Thread Andreas Baitis
You could also do a per Domain/Workgroup include of shares that only 
Machines in that Domain/Workgroup see, includes can cascade as deep as 
you like, so you could include a group file in only some of the Domain 
files.


#/etc/samba/smb.conf
include = /etc/samba/include/smb.conf.per-domain.%D

then define the shares in 
/etc/samba/include/smb.conf.per-domain.domainname you would have one for 
each domain




This can also be done per user or per group

#/etc/samba/smb.conf
include = /etc/samba/include/smb.conf.per-user.%U

#/etc/samba/smb.conf
include = /etc/samba/include/smb.conf.per-group.%G

See: http://us1.samba.org/samba/docs/man/manpages-3/smb.conf.5.html


Necos Secon wrote:


Well, as part of SMB, I believe the broadcasting of shares is limited to the 
local workgroup. However, what you could do is, make the share not browseable, 
use hosts allow, and add the share as a network drive in the logon scripts. 
This is what I do at my job (without the hosts allow).

  

From: [EMAIL PROTECTED]
To: samba@lists.samba.org
Date: Thu, 27 Dec 2007 00:33:39 +0100
Subject: [Samba] Can I limit my browsing of share between clients?


Hi,

I have a share like this:

[Accounts]
comments = Accounting Dep common files
browseable = yes
writable = yes
locking = no
path = /mnt/accounts
guest ok = no
hide ureadable = yes
create mask = 0777
directory mask = 0777
host allowed = 192.168.0.20 192.168.0.25 192.168.0.27 192.168.0.28

I wan't 'Accounts' to only be visable on the client's WORKGROUP listed in 'host 
allowed'.
As it is now all clients can see Accounts but only the listed IP's can use it.
If I set 'browseable=no' then nobody can see it.

Is it possible or is it of the nature of M$.

/Pelle




_
Spara, redigera och organisera dina foton enkelt med Photo Gallery!
http://get.live.com/photogallery/overview--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba



_
Share life as it happens with the new Windows Live.
http://www.windowslive.com/share.html?ocid=TXT_TAGHM_Wave2_sharelife_122007-- 
To unsubscribe from this list go to the following URL and read the

instructions:  https://lists.samba.org/mailman/listinfo/samba
  


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba