Re: can't start samba

2002-01-22 Thread Jerry Winegarden

On 21 Jan 2002, mike wrote:

> On Mon, 2002-01-21 at 19:36, Hidong Kim wrote:
> > Hi,
> > 
> > I still can't start Samba.  I just compiled Samba 2.2.2 to upgrade from
> > 2.2.1a.  I'm going through the DIAGNOSIS.txt file.  So far, I can run
> > testparm without errors, ping the Linux Samba server from Windows
> > machines and vice versa.  But then I'm stuck at smbclient.  'smbclient
> > -L localhost' gives:
> > 
> > [root@ripley samba]# smbclient -L localhost
> > added interface ip=192.168.230.201 bcast=192.168.230.255
> > nmask=255.255.255.0
> > added interface ip=172.16.166.1 bcast=172.16.166.255 nmask=255.255.255.0
> > added interface ip=172.16.177.1 bcast=172.16.177.255 nmask=255.255.255.0
> > error connecting to 127.0.0.1:139 (Connection refused)
> > Connection to localhost failed
> > 


Two things to look at:

1) tcpwrappers settings:   
/etc/hosts.deny:
ALL: ALL

/etc/hosts.allow
ALL: LOCAL, localhost,   (or 127.0.0.1)  (plus any others you allow)

2) firewall running (ipchains or iptables)?
ifconfig --list | more  and look for status of ipchains and iptables

ifconfig --level 2345 ipchains off will turn it off

Then try again.  If that doesn't make a difference, you will want to turn
your firewall back on.


-- 
***
Jerry WinegardenOIT/Technical Support   Duke University
[EMAIL PROTECTED]http://www-jerry.oit.duke.edu
***



___
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: can't start samba

2002-01-21 Thread David Talkington

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

mike wrote:

>Have you tried deleting the last entry on the first line in /etc/hosts
>eg: 127.0.0.1 localhost.localdomain localhost - remove localhost

I'm not sure what that would accomplish, except to break a whole lot 
of network-related services (including X).  What problem are you 
addressing that this might solve?

- -d

- -- 
David Talkington

PGP key: http://www.prairienet.org/~dtalk/0xCA4C11AD.pgp
- --
http://setiathome.ssl.berkeley.edu/pale_blue_dot.html

-BEGIN PGP SIGNATURE-
Version: PGP 6.5.8
Comment: Made with pgp4pine 1.75-6

iQA/AwUBPEyTQL9BpdPKTBGtEQIXxACghMmzHdZ2NDeWEGWevUpXapT6pjkAoJVS
2Xnb3W6nYJwXvq6I62gaBSsh
=ob8D
-END PGP SIGNATURE-




___
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: can't start samba

2002-01-21 Thread mike

On Mon, 2002-01-21 at 19:36, Hidong Kim wrote:
> Hi,
> 
> I still can't start Samba.  I just compiled Samba 2.2.2 to upgrade from
> 2.2.1a.  I'm going through the DIAGNOSIS.txt file.  So far, I can run
> testparm without errors, ping the Linux Samba server from Windows
> machines and vice versa.  But then I'm stuck at smbclient.  'smbclient
> -L localhost' gives:
> 
> [root@ripley samba]# smbclient -L localhost
> added interface ip=192.168.230.201 bcast=192.168.230.255
> nmask=255.255.255.0
> added interface ip=172.16.166.1 bcast=172.16.166.255 nmask=255.255.255.0
> added interface ip=172.16.177.1 bcast=172.16.177.255 nmask=255.255.255.0
> error connecting to 127.0.0.1:139 (Connection refused)
> Connection to localhost failed
> 

Have you tried deleting the last entry on the first line in /etc/hosts
eg: 127.0.0.1 localhost.localdomain localhost - remove localhost

an old workaround in RH
> 
> I'm trying to start Samba with the script /usr/local/samba/startsmb:
> 
> #!/bin/sh
> /usr/local/samba/bin/smbd -D
> /usr/local/samba/bin/nmbd -D
> 
> 
> 
> In DIAGNOSIS.txt, it says that this smbclient error may be related to
> inetd.conf.  My Samba server is a Red Hat 7.2 machine.  It has no
> inetd.conf.  What file is equivalent?  I've checked that netbios-ssn is
> listening with 'netstat -a':
> 
> tcp0  0 172.16.166.:netbios-ssn *:*
> LISTEN
> 
xinetd replaced inetd in RH7 - directory in /etc with seperate files for
each service
 
> 
> DIAGNOSIS.txt says that this problem might be caused by something else,
> like Samba, already running on port 139.  How do I check this?  Thanks,
> 
ps -aux|grep smb
 
hope this helps

> 
> Hidong
> 
> 
> 
> 
> Gregory Hosler wrote:
> > 
> > grab th erespective Red Hat release SRPM and build from that. If you _really_
> > dislike doing that, get the SRPM anyways, and extract out the patch file(s) -
> > You will probably need to apply most if not all of those patchs anyways...
> > 
> > -G
> > 
> > On 21-Jan-02 Hidong Kim wrote:
> > > Hi,
> > >
> > > I tried to install the source RPM, but it crashed with this error:
> > >
> > > checking configure summary
> > > configure: error: summary failure. Aborting config
> > > error: Bad exit status from /var/tmp/rpm-tmp.21099 (%build)
> > >
> > >
> > > RPM build errors:
> > > Bad exit status from /var/tmp/rpm-tmp.21099 (%build)
> > >
> > >
> > >
> > > I'd like to compile Samba-2.2.2 from source.  Here's what my
> > > /usr/include/asm/statfs.h looks like:
> > >
> > >#ifndef _I386_STATFS_H
> > >#define _I386_STATFS_H
> > >
> > >#ifndef __KERNEL_STRICT_NAMES
> > >
> > >#include 
> > >
> > > typedef __kernel_fsid_t fsid_t;
> > >
> > >#endif
> > >
> > > struct statfs {
> > > long f_type;
> > > long f_bsize;
> > > long f_blocks;
> > > long f_bfree;
> > > long f_bavail;
> > > long f_files;
> > > long f_ffree;
> > > __kernel_fsid_t f_fsid;
> > > long f_namelen;
> > > long f_spare[6];
> > > };
> > >
> > >#endif
> > >
> > >
> > >
> > > Which parts should I comment out to get by this error during 'make':
> > >
> > > /usr/include/asm/statfs.h:12: redefinition of `struct statfs'
> > > make: *** [smbd/server.o] Error 1
> > >
> > >
> > >
> > > Thanks,
> > >
> > >
> > >
> > > Hidong
> > >
> > >
> > >
> > >
> > >
> > >
> > > David Talkington wrote:
> > >>
> > >> -BEGIN PGP SIGNED MESSAGE-
> > >> Hash: SHA1
> > >>
> > >> Hidong Kim wrote:
> > >>
> > >> >[root@ripley bin]# ./testparm
> > >> >Load smb config files from /usr/local/samba/lib/smb.conf
> > >> >Processing section "[public]"
> > >> >Processing section "[public]"
> > >> >Processing section "[printers]"
> > >> >Loaded services file OK.
> > >> >Press enter to see a dump of your service definitions
> > >> >
> > >> >My smb.conf is actually /etc/samba/smb.conf.  This is the file that has
> > >> >all of my share definitions, as it was working before today.
> > >>
> > >> smbd disagrees with you.  Specify it:
> > >>
> > >> # smbd -s /etc/samba/smb.conf
> > >>
> > >> If you rebuilt samba, you probably didn't add --with-configdir.
> > >> - --sysconfdir isn't sufficient to override the default.
> > >>
> > >> - -d
> > >>
> > >> - --
> > >> David Talkington
> > >>
> > >> PGP key: http://www.prairienet.org/~dtalk/0xCA4C11AD.pgp
> > >> - --
> > >> http://setiathome.ssl.berkeley.edu/pale_blue_dot.html
> > >>
> > >> -BEGIN PGP SIGNATURE-
> > >> Version: PGP 6.5.8
> > >> Comment: Made with pgp4pine 1.75-6
> > >>
> > >> iQA/AwUBPEvSA79BpdPKTBGtEQLzlACgm62lCTVYPxVF/7anKdRVCpqQL2MAnRWI
> > >> x1WjIg2gDV0OX+4OwJ6HBzBW
> > >> =PzXf
> > >> -END PGP SIGNATURE-
> > >>
> > >> ___
> > >> Redhat-list mailing list
> > >> [EMAIL PROTECTED]
> > >> https://listman.redhat.com/mailman/listinfo/redhat-list
> > >
> > >
> > >
> > > ___
> > > Redhat-list mailing list
> > > [EMAIL PROTECTED]
> > > https://listman.redha

Re: can't start samba

2002-01-21 Thread Ezra Nugroho

Did you just change your kernel?
Do an 'ifconfig'. Check if  'lo' interface is up.

I have a hunch that maybe your kernel doesn't support local loopback 
connection.

At 11:36 AM 1/21/2002 -0800, you wrote:
>Hi,
>
>I still can't start Samba.  I just compiled Samba 2.2.2 to upgrade from
>2.2.1a.  I'm going through the DIAGNOSIS.txt file.  So far, I can run
>testparm without errors, ping the Linux Samba server from Windows
>machines and vice versa.  But then I'm stuck at smbclient.  'smbclient
>-L localhost' gives:
>
>[root@ripley samba]# smbclient -L localhost
>added interface ip=192.168.230.201 bcast=192.168.230.255
>nmask=255.255.255.0
>added interface ip=172.16.166.1 bcast=172.16.166.255 nmask=255.255.255.0
>added interface ip=172.16.177.1 bcast=172.16.177.255 nmask=255.255.255.0
>error connecting to 127.0.0.1:139 (Connection refused)
>Connection to localhost failed
>
>
>
>I'm trying to start Samba with the script /usr/local/samba/startsmb:
>
>#!/bin/sh
>/usr/local/samba/bin/smbd -D
>/usr/local/samba/bin/nmbd -D
>
>
>
>In DIAGNOSIS.txt, it says that this smbclient error may be related to
>inetd.conf.  My Samba server is a Red Hat 7.2 machine.  It has no
>inetd.conf.  What file is equivalent?  I've checked that netbios-ssn is
>listening with 'netstat -a':
>
>tcp0  0 172.16.166.:netbios-ssn *:*
>LISTEN
>
>
>
>DIAGNOSIS.txt says that this problem might be caused by something else,
>like Samba, already running on port 139.  How do I check this?  Thanks,
>
>
>
>Hidong
>
>
>
>
>Gregory Hosler wrote:
> >
> > grab th erespective Red Hat release SRPM and build from that. If you 
> _really_
> > dislike doing that, get the SRPM anyways, and extract out the patch 
> file(s) -
> > You will probably need to apply most if not all of those patchs anyways...
> >
> > -G
> >
> > On 21-Jan-02 Hidong Kim wrote:
> > > Hi,
> > >
> > > I tried to install the source RPM, but it crashed with this error:
> > >
> > > checking configure summary
> > > configure: error: summary failure. Aborting config
> > > error: Bad exit status from /var/tmp/rpm-tmp.21099 (%build)
> > >
> > >
> > > RPM build errors:
> > > Bad exit status from /var/tmp/rpm-tmp.21099 (%build)
> > >
> > >
> > >
> > > I'd like to compile Samba-2.2.2 from source.  Here's what my
> > > /usr/include/asm/statfs.h looks like:
> > >
> > >#ifndef _I386_STATFS_H
> > >#define _I386_STATFS_H
> > >
> > >#ifndef __KERNEL_STRICT_NAMES
> > >
> > >#include 
> > >
> > > typedef __kernel_fsid_t fsid_t;
> > >
> > >#endif
> > >
> > > struct statfs {
> > > long f_type;
> > > long f_bsize;
> > > long f_blocks;
> > > long f_bfree;
> > > long f_bavail;
> > > long f_files;
> > > long f_ffree;
> > > __kernel_fsid_t f_fsid;
> > > long f_namelen;
> > > long f_spare[6];
> > > };
> > >
> > >#endif
> > >
> > >
> > >
> > > Which parts should I comment out to get by this error during 'make':
> > >
> > > /usr/include/asm/statfs.h:12: redefinition of `struct statfs'
> > > make: *** [smbd/server.o] Error 1
> > >
> > >
> > >
> > > Thanks,
> > >
> > >
> > >
> > > Hidong
> > >
> > >
> > >
> > >
> > >
> > >
> > > David Talkington wrote:
> > >>
> > >> -BEGIN PGP SIGNED MESSAGE-
> > >> Hash: SHA1
> > >>
> > >> Hidong Kim wrote:
> > >>
> > >> >[root@ripley bin]# ./testparm
> > >> >Load smb config files from /usr/local/samba/lib/smb.conf
> > >> >Processing section "[public]"
> > >> >Processing section "[public]"
> > >> >Processing section "[printers]"
> > >> >Loaded services file OK.
> > >> >Press enter to see a dump of your service definitions
> > >> >
> > >> >My smb.conf is actually /etc/samba/smb.conf.  This is the file that has
> > >> >all of my share definitions, as it was working before today.
> > >>
> > >> smbd disagrees with you.  Specify it:
> > >>
> > >> # smbd -s /etc/samba/smb.conf
> > >>
> > >> If you rebuilt samba, you probably didn't add --with-configdir.
> > >> - --sysconfdir isn't sufficient to override the default.
> > >>
> > >> - -d
> > >>
> > >> - --
> > >> David Talkington
> > >>
> > >> PGP key: http://www.prairienet.org/~dtalk/0xCA4C11AD.pgp
> > >> - --
> > >> http://setiathome.ssl.berkeley.edu/pale_blue_dot.html
> > >>
> > >> -BEGIN PGP SIGNATURE-
> > >> Version: PGP 6.5.8
> > >> Comment: Made with pgp4pine 1.75-6
> > >>
> > >> iQA/AwUBPEvSA79BpdPKTBGtEQLzlACgm62lCTVYPxVF/7anKdRVCpqQL2MAnRWI
> > >> x1WjIg2gDV0OX+4OwJ6HBzBW
> > >> =PzXf
> > >> -END PGP SIGNATURE-
> > >>
> > >> ___
> > >> Redhat-list mailing list
> > >> [EMAIL PROTECTED]
> > >> https://listman.redhat.com/mailman/listinfo/redhat-list
> > >
> > >
> > >
> > > ___
> > > Redhat-list mailing list
> > > [EMAIL PROTECTED]
> > > https://listman.redhat.com/mailman/listinfo/redhat-list
> >
> > --
> > E-Mail: Gregory Hosler <[EMAIL PROTECTED]>
> > Date: 21-Jan-02
> > Time: 17:02:06
> >
> >   If each

Re: can't start samba

2002-01-21 Thread David Talkington

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


>[root@ripley samba]# smbclient -L localhost
>added interface ip=192.168.230.201 bcast=192.168.230.255
>nmask=255.255.255.0
>added interface ip=172.16.166.1 bcast=172.16.166.255 nmask=255.255.255.0
>added interface ip=172.16.177.1 bcast=172.16.177.255 nmask=255.255.255.0
>error connecting to 127.0.0.1:139 (Connection refused)
>Connection to localhost failed

>I'm trying to start Samba with the script /usr/local/samba/startsmb:
>
>#!/bin/sh
>/usr/local/samba/bin/smbd -D
>/usr/local/samba/bin/nmbd -D

First, make sure you're using the right config file:

# /usr/local/samba/bin/smbd -D -s /etc/samba/smb.conf
# /usr/local/samba/bin/nmbd -D -s /etc/samba/smb.conf

If that's the config file you're using.  By default, it's looking to 
/usr/local/samba/lib/smb.conf, unless you specified --with-configdir 
at build time.

Then check that file and make sure a) you've told it to listen on 
127.0.0.1, and b) you've told it to allow connections from 127.0.0.1 
('interfaces' and 'hosts allow', respectively).

- -d


- -- 
David Talkington

PGP key: http://www.prairienet.org/~dtalk/0xCA4C11AD.pgp
- --
http://setiathome.ssl.berkeley.edu/pale_blue_dot.html

-BEGIN PGP SIGNATURE-
Version: PGP 6.5.8
Comment: Made with pgp4pine 1.75-6

iQA/AwUBPEx03b9BpdPKTBGtEQK0hACfR4O3155lKdzE+Jrn3vwe1DfnV+sAoKk4
kesqmAk0aPXRG5f3NE5xm8ho
=uTLr
-END PGP SIGNATURE-




___
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: can't start samba

2002-01-21 Thread Hidong Kim

Hi,

I still can't start Samba.  I just compiled Samba 2.2.2 to upgrade from
2.2.1a.  I'm going through the DIAGNOSIS.txt file.  So far, I can run
testparm without errors, ping the Linux Samba server from Windows
machines and vice versa.  But then I'm stuck at smbclient.  'smbclient
-L localhost' gives:

[root@ripley samba]# smbclient -L localhost
added interface ip=192.168.230.201 bcast=192.168.230.255
nmask=255.255.255.0
added interface ip=172.16.166.1 bcast=172.16.166.255 nmask=255.255.255.0
added interface ip=172.16.177.1 bcast=172.16.177.255 nmask=255.255.255.0
error connecting to 127.0.0.1:139 (Connection refused)
Connection to localhost failed



I'm trying to start Samba with the script /usr/local/samba/startsmb:

#!/bin/sh
/usr/local/samba/bin/smbd -D
/usr/local/samba/bin/nmbd -D



In DIAGNOSIS.txt, it says that this smbclient error may be related to
inetd.conf.  My Samba server is a Red Hat 7.2 machine.  It has no
inetd.conf.  What file is equivalent?  I've checked that netbios-ssn is
listening with 'netstat -a':

tcp0  0 172.16.166.:netbios-ssn *:*
LISTEN



DIAGNOSIS.txt says that this problem might be caused by something else,
like Samba, already running on port 139.  How do I check this?  Thanks,



Hidong




Gregory Hosler wrote:
> 
> grab th erespective Red Hat release SRPM and build from that. If you _really_
> dislike doing that, get the SRPM anyways, and extract out the patch file(s) -
> You will probably need to apply most if not all of those patchs anyways...
> 
> -G
> 
> On 21-Jan-02 Hidong Kim wrote:
> > Hi,
> >
> > I tried to install the source RPM, but it crashed with this error:
> >
> > checking configure summary
> > configure: error: summary failure. Aborting config
> > error: Bad exit status from /var/tmp/rpm-tmp.21099 (%build)
> >
> >
> > RPM build errors:
> > Bad exit status from /var/tmp/rpm-tmp.21099 (%build)
> >
> >
> >
> > I'd like to compile Samba-2.2.2 from source.  Here's what my
> > /usr/include/asm/statfs.h looks like:
> >
> >#ifndef _I386_STATFS_H
> >#define _I386_STATFS_H
> >
> >#ifndef __KERNEL_STRICT_NAMES
> >
> >#include 
> >
> > typedef __kernel_fsid_t fsid_t;
> >
> >#endif
> >
> > struct statfs {
> > long f_type;
> > long f_bsize;
> > long f_blocks;
> > long f_bfree;
> > long f_bavail;
> > long f_files;
> > long f_ffree;
> > __kernel_fsid_t f_fsid;
> > long f_namelen;
> > long f_spare[6];
> > };
> >
> >#endif
> >
> >
> >
> > Which parts should I comment out to get by this error during 'make':
> >
> > /usr/include/asm/statfs.h:12: redefinition of `struct statfs'
> > make: *** [smbd/server.o] Error 1
> >
> >
> >
> > Thanks,
> >
> >
> >
> > Hidong
> >
> >
> >
> >
> >
> >
> > David Talkington wrote:
> >>
> >> -BEGIN PGP SIGNED MESSAGE-
> >> Hash: SHA1
> >>
> >> Hidong Kim wrote:
> >>
> >> >[root@ripley bin]# ./testparm
> >> >Load smb config files from /usr/local/samba/lib/smb.conf
> >> >Processing section "[public]"
> >> >Processing section "[public]"
> >> >Processing section "[printers]"
> >> >Loaded services file OK.
> >> >Press enter to see a dump of your service definitions
> >> >
> >> >My smb.conf is actually /etc/samba/smb.conf.  This is the file that has
> >> >all of my share definitions, as it was working before today.
> >>
> >> smbd disagrees with you.  Specify it:
> >>
> >> # smbd -s /etc/samba/smb.conf
> >>
> >> If you rebuilt samba, you probably didn't add --with-configdir.
> >> - --sysconfdir isn't sufficient to override the default.
> >>
> >> - -d
> >>
> >> - --
> >> David Talkington
> >>
> >> PGP key: http://www.prairienet.org/~dtalk/0xCA4C11AD.pgp
> >> - --
> >> http://setiathome.ssl.berkeley.edu/pale_blue_dot.html
> >>
> >> -BEGIN PGP SIGNATURE-
> >> Version: PGP 6.5.8
> >> Comment: Made with pgp4pine 1.75-6
> >>
> >> iQA/AwUBPEvSA79BpdPKTBGtEQLzlACgm62lCTVYPxVF/7anKdRVCpqQL2MAnRWI
> >> x1WjIg2gDV0OX+4OwJ6HBzBW
> >> =PzXf
> >> -END PGP SIGNATURE-
> >>
> >> ___
> >> Redhat-list mailing list
> >> [EMAIL PROTECTED]
> >> https://listman.redhat.com/mailman/listinfo/redhat-list
> >
> >
> >
> > ___
> > Redhat-list mailing list
> > [EMAIL PROTECTED]
> > https://listman.redhat.com/mailman/listinfo/redhat-list
> 
> --
> E-Mail: Gregory Hosler <[EMAIL PROTECTED]>
> Date: 21-Jan-02
> Time: 17:02:06
> 
>   If each of us have one object, and we exchange them,
>  then each of us still has one object.
>   If each of us have one idea,   and we exchange them,
>  then each of us now has two ideas.
> 
> --



___
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: can't start samba

2002-01-21 Thread Hidong Kim

Thanks!

I got 2.2.2 compiled and installed.  I'm going to try the configuration
after some sleep.








David Talkington wrote:
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Hidong Kim wrote:
> 
> >struct statfs {
> >long f_type;
> >long f_bsize;
> >long f_blocks;
> >long f_bfree;
> >long f_bavail;
> >long f_files;
> >long f_ffree;
> >__kernel_fsid_t f_fsid;
> >long f_namelen;
> >long f_spare[6];
> >};
> >
> >Which parts should I comment out to get by this error during 'make':
> >
> >/usr/include/asm/statfs.h:12: redefinition of `struct statfs'
> >make: *** [smbd/server.o] Error 1
> 
> Just put a pair of these:
> 
> /*
> 
> */
> 
> around the block shown above.  You should probably remove them when
> you're done building samba.
> 
> - -d
> 
> - --
> David Talkington



___
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: can't start samba

2002-01-21 Thread David Talkington

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hidong Kim wrote:

>struct statfs {
>long f_type;
>long f_bsize;
>long f_blocks;
>long f_bfree;
>long f_bavail;
>long f_files;
>long f_ffree;
>__kernel_fsid_t f_fsid;
>long f_namelen;
>long f_spare[6];
>};
>
>Which parts should I comment out to get by this error during 'make':
>
>/usr/include/asm/statfs.h:12: redefinition of `struct statfs'
>make: *** [smbd/server.o] Error 1

Just put a pair of these:

/*

*/

around the block shown above.  You should probably remove them when 
you're done building samba.

- -d

- -- 
David Talkington

PGP key: http://www.prairienet.org/~dtalk/0xCA4C11AD.pgp
- --
http://setiathome.ssl.berkeley.edu/pale_blue_dot.html

-BEGIN PGP SIGNATURE-
Version: PGP 6.5.8
Comment: Made with pgp4pine 1.75-6

iQA/AwUBPEvZEL9BpdPKTBGtEQJ3eQCg+DzT7q947C86z8tRYSBrObajXmcAnj/c
d4lzwDKJdmX42wSuYY0Hgd5F
=m94/
-END PGP SIGNATURE-




___
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: can't start samba

2002-01-21 Thread Hidong Kim

Hi,

I tried to install the source RPM, but it crashed with this error:

checking configure summary
configure: error: summary failure. Aborting config
error: Bad exit status from /var/tmp/rpm-tmp.21099 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.21099 (%build)



I'd like to compile Samba-2.2.2 from source.  Here's what my
/usr/include/asm/statfs.h looks like:

#ifndef _I386_STATFS_H
#define _I386_STATFS_H

#ifndef __KERNEL_STRICT_NAMES

#include 

typedef __kernel_fsid_t fsid_t;

#endif

struct statfs {
long f_type;
long f_bsize;
long f_blocks;
long f_bfree;
long f_bavail;
long f_files;
long f_ffree;
__kernel_fsid_t f_fsid;
long f_namelen;
long f_spare[6];
};

#endif



Which parts should I comment out to get by this error during 'make':

/usr/include/asm/statfs.h:12: redefinition of `struct statfs'
make: *** [smbd/server.o] Error 1



Thanks,



Hidong






David Talkington wrote:
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Hidong Kim wrote:
> 
> >[root@ripley bin]# ./testparm
> >Load smb config files from /usr/local/samba/lib/smb.conf
> >Processing section "[public]"
> >Processing section "[public]"
> >Processing section "[printers]"
> >Loaded services file OK.
> >Press enter to see a dump of your service definitions
> >
> >My smb.conf is actually /etc/samba/smb.conf.  This is the file that has
> >all of my share definitions, as it was working before today.
> 
> smbd disagrees with you.  Specify it:
> 
> # smbd -s /etc/samba/smb.conf
> 
> If you rebuilt samba, you probably didn't add --with-configdir.
> - --sysconfdir isn't sufficient to override the default.
> 
> - -d
> 
> - --
> David Talkington
> 
> PGP key: http://www.prairienet.org/~dtalk/0xCA4C11AD.pgp
> - --
> http://setiathome.ssl.berkeley.edu/pale_blue_dot.html
> 
> -BEGIN PGP SIGNATURE-
> Version: PGP 6.5.8
> Comment: Made with pgp4pine 1.75-6
> 
> iQA/AwUBPEvSA79BpdPKTBGtEQLzlACgm62lCTVYPxVF/7anKdRVCpqQL2MAnRWI
> x1WjIg2gDV0OX+4OwJ6HBzBW
> =PzXf
> -END PGP SIGNATURE-
> 
> ___
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list



___
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: can't start samba

2002-01-21 Thread David Talkington

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hidong Kim wrote:

>[root@ripley bin]# ./testparm
>Load smb config files from /usr/local/samba/lib/smb.conf
>Processing section "[public]"
>Processing section "[public]"
>Processing section "[printers]"
>Loaded services file OK.
>Press enter to see a dump of your service definitions
>
>My smb.conf is actually /etc/samba/smb.conf.  This is the file that has
>all of my share definitions, as it was working before today.

smbd disagrees with you.  Specify it:

# smbd -s /etc/samba/smb.conf

If you rebuilt samba, you probably didn't add --with-configdir.  
- --sysconfdir isn't sufficient to override the default.

- -d

- -- 
David Talkington

PGP key: http://www.prairienet.org/~dtalk/0xCA4C11AD.pgp
- --
http://setiathome.ssl.berkeley.edu/pale_blue_dot.html

-BEGIN PGP SIGNATURE-
Version: PGP 6.5.8
Comment: Made with pgp4pine 1.75-6

iQA/AwUBPEvSA79BpdPKTBGtEQLzlACgm62lCTVYPxVF/7anKdRVCpqQL2MAnRWI
x1WjIg2gDV0OX+4OwJ6HBzBW
=PzXf
-END PGP SIGNATURE-




___
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: can't start samba

2002-01-21 Thread David Talkington

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hidong Kim wrote:

>[root@ripley init.d]# ./smb status
>smbd is stopped
>nmbd (pid 7759 7758) is running...

Show us the output of the samba error log.  /var/log/messages won't 
help you much here.

>/usr/include/asm/statfs.h:12: redefinition of `struct statfs'
>make: *** [smbd/server.o] Error 1

You can get around that by either building from Red Hat's source rpm,
or comment out the offending stanza in statfs.h while you build.  The
samba team is aware of that problem, which seems to be specific to Red
Hat.  It appears that Red Hat modified their samba source to get
around it.

- -d


- -- 
David Talkington

PGP key: http://www.prairienet.org/~dtalk/0xCA4C11AD.pgp
- --
http://setiathome.ssl.berkeley.edu/pale_blue_dot.html


-BEGIN PGP SIGNATURE-
Version: PGP 6.5.8
Comment: Made with pgp4pine 1.75-6

iQA/AwUBPEvRCb9BpdPKTBGtEQLkdgCg0/jTj0yz6/BYKns4hIZSHRI0JjcAoKCG
XXpWFnTIkhOSJBxGJ+OzDFdQ
=tV61
-END PGP SIGNATURE-




___
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: can't start samba

2002-01-21 Thread Hidong Kim

Hi,

When I run testparm, it doesn't report any errors.  But the strange
thing is that it's looking at /etc/local/samba/lib/smb.conf:

[root@ripley bin]# ./testparm
Load smb config files from /usr/local/samba/lib/smb.conf
Processing section "[public]"
Processing section "[public]"
Processing section "[printers]"
Loaded services file OK.
Press enter to see a dump of your service definitions


My smb.conf is actually /etc/samba/smb.conf.  This is the file that has
all of my share definitions, as it was working before today.






Ashwin Khandare wrote:
> 
> Try running testparm and see the o/p.i guess it will tell u what the error
> is
> - Original Message -
> From: "Hidong Kim" <[EMAIL PROTECTED]>
> To: "Red Hat" <[EMAIL PROTECTED]>
> Sent: Monday, January 21, 2002 12:25 PM
> Subject: can't start samba
> 
> > Hi,
> >
> > I had been running Samba 2.2.1a on a Red Hat 7.2 machine fine for
> > several weeks.  Then I had to reboot the machine today, and Samba won't
> > come back up.  The boot-up messages say that SMB has started OK.  But if
> > I check SWAT or '/etc/rc.d/init.d/smb status', it says that Samba is not
> > running.  I've tried restarting Samba every way I can think of, like
> > '/etc/rc.d/init.d/smb start' and starting it from SWAT, with no
> > success.  Any suggestions on how to get it going again would be great.
> >
> > Thanks,
> >
> >
> >
> > Hidong
> >
> >
> >
> > ___
> > Redhat-list mailing list
> > [EMAIL PROTECTED]
> > https://listman.redhat.com/mailman/listinfo/redhat-list
> 
> ___
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list



___
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: can't start samba

2002-01-21 Thread Ashwin Khandare

Try running testparm and see the o/p.i guess it will tell u what the error
is
- Original Message -
From: "Hidong Kim" <[EMAIL PROTECTED]>
To: "Red Hat" <[EMAIL PROTECTED]>
Sent: Monday, January 21, 2002 12:25 PM
Subject: can't start samba


> Hi,
>
> I had been running Samba 2.2.1a on a Red Hat 7.2 machine fine for
> several weeks.  Then I had to reboot the machine today, and Samba won't
> come back up.  The boot-up messages say that SMB has started OK.  But if
> I check SWAT or '/etc/rc.d/init.d/smb status', it says that Samba is not
> running.  I've tried restarting Samba every way I can think of, like
> '/etc/rc.d/init.d/smb start' and starting it from SWAT, with no
> success.  Any suggestions on how to get it going again would be great.
>
> Thanks,
>
>
>
> Hidong
>
>
>
> ___
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list



___
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: can't start samba

2002-01-21 Thread Hidong Kim

Hi,

It doesn't seem to run at all.  What's really strange is that when I try
to start smb from the command line, I see:

[root@ripley init.d]# ./smb start
Starting SMB services: [  OK  ]
Starting NMB services: [  OK  ]



It looks like everything's OK.  But then I immediately check the status,
and I see:

[root@ripley init.d]# ./smb status
smbd is stopped
nmbd (pid 7759 7758) is running...



There's nothing in /var/log/messages that gives me a clue.  This is all
I see:

Jan 21 00:05:54 ripley smb: smbd startup succeeded
Jan 21 00:05:54 ripley smb: nmbd startup succeeded


This is Samba 2.2.1a which got installed when I upgraded the machine to
Red Hat 7.2.  I wanted to install Samba 2.2.2 from source, but I got
this error during 'make':

/usr/include/asm/statfs.h:12: redefinition of `struct statfs'
make: *** [smbd/server.o] Error 1



Is this related to the existing installation?  If so, how should I wipe
out 2.2.1a?  Thanks,



Hidong








Edward Dekkers wrote:
> 
> > running.  I've tried restarting Samba every way I can think of, like
> > '/etc/rc.d/init.d/smb start' and starting it from SWAT, with no
> > success.  Any suggestions on how to get it going again would be great.
> 
> When you do this, does it run briefly then die?
> 
> Or does it simply not start?
> 
> Error messages?
> 
> We need more here I think.
> 
> What does /var/log/messages tell you about samba start-up when you try it?
> 
> Ed.
> 
> ___
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list



___
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: can't start samba

2002-01-20 Thread Edward Dekkers

> running.  I've tried restarting Samba every way I can think of, like
> '/etc/rc.d/init.d/smb start' and starting it from SWAT, with no
> success.  Any suggestions on how to get it going again would be great. 

When you do this, does it run briefly then die?

Or does it simply not start?

Error messages?

We need more here I think.

What does /var/log/messages tell you about samba start-up when you try it?

Ed.



___
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list