samba setup on HP-UX 11i



Finally got around to setting up Samba on an HP-UX 11i install.

On HP-UX 11i, samba comes installed but not configured.   I'm not sure
of the version, but even the open source and older versions seem similar.

See http://samba.org/

Solaris, Linux and HP-UX all seem to setup the same.  The files below may
be slightly different between versions.

------------------------------------
The files (on HP-UX 11i) are located at:
	/opt/samba
	/var/opt/samba
	/etc/opt/samba
------------------------------------
To activate samba automatically, you must set samba to 1 in:
	/etc/rc.config.d/samba
	(HP-UX specific - be careful in this directory!)
-------------------------------------

With the help of an admin in from another site
we leveraged his experience with Samba from older versions
to get it setup.  He immediately went for "swat".
Amazing tool.  We did the configuration in around 15 minutes!

The following notes would allow you to edit the smb.conf
file directly.  I found that only the /etc/opt/samba/smb.conf
file was modified via "swat".

-------------------------------------------------

In order for swat to work, one must check for
the "swat 901" entries in the following files:

		/etc/inetd.conf
		/etc/services

(both were in the HP-UX 11i files and uncommented, no changes required)

------------------------------------
TO CONFIGURE using swat, (command found in: /opt/samba/swat )

fire up Netscape:
		address:	servername:901

(servername is the hostname of the sambaserver)

Globals - swat:
workgroup - (the name of the NT domain or workgroup used by the PCs)
netbios name - (leave blank, defaults to hostname, or specify a generic 
name...)
server string - (engineering UNIX fileserver)
share mode = security = user
encrypt = no (avoids the problem /var/opt/samba/private/smbpassword)
smbnull - guest account (an entry exists by default in /etc/passwd on HP-UX 
11i)
preserve case = no
WINS = (IP address of the wins server)

		commit changes via the web page

------------------------------------
from PC side:
   IF you use plaintext passwords you will require a registry "tweak" to
	make it work.  If you setup /var/opt/samba/private/smbpassword then you
	won't need to make this registry change on the PC side.  If security
	is an issue, go the extra step to use encrypted passwords.

download the required file from /opt/samba/docs/...:

	Win98_PlainPassword.reg
	Win2000_PlainPassword.reg
	Win95_PlainPassword.reg
	NT4_PlainPassword.reg

------------------------------------
SWAT created the smb.conf file automatically from the webpage:
	/etc/opt/samba/smb.conf :

# Samba config file created using SWAT
# from a client workstation (ip address)
# Date: 2002/02/20 16:16:59
# Global parameters
[global]
workgroup = (NT DOMAIN)
server string = Engineering UNIX fileserver
password server = *
syslog = 0
log file = /var/opt/samba/log.%m
max log size = 1000
local master = No
wins server = (192.168.0.1)
writeable = Yes
short preserve case = No
dos filetime resolution = Yes
[homes]
comment = Home Directories
browseable = No
[tmp]
path = /tmp

------------------------------------
----------------------------------------------------------------------

----------------------------------------------------------------------
                http://www.wagoneers.com/UNIX/
             http://wagoneers.com/UNIX/Courses.html
           STAR OFFICE:	http://www.sun.com/staroffice/

   UNIX is user-friendly; it's just picky about who its friends 
are.

----------------------------------------------------------------------
  http://www.freegift.net/      http://www.wagoneers.com/
----------------------------------------------------------------------




wagoneers.com




Select pages from WAGONEERS.COM: 

the Full Size Jeep decal! © 1998-2000 John Meister
Buy this FSJ decal...   ...use PayPal to pay for it!
Make payments with PayPal, or sign up here!


a viable option to bloated and unstable code


AMSOIL synthetic lubricants and filters
(please use customer #283461)

Independent Lifetime Dealer John Meister - customer #283461 - since 1983


Shop AMAZON.com from wagoneers.com! 
Search:
Keywords:
SHOP from wagoneers.com: in Association with Amazon.com



these pages protected by US Copyright laws
John Meister copyright © 1995-2001 all rights reserved
contact john-at-wagoneers.com
"Join the fight against spam (UCE)! Eliminate spam!" Washington State has a $500 fine for "spam"
(unsolicited commercial email)!


this is an approved Family-Friendly Site       read the Bible