AW: [Samba] Unable to open configuration file "/etc/smb.conf"
nero one
nero_oner at yahoo.com
Tue Aug 13 07:48:01 GMT 2002
Hi.
Email #1 was sent by accident.
Email #2 detailed the whole message but still contained two errors "smbd.conf" and
"/usr/lib/smb.conf" where i should have reflected my most recent attempts "smb.conf" -
"/etc/smb.conf". It was late, i made two mistakes and corrected the issues on the followup.
Email #3 and on outlined the whole problem without issues.
The latest one i sent outlines the whole problem along with an strace.
it can be found here: http://lists.samba.org/pipermail/samba/2002-August/078344.html
As for the scope of the problem - you pretty much called it. No matter where i stick the
configuration file smb.conf .. in any directory - it says the same message. I actually have 4
errant copies of smb.conf on my system (/etc, /etc/samba, /usr/lib/smb.conf, /root/smb.conf) in
hopes that maybe one will work somewhere.
Therefore, please base yourself on the last email i sent regarding this thread and let me know
whether or not this is a bug, user error or plain stupidity.
Thank you for your time.
"nero one"
--- John Benedetto <jbenedet at unm.edu> wrote:
> 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.
> >>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: http://lists.samba.org/mailman/listinfo/samba
__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
More information about the samba
mailing list