1823914 Members
3133 Online
109667 Solutions
New Discussion юеВ

Samba and HP-UX 10.20

 
Mauro_8
Frequent Advisor

Samba and HP-UX 10.20

Hi,

I want to install Samba in HP-UX10.20, but I??m having a lot of problems. So, what is the best place (web) to get the new version of Samba binaries and if it??s possible as a depot ? How can I install it with no (is this possible ?) errors ?
I tryed everything with no success...
Sometimes it gaves me a message
"Unable to open configuration file "/opt/samba/lib/smb.conf.%m" but I have this file with read permissions.

I??m really desapointed with it.

Thanks,
Mauro
5 REPLIES 5
Pete Randall
Outstanding Contributor

Re: Samba and HP-UX 10.20

Darren Prior
Honored Contributor

Re: Samba and HP-UX 10.20

Hi Mauro,

The %m in the smb.conf.%m error suggests that your Samba config is expecting a smb.conf file for each client that connects. The %m matches the client's NetBIOS name.

ie if you have a client with a NetBIOS name of bob connecting to the server Samba will attempt to use a config file called smb.conf.bob

This may be something compiled into your binaries, otherwise check in the main smb.conf file for something like include=/opt/samba/lib/smb.conf.%m

HTH

regards,

Darren.
Calm down. It's only ones and zeros...
Mauro_8
Frequent Advisor

Re: Samba and HP-UX 10.20

Darren,

It??s ok, but I found this line in my smb.conf and why it could not be found by the commands like smbclient ? I can??t understand why this message is being generate. I have the line INCLUDE = /opt/samba/lib/smb.conf.%m and I have the file, what is the problem ? What path I must set to INCLUDE ?

Thanks once more,
Mauro
Mauro_8
Frequent Advisor

Re: Samba and HP-UX 10.20

When I run testparm I received the message :

Load smb config files from /opt/samba/lib/smb.conf
Can't find include file /opt/samba/lib/smb.conf.
Processing section "[homes]"
Processing section "[printers]"
Processing section "[tmp]"
Loaded services file OK.
ERROR: lock directory /var/opt/samba/locks does not exist
Press enter to see a dump of your service definitions

Can it help you ?

Regards,
Mauro
U.SivaKumar_2
Honored Contributor

Re: Samba and HP-UX 10.20

Hi,
Do this as root
#touch /var/opt/samba/locks
You have to create different configuration files under /opt/samba/lib/ for diffrent machines connecting to samba if use "/opt/samba/lib/smb.conf.%m" line in smb.conf
eg:-
smb.conf.win2000
smb.conf.win98
%m will be substituted with connecting machines
name. viz. win2000 , win98 and corresponding
smb.conf will come in to effect. Is it your
requirement ?.

regards,
U.SivaKumar
Innovations are made when conventions are broken