AW: [Samba] Unable to open configuration file "/etc/smb.conf"
John Benedetto
jbenedet at unm.edu
Tue Aug 13 05:41:02 GMT 2002
In the course of messages from "nero one", I have seen mention of these
files:
/etc/smb.conf
/etc/smbd.conf
/usr/lib/smb.conf
/etc/samba/smb.conf
(Not mentioned by other people, but by the original poster, "nero one".)
Heck, your first message, a snippet included below, lists the first three.
It looked to me like your original message references /usr/lib/smb.conf,
but YOU were testing /etc/smbd.conf (according to what you cut 'n pasted,
which is a wrong location - should be /etc/samba - and the wrong name -
should be smb.conf, not smbd.conf).
I'm just confused. I'm another vote for "use the defaults" if at all
possible.
- john
--On Tuesday, August 13, 2002 11:59 AM +0200 Uli Luckas
<Uli.Luckas at abakusag.de> wrote:
> Try these two:
> bash> which testparam
> should tell you which testparam is being started. Is it where you expect
> it to be?
> bash> strace /full/path/testparam
> Gives you information on all system calls called from within testparam. It
> will give quite a bit of output and somewhere near the end you will find
> something like:
> open("/usr/lib/smb.conf", O_RDONLY|O_LARGEFILE) = ...
>
> This would give you a hint to what testparam is trying to open and why it
> fails.
> Of course you need strace to be installed and you need to be root.
>
> Uli
>
>> -----Ursprüngliche Nachricht-----
>> Von: nero one [mailto:nero_oner at yahoo.com]
>> Gesendet: Dienstag, 13. August 2002 00:44
>> An: samba at lists.samba.org
>> Betreff: [Samba] Unable to open configuration file "/etc/smb.conf"
>>
>>
>> Sorry about the last email - hit the enter button by accident.
>>
>> I'm using Red Hat 7.0 in conjunction with samba version 2.2.5
>>
>> When I try to run '#: testparm /etc/smbd.conf', i get the
>> following output:
>>
>> [root][~/install/tars]: testparm
>> Load smb config files from /usr/lib/smb.conf
>> params.c:OpenConfFile() - Unable to open configuration file
>> "/usr/lib/smb.conf":
>> Success
>> Error loading services.
>>
>> . . .
>>
>> [root][/etc]: ls -all | grep smb
>> -rw-r--r-- 1 root root 9643 Aug 6 02:59 smb.conf
>>
>> and the contents of smb.conf are :
>>
>> workgroup = WORKGRP
>> server string = SerVer
>> hosts allow = 10.0.0. 0.
>> load printers = yes
>> printcap name = /etc/printcap
>> printing = lprng
>> max log size = 500
>> security = user
>> socket options = TCP_NODELAY
>> interfaces = 10.0.0.0/8
>> local master = yes
>> os level = 33
>> domain master = yes
>> preferred master = yes
>> domain logons = yes
>> dns proxy = no
>>
>> [homes]
>> comment = Home Directories
>> browseable = no
>> writable = yes
>>
>> [printers]
>> comment = Network Printers
>> path = /var/spool/samba
>> browseable = no
>> guest ok = no
>> writable = no
>> printable = yes
>>
>> [myshare]
>> comment = Common Storage
>> path = /home/common
>> valid users = user1 user2 user3 user4
>> public = yes
>> writable = yes
>> printable = no
>> create mask = 0775
>> directory mask = 0775
>>
>> [apache]
>> comment = Apache tree
>> guest account = apache
>> path = /chroot/httpd/
>> only guest = yes
>> public = yes
>> writable = yes
>> printable = no
>> create mask = 0775
>> directory mask = 0775
>>
>> [clients]
>> comment = Client trees
>> guest account = apache
>> path = /home/clients
>> only guest = yes
>> public = yes
>> writable = yes
>> printable = no
>> create mask = 0775
>> directory mask = 0775
>>
>> Any ideas what's going on? If there's a necessity for more
>> information, please email and let me
>> know. I'll be glad to put it up.
>>
More information about the samba
mailing list