Samba 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

samba conf view via swat

samba conf view via swat

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

samba virtual server

samba virtual server

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

samba virtual shares

samba virtual shares

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.

server 2008 login

server 2008 login

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.

samba virtual server
solaris share

solaris share

home directory share

home directory share

bit share

bit share

swat share staus

swat share staus


Tags: switch, vlan, vtp, interface, 802.1q, wan


Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Furl
  • Live
  • Reddit
  • StumbleUpon
  • Technorati
  • LinkedIn
  • Twitter

Comments are closed.

Search
Sponsor
Mail Server Monitoring

Page Rank