Creating Virtual Samba Servers and shares solaris 10 server2008
BySamba allows you to share files between platforms and can authenticate and use permissions to secure each share at different levels. You can view the previous articles on installing Solaris and Samba setup.
Samba can create virtual server that will show up as shares under windows.
Setting up a samba virtual server can be done by editing theĀ /etc/sfw/smb.conf file.
*Your samba installation may be located in a different path.
[global]
workgroup = PURPZ
netbios name = skynet
netbios aliases = skynet1, skynet2, skynet3
log level = 1
log file =/var/samba/log/log.%m
smb ports = 139
include = /etc/sfw/%L.conf
[homes]
comment = Home
path = /export/home/%u
browseable = no
valid users = %S
The main sections of the file used for virtual servers are:
netbios aliases =
This line sets the names of the virtual server(s) you will have to create a new .conf file for. Each virtual server conf fileis placedĀ in the dir with /etc/sfw/smb.conf
For example i have the netbios name of skynet so my virtual servers are
- skynet1
- skynet2
- skynet3
so my conf files will be smb.conf as the master, anything in this file is displayed globally
skynet1.conf will have my directories set as /BIT
[global]
workgroup = PURPZ
netbios name = skynet1
[BIT]
comment = bitmindframes share
path = /export/BIT
valid users = sarah, john
read only = no
This will create a new Samba share based on the netbios alias listed in smb.conf and authenticate the valid users sarah and john. The share path of the skynet1 share is set to /export/BIT
In order for the netbios aliases to display you must set the smb.conf line for smb ports to listen only on 139.
If samba is using both 139 and 443 then your netbios aliases wont work.
Restart samba and login to a windows server or windows OS machine.
Browse the network shares and view the listed shares.
You should see a share for each of your netbios aliases, clicking on the share will prompt for authentication to the share.
Tags: switch, vlan, vtp, interface, 802.1q, wan








