Page 1 of 1
Installing Samab 3.6.3
Posted: Mon Feb 27, 2012 1:57 pm
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:
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!!!
Enabling SWAT
Posted: Mon Feb 27, 2012 5:33 pm
by cah
SWAT is Samba's web admin tool.
Following steps enable SWAT:
1. Make sure the following line is in /etc/services:
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
4. 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.
Enabling nmbd
Posted: Mon Feb 27, 2012 6:26 pm
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).