Installing Samab 3.6.3

Moderator: cah

Post Reply
cah
General of the Army / Fleet Admiral / General of the Air Force
General of the Army / Fleet Admiral / General of the Air Force
Posts: 1342
Joined: Sun Aug 17, 2008 5:05 am

Installing Samab 3.6.3

Post by cah »

Code: Select all

wget http://www.samba.org/samba/ftp/stable/samba-3.6.3.tar.gz
gzcat samba-3.6.3.tar.gz | tar xf -
NOTICE: the source code resides in source3/. Need to change to the directory to perform the following steps.

Code: Select all

cd source3
configure --enable-socket-wrapper --enable-cups
make
make test
make install 
Files were installed in:

Code: Select all

/usr/local/samba/
Starting / stopping Samba:

Code: Select all

svcadm enable samba
svcadm disable samba
Need to modify the path in the following files:

Code: Select all

/var/svc/manifest/network/samba.xml
/var/svc/manifest/network/swat.xml
/var/svc/manifest/network/winbind.xml
/var/svc/manifest/network/wins.xml
The path was at /usr/sfw and need to be changed to the new location /usr/local/samba.

NOTICE: samba related processes are started by restarter. This service can NOT be restarted from command line. The only way to restart it is to reboot the server!!!
CAH, The Great
cah
General of the Army / Fleet Admiral / General of the Air Force
General of the Army / Fleet Admiral / General of the Air Force
Posts: 1342
Joined: Sun Aug 17, 2008 5:05 am

Enabling SWAT

Post by cah »

SWAT is Samba's web admin tool.

Following steps enable SWAT:

1. Make sure the following line is in /etc/services:

Code: Select all

swat            901/tcp                 # Samba Web Adm.Tool
2. Make sure the following line is in /etc/inetd.conf:

Code: Select all

swat    stream  tcp     nowait.400      root /usr/local/samba/sbin/swat swat
3. Restart inetd

Code: Select all

svcadm refresh inetd
4. Enable swat

Code: Select all

svcadm enable swat
5. Check if it is up:

Code: Select all

svcs -v swat
STATE          NSTATE        STIME    CTID   FMRI
online         -             17:28:17      - svc:/network/swat:default

portn 901
      *.901                *.*                0      0 49152      0 LISTEN
6. check if web is accessible (proxy rule is in apache config)

http://samba.hsiao.net/

NOTICE: my local user account does not have full privileges. I need to use root account to gain full privileges.

SWAT was showing version of 3.0.25a that is the old version. I looked into manifest file - /var/svc/manifest/network/swat.xml and it was still using the /usr/sfw path rather than the new location - /usr/local/samba. I changed it and rebooted the server and it is showing the right version afterwards.
CAH, The Great
cah
General of the Army / Fleet Admiral / General of the Air Force
General of the Army / Fleet Admiral / General of the Air Force
Posts: 1342
Joined: Sun Aug 17, 2008 5:05 am

Enabling nmbd

Post by cah »

Checking with old notes, I found there are only 2 processes for samba (smbd) but nmbd is missing.

I looked into service manifest and found nmbd is called in wins service.
I had to change the path in the xml files and restart the server to get restarter service to pick up wins service as well.

After the reboot, SWAT is finally showing the correct version (3.6.3) rather than the old version (3.0.25a).
CAH, The Great
Post Reply