AW: [Samba] Unable to open configuration file "/etc/smb.conf"

Uli Luckas Uli.Luckas at abakusag.de
Tue Aug 13 01:01:01 GMT 2002


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.
> 
> 
> __________________________________________________
> Do You Yahoo!?
> HotJobs - Search Thousands of New Jobs
> http://www.hotjobs.com
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba
> 



More information about the samba mailing list