Interesting problem - can't figure out what's going on. I'm using Red Hat 7.0 in conjunction with smbd version 2.2.5 __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com
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
Joel Hammer
2002-Aug-12 13:47 UTC
[Samba] Unable to open configuration file "/etc/smb.conf"
Does this file exist? Is this an error message from testparm or smbd? Joel On Mon, Aug 12, 2002 at 03:37:05PM -0700, nero one wrote:> Interesting problem - can't figure out what's going on. > > I'm using Red Hat 7.0 in conjunction with smbd version 2.2.5 > > __________________________________________________ > 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
Don Zajic
2002-Aug-12 13:59 UTC
[Samba] Unable to open configuration file "/anywhere i specify"
What switches did you include when you "configured" Samba?? This is my command line when I ran configure: ./configure --prefix=/usr --with-lockdir=/var/lock/samba --with-privatedir=/etc/samba --with-swatdir=/usr/share/swat --with-smbmount --with-configdir=/etc/samba This will make all "Samba" programs to look for smb.conf in the /etc/samba directory. Don Zajic -----Original Message----- From: samba-admin@lists.samba.org [mailto:samba-admin@lists.samba.org] On Behalf Of nero one Sent: Monday, August 12, 2002 6:52 PM To: samba@lists.samba.org Subject: [Samba] Unable to open configuration file "/anywhere i specify" My apologies - I let that error slip. It does the same anywhere: [root][/etc]: testparm /etc/smb.conf Load smb config files from /etc/smb.conf params.c:OpenConfFile() - Unable to open configuration file "/etc/smb.conf": Success Error loading services. [root][/etc]: pwd && ls -all | grep smb /etc -rw-r--r-- 1 root root 1243 Aug 12 18:42 smb.conf __________________________________________________ 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
Joel Hammer
2002-Aug-12 14:35 UTC
[Samba] Unable to open configuration file "/anywhere i specify"
Can you open this file with vi or cat the file? Does the file contain some crazy misconfiguration? Joel On Mon, Aug 12, 2002 at 03:52:23PM -0700, nero one wrote:> My apologies - I let that error slip. It does the same anywhere: > > [root][/etc]: testparm /etc/smb.conf > Load smb config files from /etc/smb.conf > params.c:OpenConfFile() - Unable to open configuration file "/etc/smb.conf": > Success > Error loading services. > > [root][/etc]: pwd && ls -all | grep smb > /etc > -rw-r--r-- 1 root root 1243 Aug 12 18:42 smb.conf > > > __________________________________________________ > 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
Joel Hammer
2002-Aug-12 15:49 UTC
[Samba] Unable to open configuration file "/anywhere i specify"
Are you sure your testparm program is the one you think it is. Maybe when you type testparm you are really getting an old version. Joel On Mon, Aug 12, 2002 at 05:45:33PM -0700, nero one wrote:> --- Joel Hammer <Joel@HammersHome.com> wrote: > > Well, I put your file into /etc/smb.conf, and testparm worked with it with > > no trouble. > > "Obviously", your configuration switches are not being properly interpreted. > > Why don't you just accept the defaults? > > > > Joel > > > The first time it happened, it was with a few switches. To see whether or not it was a > ./configure issue, i did a ./configure "as is", without any switches and I still had the same > problem. The ./configure with the switches shown in the previous email was done 'for the sake of > the example'. It happens regardless of what I set as switches. > > __________________________________________________ > Do You Yahoo!? > HotJobs - Search Thousands of New Jobs > http://www.hotjobs.com
Nir Soffer
2002-Aug-13 02:49 UTC
[Samba] Unable to open configuration file "/etc/smb.conf"
> 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.You don't need to be root to run strace. Nir.
Seemingly Similar Threads
- AW: Unable to open configuration file "/etc/smb.conf"
- AW: Unable to open configuration file "/etc/smb.conf" (or whereve r i specify)
- Log file problems
- AW: AW: Unable to open configuration file "/etc/smb.conf" (or whe reve r i specify)
- Using Swat - Could not connect to host localhost (port 901) error!