1834431 Members
2733 Online
110067 Solutions
New Discussion

Samba Installation

 
Christian Briddon_1
Occasional Advisor

Samba Installation

Hi There,

I have been using Samba for a couple of years in a linux environment and thought it would be no problem to install and configure it on our K400 server.

I downloaded the 2.2.3a version for HPUX 11i and installed the .depot file without any problem. The service started without a problem.

However, I can't find the smb.conf file or the smbpasswd file. I have looked everywhere and searched all drives but they are not there.

If someone could let me know why they are not present and how to create them I would be very greatful.

Thanks in advance,

Christian Briddon
7 REPLIES 7
Stefan Farrelly
Honored Contributor

Re: Samba Installation


Its in /etc/opt/samba

Theres a default smb.conf.default file you copy to smb.conf then change as needed.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Christian Briddon_1
Occasional Advisor

Re: Samba Installation

It's not there though. The samba installation is in /usr/local/samba and I am thinking that the smb.conf file and the smbpasswd file should be in /usr/local/samba/lib. If I copy the smb.conf.default file here then testparm is OK with it, but where is the smbpasswd file?

thanks for your reply,

Christian
Sukant Naik
Trusted Contributor

Re: Samba Installation

Hi Christain,

The smb.conf file details as seen on my server
# cd /etc/opt/samba
# ll
total 52
drwxr-xr-x 2 root users 1024 May 23 17:12 codepages
-rw-r--r-- 1 root users 11317 May 23 17:57 smb.conf
-rw-r--r-- 1 root users 11290 Nov 28 2001 smb.conf.default
-rw-rw-rw- 1 root sys 34 Jun 12 12:19 smbusers.map
#


And the smbpasswd
# pwd
/opt/samba/bin
# ll smbpasswd
-rwxr-x--x 1 root sys 1179648 Jun 10 13:16 smbpasswd

-Sukant
Who dares he wins
Christian Briddon_1
Occasional Advisor

Re: Samba Installation

I have the smbpasswd file in /bin but that is the executable that allows me to change smb passwords in the none existant smbpasswd file.

I have nothing to do with Samba in /etc/opt, everything is in /usr/local/samba.

This is really quite confusing but thanks for your replies.

Christian
Donald Kok
Respected Contributor

Re: Samba Installation

use find / -name smb.conf to find it. Mine is in /var/samba/conf/

Greetzz
My systems are 100% Murphy Compliant. Guaranteed!!!
Stefan Farrelly
Honored Contributor

Re: Samba Installation


Hmm. That sounds like you have a completely different install of Samba to the one were using. Ours also installs via software distributor but obviously to 2 different locations! We use CIFS which comes with Samba;
B8723AA A.01.02 CIFS/9000 Client Lic. for 9000 Servers
B8725AA A.01.02 CIFS/9000 Server Lic. for 9000 Servers

You can install this from your HP CD's rather than using the independent version.

Anyway, if youre installed via SD you can do a search for the smb.conf file;

swlist -l file | grep smb.conf

This will find it for you - it may not find smb.conf but it should find smb.conf.default which you can copy to smb.conf
Either that or it didnt install properly.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Sukant Naik
Trusted Contributor

Re: Samba Installation

Hi Christian,

I agree with Stefan,

I have had enough problems while installing from the SAMBA source files.

I have now switched over to CIFS and it seems to be working fine.

Regards,
Sukant
Who dares he wins