[clug] Different sharing for IP addresses
Tony Breeds
tony at bakeyournoodle.com
Wed Jun 16 08:58:52 GMT 2004
On Mon, Jun 14, 2004 at 03:02:09PM -0700, Rudolf Barkoczi wrote:
> Hi everybody!
>
> I use a Samba 3.0.3 PDC, I have 1 NIC on server and I
> am interested to share some folders that just some ip
> internal network CAN SEE IT, and other folders sharing
> wich are VIEWED by another ip workstations.
>
> Ex: FOLDER_A to be viwed by 192.168.0.1 and FOLDER_B
> to be viewed by 192.168.0.2.
You want the the "include" directive in smb.conf
Assuming:
192.168.0.1: PC1
192.168.0.2: PC2
Add " include /etc/samba/%m.conf" to your smb.conf file
Then in pc1.conf
[share]
path= /path/to/folder_a
Then in pc2.conf
[share]
path= /path/to/folder_b
Once that's done correctly you can point either machine at
"\\server\share" and they'll see the correct directory
Obviously, you should read the man pages to verify what I'm telling you.
Yours Tony
linux.conf.au http://lca2005.linux.org.au/
Apr 18-23 2005 The Australian Linux Technical Conference!
More information about the linux
mailing list