The FreeBSD Diary: 2002-12-08 - 2002-12-28

2002-12-29 Thread Dan Langille
The FreeBSD Diary contains a large number of practical 
examples and how-to guides.  This message is posted weekly
to [EMAIL PROTECTED] with the aim of letting people
know what's available on the website.  Before you post a question
here it might be a good idea to first search the mailing list 
archives http://www.freebsd.org/search/search.html#mailinglists 
and/or The FreeBSD Diary http://www.freebsddiary.org/. 


-- 
Dan Langille - DVL Software Limited
The FreeBSD Diary - http://www.FreeBSDDiary.org/ - practical examples
FreshPorts- http://www.FreshPorts.org/   - the place for ports
FreshSource   - http://www.FreshSource.org/  - the place for source


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Pw - name too long ??

2002-12-29 Thread Steve Warwick
Hi All, 

I am trying to add a user name with the pw command and get the name too
long error after 15 or 16 characters. However, I also use Webmin which has
allowed me to use much longer user names. Is there a switch or setting I am
missing?

Example:
pw adduser longdomain-henry2 -w random -d /home/longdomain/henry2 -g
nogroup -s /sbin/nologin -c henry two -h 0

Suggestions?


TIA


Steve


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Howto on getting out of ld hell

2002-12-29 Thread Brett Gulla

Recently, I have been unable to install 'linux_base' from ports.  I read a 
posting here regarding the 'svr4' module causing problems with the linux port.  
Previously I built my kernel with 'COMPAT_SVR4', I took it out and rebuilt the 
kernel.  I am now getting an 'ELF Brand' error on startup, '0' is not 
recognized.

My question is - Does anyone know of a document which thoroughly helps with 
getting out of ld hell?

Thanks,

Brett

-
This mail sent through IMP: http://horde.org/imp/

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: off topic .. interpretation of tcpdump

2002-12-29 Thread Cliff Sarginson
On Sat, Dec 28, 2002 at 05:01:55PM +, Stacey Roberts wrote:
 On Sat, 2002-12-28 at 16:26, Cliff Sarginson wrote:
  Hello,
  This is my festive season question.
  I was having some problems with my SMTP mail connection to my ISP.
  So I tcpdump'ed the ethernet ADSL connection.
  I think I know what most of it means, but can anyone tell me what
  the following messages, every 2 seconds mean ?
  It is not a problem, I just would like to know :)
  
  17:22:00.343309 M 0:1:71:2:e6:61  1:0:0:0:0:0 802.1d ui/C
  17:22:02.443185 M 0:1:71:2:e6:61  1:0:0:0:0:0 802.1d ui/C
 
 It appears that you're running spanning tree on your site and (possibly)
 wireless access multipoint network implementations?
 
Mmm.
Don't think so.

-- 
Regards
   Cliff Sarginson 
   The Netherlands

[ This mail has been checked as virus-free ]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: off topic .. interpretation of tcpdump

2002-12-29 Thread Cliff Sarginson
On Sat, Dec 28, 2002 at 07:28:40PM +0100, Andrew Prewett wrote:
 Today Cliff Sarginson wrote:
 
  Hello,
  This is my festive season question.
  I was having some problems with my SMTP mail connection to my ISP.
  So I tcpdump'ed the ethernet ADSL connection.
  I think I know what most of it means, but can anyone tell me what
  the following messages, every 2 seconds mean ?
  It is not a problem, I just would like to know :)
 
  17:22:00.343309 M 0:1:71:2:e6:61  1:0:0:0:0:0 802.1d ui/C
  17:22:02.443185 M 0:1:71:2:e6:61  1:0:0:0:0:0 802.1d ui/C
 
 If you want more friendly output, then try:
 
 # tcpdump -s 1528 -lenx | tcpshow -cooked
 
 (tcpshow is in ports if not already installed)
 
I will look into that, thanks :)

-- 
Regards
   Cliff Sarginson 
   The Netherlands

[ This mail has been checked as virus-free ]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: APM

2002-12-29 Thread Andrew Prewett
On Dec 28 Adam Weinberger wrote:

  (12.28.2002 @ 2157 PST): Derision said, in 0.4K: 
  What is the correct line in the kernel config for
  making halt -p work?
 
  Mine is currently
  device  apm0
 
  (FreeBSD 4.7)
  end of APM from Derision 

 Make sure you also have:
 apm_enable=YES
 apmd_enable=YES

 I think, apmd not needed for halt/shutdown -p to work.
 I newer used, and it works just fine w/o them.

-andrew

 in your /etc/rc.conf.

 # Adam

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Cabletron PCMCIA / Nokia C910 / FreeBSD 4.7 - watchdog timeouts

2002-12-29 Thread Kevin Fleming

Problem:

experiancing 'watchdog timeouts' with Cabletron PCMCIA 802.11 radio card
(wi0). Card doesn't work as expected. Is detected Ok - but as soon as you
'ifconfig' the card - a few seconds later the 'watchdog timeout' messages
are displayed.

Configuration:

FreeBSD 4.7 - RELEASE #0
normal desktop PC with COM2 (IRQ 3), parallel port (IRQ 7) disabled.
Nokia C910 PCMCIA / PCI cradle Cirrus Logic PD6729/6730 PCI-PCMCIA Bridge
Skynet (Cabletron) 802.11 radio card.
ISA VGA card
NE2000 Clone NIC NE2000 PCI Ethernet (RealTek 8029) works Ok.

Tried:

moving the radio card to different IRQ and different IO address. same
problem.
Using the PCMCIA cradle (pcic0) in Interrupt mode. no differance.
Played with the hw.pcic.intr_path parameter. no differance
Cabletron card works OK in win2k laptop.

Do I sound desperate? I'm getting that way..

All the documentation / examples I've seen tend to indicate this problem is
caused by interrupt sharing. I'm almost certain this is not the case - would
like to be corrected - and make this work!

See below for dmesg output.

Please reply directly - I'm no longer subscribed to this mailling list.


Regards,
Kevin Fleming
[EMAIL PROTECTED]

# dmesg
Copyright (c) 1992-2002 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 4.7-RELEASE #0: Wed Oct  9 15:08:34 GMT 2002
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC
Timecounter i8254  frequency 1193182 Hz
CPU: Pentium/P54C (166.45-MHz 586-class CPU)
  Origin = GenuineIntel  Id = 0x52c  Stepping = 12
  Features=0x1bfFPU,VME,DE,PSE,TSC,MSR,MCE,CX8
real memory  = 67108864 (65536K bytes)
config di psm0
config di ppc0
config di sio1
config di sn0
config di lnc0
config di ie0
config di fe0
config di ed0
config di cs0
config di fdc0
config di bt0
config di aic0
config di aha0
config di adv0
config q
avail memory = 60157952 (58748K bytes)
Preloaded elf kernel kernel at 0xc050f000.
Preloaded userconfig_script /boot/kernel.conf at 0xc050f09c.
Intel Pentium detected, installing workaround for F00F bug
md0: Malloc disk
npx0: math processor on motherboard
npx0: INT 16 interface
pcib0: Host to PCI bridge on motherboard
pci0: PCI bus on pcib0
isab0: Intel 82371SB PCI to ISA bridge at device 7.0 on pci0
isa0: ISA bus on isab0
atapci0: Intel PIIX3 ATA controller port 0xf000-0xf00f at device 7.1 on
pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
ed0: NE2000 PCI Ethernet (RealTek 8029) port 0x6100-0x611f irq 11 at
device 9.0 on pci0
ed0: address 00:40:05:46:04:43, type NE2000 (16 bit)
pcic0: Cirrus Logic PD6729/6730 PCI-PCMCIA Bridge port 0x6200-0x6203 irq
10 at device 11.0 on pci0
pcic0: Polling mode
pccard0: PC Card 16-bit bus (classic) on pcic0
pccard1: PC Card 16-bit bus (classic) on pcic0
orm0: Option ROM at iomem 0xc-0xc7fff on isa0
atkbdc0: Keyboard controller (i8042) at port 0x60,0x64 on isa0
atkbd0: AT Keyboard flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
vga0: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb on isa0
sc0: System console at flags 0x100 on isa0
sc0: VGA 16 virtual consoles, flags=0x300
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
ad0: 1221MB ST31277A [2482/16/63] at ata0-master WDMA2
Mounting root from ufs:/dev/ad0s1a
pccard: card inserted, slot 1
wi0 at port 0x300-0x33f irq 3 slot 1 on pccard1
wi0: 802.11 address: 00:e0:63:82:e4:99
wi0: using Lucent Technologies, WaveLAN/IEEE
wi0: Lucent Firmware: Station 6.06.01
wi0: watchdog timeout
#
#
# dmesg | grep irq
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
ed0: NE2000 PCI Ethernet (RealTek 8029) port 0x6100-0x611f irq 11 at
device 9.0 on pci0
pcic0: Cirrus Logic PD6729/6730 PCI-PCMCIA Bridge port 0x6200-0x6203 irq
10 at device 11.0 on pci0
atkbd0: AT Keyboard flags 0x1 irq 1 on atkbdc0
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
wi0 at port 0x300-0x33f irq 3 slot 1 on pccard1




To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



FreeBSD 5.0 - 4.8 question

2002-12-29 Thread dick hoogendijk
What will be the next step for me? I'm a bit confused, because I read
something about the new coming FreeBSD-5.0-RELEASE, but later on in 2003
a new version 4.8 will come out.

What's the difference between those two versions? Is 4.8 kind of an
update for 4.7 and version 5.0 a completely new 'fancy' OS?

-- 
dick -- http://www.nagual.st/ -- PGP/GnuPG key: F86289CE
++ Running FreeBSD 4.7 ++ Debian GNU/Linux (Woody)

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: UPS program for Freebsd

2002-12-29 Thread Francesco Casadei
On Sat, Dec 28, 2002 at 06:42:29PM -0500, Dragoncrest wrote:
   Hi all.  I used to have an email that came from this list detailing 
   which UPS program to use for freebsd, but for some reason I have lost it.  
 I currently have an APC 650 Pro UPS attached to Com1 on one of my machines 
 and I need to set it up so that it will monitor the machine and shut it 
 down only when there is less than 5 minutes of power left.  I also need it 
 to announce to all logged in users (remote via SSH or locally via the 
 console) the moment the UPS goes on battery and when its getting close to 
 shutdown time, etc.
 
   If anyone can send me this information, I would greatly appreciate 
 it.  Thank you.
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
 
 end of the original message

I use nut - the Network UPS Tools - with an APC Back-UPS Pro 650 and it works
fine.  Here is a sample output from the included upsc program:

host: localhost
MODEL: Back-UPS Pro 650
SERIAL: NB0130252271
STATUS: OL
UTILITY: 230.4
BATTPCT: 100.0
ACFREQ: 50.00
LOADPCT: 032.5
BATTVOLT: 13.77
OUTVOLT: 230.4
UPSIDENT: UPS_IDEN
LOWXFER: 208
HIGHXFER: 253
WAKEDELAY: 000
LINESENS: H
GRACEDELAY: 020
RTHRESH: 00
ALRMDEL: 0
BATTDATE: 07/26/01
MFR: APC

You can define a message for each of the following events:

 ONLINE   : UPS is back online
 ONBATT   : UPS is on battery
 LOWBATT  : UPS is on battery and has a low battery (is critical)
 FSD  : UPS is being shutdown by the master (FSD = Forced Shutdown)
 COMMOK   : Communications established with the UPS
 COMMBAD  : Communications lost to the UPS
 SHUTDOWN : The system is being shutdown
 REPLBATT : The UPS battery is bad and needs to be replaced
 NOCOMM   : A UPS is unavailable (can't be contacted for monitoring)

Then for each event you defined you can tell nut what to do. From one of the
configuration files:

# NOTIFYFLAG - change behavior of upsmon when NOTIFY events occur
#
# By default, upsmon sends walls (global messages to all logged in users)
# and writes to the syslog when things happen.  You can change this.
#
# NOTIFYFLAG notify type flag[+flag][+flag] ...
#
NOTIFYFLAG ONLINE SYSLOG+EXEC
NOTIFYFLAG ONBATT SYSLOG+EXEC
NOTIFYFLAG LOWBATT SYSLOG+EXEC
NOTIFYFLAG SHUTDOWN SYSLOG+EXEC
#
# Possible values for the flags:
#
# SYSLOG - Write the message in the syslog
# WALL   - Write the message to all users on the system
# EXEC   - Execute NOTIFYCMD (see above) with the message
# IGNORE - Don't do anything
#
# If you use IGNORE, don't use any other flags on the same line.

You can write your own program to execute custom actions, for example I have
a program that notifies me via SMS when one of the four events ONLINE, ONBATT,
LOWBATT and SHUTDOWN occurs.

You can find nut in the ports collection located at sysutils/nut.

Francesco Casadei
-- 
You can download my public key from http://digilander.libero.it/fcasadei/
or retrieve it from a keyserver (pgpkeys.mit.edu, wwwkeys.pgp.net, ...)

Key fingerprint is: 1671 9A23 ACB4 520A E7EE  00B0 7EC3 375F 164E B17B




msg13561/pgp0.pgp
Description: PGP signature


Re: FreeBSD 5.0 - 4.8 question

2002-12-29 Thread Matthew Seaman
On Sun, Dec 29, 2002 at 01:04:07PM +0100, dick hoogendijk wrote:
 What will be the next step for me? I'm a bit confused, because I read
 something about the new coming FreeBSD-5.0-RELEASE, but later on in 2003
 a new version 4.8 will come out.
 
 What's the difference between those two versions? Is 4.8 kind of an
 update for 4.7 and version 5.0 a completely new 'fancy' OS?

http://www.freebsd.org/releases/5.0R/DP2/early-adopter.html
http://www.freebsd.org/releng/index.html

In summary, 5.0-RELEASE is going to contain some substantial new work
on core parts of the Kernel (See, for instance:
http://www.freebsd.org/smp/index.html).  It's going to need some time
for the new code to become sufficiently bedded down that it's suitable
for use on production servers.  Thus there will be one or more
releases in the 5.x-RELEASE series before 5-STABLE is branched.  In
the mean time, development will continue on the 4-STABLE branch, with
4.8-RELEASE due in March 2003.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
  Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: 3c589/PCMCIA.

2002-12-29 Thread lewiz
On Sun, Dec 29, 2002 at 02:47:29AM +0100, Marcel Stangenberger wrote:
 tried them both, it found my card in both pcmcia slots (baseport 300, irq
 10) but freebsd is still not finding them in either of the pcmcia ports.

Can you supply a dmesg dump, maybe I can see what's it's doing
differently to mine.

-lewiz.

-- 
There is a green, multi-legged creature crawling on your shoulder.

--|| url: http://lewiz.info/ | http://www.westwood.karoo.net/pgpkey ||--



msg13563/pgp0.pgp
Description: PGP signature


Re: What are the SMTP rules for sending mail to FreeBSD

2002-12-29 Thread Erik Greenwald
On Sat, Dec 28, 2002 at 09:03:08PM -0800, Kris Kennaway wrote:
 
 freebsd.org does not care if your reverse DNS mapping points back to
 the name you identified yourself with, it only checks that the name
 the server IDs itself as when submitting email resolves to the correct
 IP address.
 
 Many people (including me) have a working setup where reverse DNS
 mappings do not give back the original hostname we ID with.
 
 Kris

the mailing lists and user accounts are fairly forgiving, but the gnats/pr
stuff doesn't seem to be... is that by design? right now I'm filling out
the send-pr form, :w'ing it, then scp'ing it out to a viable mailer and
hand-editing the comment stuff out and sending that... (current setup is
a pair of fbsd clients behind a redcrap ipmasq (natd)... the redhat machine
CAN send pr's, its sendmail smarthost/masq stuff works, I can't get the fbsd
ones to do the right thing tho...)

-- 
-Erik [EMAIL PROTECTED] [http://math.smsu.edu/~erik]

The opinions expressed by me are not necessarily opinions. In all probability,
they are random rambling, and to be ignored. Failure to ignore may result in
severe boredom or confusion. Shake well before opening. Keep Refrigerated.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Firewall Forwarding Syntax

2002-12-29 Thread Matthew Seaman
On Sat, Dec 28, 2002 at 02:12:20PM -0600, Jack L. Stone wrote:
 
 I want the packets to remain intact, but delivered correctly. I'm not even
 sure if this is the right direction to take to solve the problem. Perhaps
 an explanation of the delimma:
 
 I have a FBSD gateway (with NAT  caching DNS) on a server and the public
 interface identifies incoming packets and routes them to the proper machine
 using IP aliases in the interface -- fairly typical I suppose as per
 example as follows, with rl0 as the internal and rl1 as external interfaces:
 
 ifconfig_rl0=inet 192.168.0.1 netmask 0xff00
 ifconfig_rl1=inet 123.45.678.001 netmask 255.255.255.248
 ifconfig_rl1_alias0=inet 123.45.678.002 netmask 255.255.255.255
 ifconfig_rl1_alias1=inet 123.45.678.003 netmask 255.255.255.255
 etc, etc.
 
 Then, I use NAT to do redirect from above external IPs to machines on
 private network.
 -redirect_address 192.168.0.7 123.45.678.002
 -redirect_address 192.168.0.5 123.45.678.003
 etc, etc.
 
 PROBLEM:
 Any emails sent (via Sendmail) out of machine 192.168.0.5 leaves and goes
 to the gateway, resolves itself as 123.45.678.003 just fine and goes OUT
 for delivery. BUT, the gateway machine (or any other machine on the private
 network) cannot find its way to that machine fro deliver of emails. Any
 mails coming from the outside enteres the gateway and is sent to the
 machine 123.45.678.003/192.168.0.5 just fine... just not from within the
 LAN they must know also know the 192.168.0.5 IP to get there. The above
 -redirects does not do it for INTERNAL emails. This is only a problem where
 copies of emails sent OUT contain copies to go BACK to internal machines --
 such as majordomo mail lists.
 
 To try to make it simpler, any mails that leave an internal machine must go
 to the default gateway, 192.168.0.1 and then gets confused and cannot find
 its way back to that same machine to deliver copies of emails.

OK.  I think that the best approach to this is not to think of it as a
sendmail or an ipfw problem, but as a DNS problem.

Your problem, in a nutshell, is that hosts inside your network
(including your gateway machine) need to contact your mail (or
whatever) server directly on your private network, i.e. at
192.168.0.7, whereas hosts outside your network need to connect to the
nat'ed alias address 123.45.67.2 on your gateway machine.

So the simple answer to your troubles is to set up your DNS so that on
an internal machine, looking up your mail server in the DNS gets a
response like:

% host smtp.example.com
smtp.example.com has address 192.168.0.7
smtp.example.com mail is handled (pri=10) by smtp.example.com

and from anywhere else in the world, the response looks like:

% host smtp.example.com
smtp.example.com has address 123.45.67.2
smtp.example.com mail is handled (pri=10) by smtp.example.com

Now, one way you might do that is just to use a separate DNS box for
internal clients, which contains a set of zone files for the
example.com domain with the internal numbers, and set up resolv.conf
on all your internal machines to point to it.

However, you've already got a perfectly good DNS server and I'm sure
you don't want the hassle of maintaining two machines where one would
do.  That's alright, but you will need to install BIND 9 from ports,
which is fully capable of presenting a different view of the network
depending on where the question comes from.  So in your named.conf on
your authoritative server you would have something like this:

acl internalnet {
192.168.0.0/24;
}

options {
[...]
}

view private in {
match-clients {
internalnet;
};

zone . in {
type hint;
file named.root;
};

zone example.com in {
type master;
file internal/example.com.db;
};

zone 0.168.192.in-addr.arpa in {
type master;
file internal/0.168.192.in-addr.arpa.db;
};

zone 0.0.127.in-addr.arpa in {
[...]
};
}// view private

view public in {
match-clients {
any;
};

zone . in {
type hint;
file named.root;
};

zone example.com in {
type master;
file external/example.com.db;
};

zone 67.45.123.in-addr.arpa in {
type master;
file external/67.45.123.in-addr.arpa.db;
};
};   // view public

Note that if you use views at all in your named.conf, all zone
statements must occur inside a view statement.  See the BIND
documentation the port installs in ${PREFIX}/share/doc/bind9/arm/ or
on the net at http://www.nominum.com/content/documents/bind9arm.pdf

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
   

Re: Firewall Forwarding Syntax

2002-12-29 Thread Jack L. Stone
At 02:45 PM 12.29.2002 +, Matthew Seaman wrote:
On Sat, Dec 28, 2002 at 02:12:20PM -0600, Jack L. Stone wrote:
 
 I want the packets to remain intact, but delivered correctly. I'm not even
 sure if this is the right direction to take to solve the problem. Perhaps
 an explanation of the delimma:
 
 I have a FBSD gateway (with NAT  caching DNS) on a server and the public
 interface identifies incoming packets and routes them to the proper machine
 using IP aliases in the interface -- fairly typical I suppose as per
 example as follows, with rl0 as the internal and rl1 as external
interfaces:
 
 ifconfig_rl0=inet 192.168.0.1 netmask 0xff00
 ifconfig_rl1=inet 123.45.678.001 netmask 255.255.255.248
 ifconfig_rl1_alias0=inet 123.45.678.002 netmask 255.255.255.255
 ifconfig_rl1_alias1=inet 123.45.678.003 netmask 255.255.255.255
 etc, etc.
 
 Then, I use NAT to do redirect from above external IPs to machines on
 private network.
 -redirect_address 192.168.0.7 123.45.678.002
 -redirect_address 192.168.0.5 123.45.678.003
 etc, etc.
 
 PROBLEM:
 Any emails sent (via Sendmail) out of machine 192.168.0.5 leaves and goes
 to the gateway, resolves itself as 123.45.678.003 just fine and goes OUT
 for delivery. BUT, the gateway machine (or any other machine on the private
 network) cannot find its way to that machine fro deliver of emails. Any
 mails coming from the outside enteres the gateway and is sent to the
 machine 123.45.678.003/192.168.0.5 just fine... just not from within the
 LAN they must know also know the 192.168.0.5 IP to get there. The above
 -redirects does not do it for INTERNAL emails. This is only a problem where
 copies of emails sent OUT contain copies to go BACK to internal machines --
 such as majordomo mail lists.
 
 To try to make it simpler, any mails that leave an internal machine must go
 to the default gateway, 192.168.0.1 and then gets confused and cannot find
 its way back to that same machine to deliver copies of emails.

OK.  I think that the best approach to this is not to think of it as a
sendmail or an ipfw problem, but as a DNS problem.

Your problem, in a nutshell, is that hosts inside your network
(including your gateway machine) need to contact your mail (or
whatever) server directly on your private network, i.e. at
192.168.0.7, whereas hosts outside your network need to connect to the
nat'ed alias address 123.45.67.2 on your gateway machine.

So the simple answer to your troubles is to set up your DNS so that on
an internal machine, looking up your mail server in the DNS gets a
response like:

% host smtp.example.com
smtp.example.com has address 192.168.0.7
smtp.example.com mail is handled (pri=10) by smtp.example.com

and from anywhere else in the world, the response looks like:

% host smtp.example.com
smtp.example.com has address 123.45.67.2
smtp.example.com mail is handled (pri=10) by smtp.example.com

Now, one way you might do that is just to use a separate DNS box for
internal clients, which contains a set of zone files for the
example.com domain with the internal numbers, and set up resolv.conf
on all your internal machines to point to it.

However, you've already got a perfectly good DNS server and I'm sure
you don't want the hassle of maintaining two machines where one would
do.  That's alright, but you will need to install BIND 9 from ports,
which is fully capable of presenting a different view of the network
depending on where the question comes from.  So in your named.conf on
your authoritative server you would have something like this:

acl internalnet {
192.168.0.0/24;
}

options {
[...]
}

view private in {
match-clients {
internalnet;
};

zone . in {
type hint;
file named.root;
};

zone example.com in {
type master;
file internal/example.com.db;
};

zone 0.168.192.in-addr.arpa in {
type master;
file internal/0.168.192.in-addr.arpa.db;
};

zone 0.0.127.in-addr.arpa in {
[...]
};
}// view private

view public in {
match-clients {
any;
};

zone . in {
type hint;
file named.root;
};

zone example.com in {
type master;
file external/example.com.db;
};

zone 67.45.123.in-addr.arpa in {
type master;
file external/67.45.123.in-addr.arpa.db;
};
};   // view public

Note that if you use views at all in your named.conf, all zone
statements must occur inside a view statement.  See the BIND
documentation the port installs in ${PREFIX}/share/doc/bind9/arm/ or
on the net at http://www.nominum.com/content/documents/bind9arm.pdf

   Cheers,

   Matthew


Thanks for going to all this trouble, Matthew. I had a gut feeling it was
going to be the DNS. Now, 

panic using new install of 4.7 RELEASE

2002-12-29 Thread Darren
I have a fresh install of 4.7 RELEASE on a AMD K6-200 with 32 MB RAM.  And,
I keep getting kernel panics.

The first sign of any problem was while I was installing.  I checked the CD
for md5sum errors.  But, it was ok.  So, I tried an FTP (passive) install.
Still, every attempt crapped out until I finally selected the minimal
install.  All that I can remember it would say was, syncing disks...

Now that I have an installation, another problem occurs when I run
portsdb -Uu.  It get about 5 minutes through and then it panics and does
an automatic reboot.  I've tried to capture the messages to screen.  But, it
usually reboots before I can write it all down.  One message on the screen
that I haven't been able to catch completely says something like:  panic:
vm_object_deallocated allocated too many times.

Another message is longer and stays on screen.  It says:

quote
Fatal trap 12: page fault while in kernel mode
fault virtual address  = 0xc4427f42
fault code= supervisor write, page not present
instruction pointer= 0x8:0xc0376d4f
stack pointer   = 0x10:0xc41f2c88
frame pointer  = 0x10:0xc41f2c90
code segment  = base 0x0, limit 0xf, type 0x1b
   = DPL 0, pres 1, def32 1, gran 1
processor eflags  = interrupt enabled, resume, IOPL = 0
current process   = 84538 (sh)
interrupt mask = none
trap number=12
panic: page fault

syncing disks...
/qoute

My guess is that I have some bad memory or something.  But, that's just a
very uneducated guess.

Thanks for any help,
Darren


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: 3c589/PCMCIA.

2002-12-29 Thread Marcel Stangenberger
On Sun, 29 Dec 2002, lewiz wrote:

 On Sun, Dec 29, 2002 at 02:47:29AM +0100, Marcel Stangenberger wrote:
  tried them both, it found my card in both pcmcia slots (baseport 300, irq
  10) but freebsd is still not finding them in either of the pcmcia ports.

 Can you supply a dmesg dump, maybe I can see what's it's doing
 differently to mine.


it won't dump cause i can't get freebsd to install. (no cdrom in the
laptop so i need a network install) If i look at the install log (on the
second console (ALT-F2)) i do see that freebsd finds a pcmcia card in the
slot. And is trying to detect what kind of card it is. It loads a few
networkdrivers but as far as i can see they are all pci drivers. It seems
that the card is simply not recognized.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



procmail and anti-spam

2002-12-29 Thread dick hoogendijk
Hello,

It need not be state-of-the-art, but a good .procmailrc-file that
filters a lot of spam would come in very handy.

Does any of you have such a file and would you be willing to share it
with me (us?).

Links to procmail and anti-spam would also be welcome.

Thanks 2all.

-- 
dick -- http://www.nagual.st/ -- PGP/GnuPG key: F86289CE
++ Running FreeBSD 4.7 ++ Debian GNU/Linux (Woody)

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: procmail and anti-spam

2002-12-29 Thread Alex

Dear/Beste dick,

Sunday, December 29, 2002, 5:12:16 PM, you wrote:

 Hello,

 It need not be state-of-the-art, but a good .procmailrc-file that
 filters a lot of spam would come in very handy.

 Does any of you have such a file and would you be willing to share it
 with me (us?).

 Links to procmail and anti-spam would also be welcome.

 Thanks 2all.

I beleave there is a port available called Spambouncer. There is a
discussion going on the security list about this port.


-- 
Best regards/Met vriendelijke groet,
Alex


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: procmail and anti-spam

2002-12-29 Thread Adam Weinberger
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

 (12.29.2002 @ 0812 PST): dick hoogendijk said, in 0.5K: 
 It need not be state-of-the-art, but a good .procmailrc-file that
 filters a lot of spam would come in very handy.
 
 Does any of you have such a file and would you be willing to share it
 with me (us?).
 end of procmail and anti-spam from dick hoogendijk 

This is what's in mine:

:0fw
| /usr/local/bin/spamassassin
:0
* ^X-Spam-Status: Yes
bullshit/

Here's what it does: It passes the mail through spamassassin
(/usr/ports/mail/p5-Mail-SpamAssassin), which will append a header named
X-Spam-Status to the mail. If that header exists, the mail is directed
into an appropriately named folder.

I now get between 50 and 60 spam messages a day (just one of the perks
of being a FreeBSD committer active on the mailing lists, I suppose),
and spamassassin catches about 95% of them.

To be honest, my procmail filter is a tad different. I have spamd
running from /usr/local/etc/rc.d, and my spamassassin filter line is
actually | /usr/local/bin/spamc. Same difference, though.

# Adam


- --
Adam Weinberger
vectors.cx[EMAIL PROTECTED]
FreeBSD.org   [EMAIL PROTECTED]
Bayer Berkeley[EMAIL PROTECTED]
#vim:set ts=8: 8-char tabs prevent tooth decay.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE+Dyrvo8KM2ULHQ/0RAgw6AJoDeHelfCQiDGFdjqE63oQ6AsTbiACfbkXW
OWcM8SthPGh0BV6JhQQTS8g=
=caTa
-END PGP SIGNATURE-

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: procmail and anti-spam

2002-12-29 Thread Jack L. Stone
At 09:03 AM 12.29.2002 -0800, Adam Weinberger wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

 (12.29.2002 @ 0812 PST): dick hoogendijk said, in 0.5K: 
 It need not be state-of-the-art, but a good .procmailrc-file that
 filters a lot of spam would come in very handy.
 
 Does any of you have such a file and would you be willing to share it
 with me (us?).
 end of procmail and anti-spam from dick hoogendijk 

This is what's in mine:

:0fw
| /usr/local/bin/spamassassin
:0
* ^X-Spam-Status: Yes
bullshit/

Here's what it does: It passes the mail through spamassassin
(/usr/ports/mail/p5-Mail-SpamAssassin), which will append a header named
X-Spam-Status to the mail. If that header exists, the mail is directed
into an appropriately named folder.

I now get between 50 and 60 spam messages a day (just one of the perks
of being a FreeBSD committer active on the mailing lists, I suppose),
and spamassassin catches about 95% of them.

To be honest, my procmail filter is a tad different. I have spamd
running from /usr/local/etc/rc.d, and my spamassassin filter line is
actually | /usr/local/bin/spamc. Same difference, though.

# Adam


Adam: I use Sendmail-8.12.6 with spamassassin  my question of you is about
your spamassassin setup. I just installed SA + Spamass-Milter and they
seemed to be working fine, except for this I keep seeing in the maillog (I
posted this on the SpamassTalk list, but no response):

Dec 29 11:14:49 sage-american spamd[72550]: info: setuid to root succeeded 
Dec 29 11:14:49 sage-american spamd[72550]: Still running as root: user not
specified, not found, or set to root.  Fall back to nobody.

I load spamd from /usr/local/etc/rc.d also and it does NOT set the root
specifically as the user. If I added -username root switch to the spamd
startup, would the above messages stop...??? ...have you seen the above
message youself?

Best regards,
Jack L. Stone,
Administrator

SageOne Net
http://www.sage-one.net
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Bystander shot by a spam filter.

2002-12-29 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2002-12-28 13:49:31 -0700:
 Seems to me that this is an invitation to government 
 regulation -- interfering with the mail is a criminal
 offense for good reason.

so you think you have a *right* to send me email?  you must be
joking.

-- 
If you cc me or remove the list(s) completely I'll most likely ignore
your message.see http://www.eyrie.org./~eagle/faqs/questions.html

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: 3c589/PCMCIA.

2002-12-29 Thread lewiz
On Sun, Dec 29, 2002 at 05:12:55PM +0100, Marcel Stangenberger wrote:
 it won't dump cause i can't get freebsd to install. (no cdrom in the
 laptop so i need a network install) If i look at the install log (on the
 second console (ALT-F2)) i do see that freebsd finds a pcmcia card in the
 slot. And is trying to detect what kind of card it is. It loads a few
 networkdrivers but as far as i can see they are all pci drivers. It seems
 that the card is simply not recognized.

Is this 4.x or 5?  I couldn't get it to work with 5.

  When you start the install process does FreeBSD ask you if you wish to
install from a PCCard device?  At this prompt I select yes, then at the
next dialogue, chose default and the one afterwards I selected IRQ 10.

  If you can't get a full dump did you want to try and run dmesg and
scroll through, write down all of the entries that relate to PCCard of
networking.  I'll rerun the setup and tell you what mine says.

-lewiz.

-- 
New Year's Eve is the time of year when a man most feels his age, and
his wife most often reminds him to act it.
-- Webster's Unafraid Dictionary

--|| url: http://lewiz.info/ | http://www.westwood.karoo.net/pgpkey ||--



msg13574/pgp0.pgp
Description: PGP signature


Re: What are the SMTP rules for sending mail to FreeBSD

2002-12-29 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2002-12-29 10:55:11 +1030:

...

 For more information, take a look at the following, which is a message
 I send to systems which appear to be bona fide attempts from broken
 reverse addresses.  Looking at the name of the sender, I'm sure this
 one is not bona fide, and I didn't really send the message.  Most of
 my double bounces come from spammers.
 
 Greg
 
 
 
 PLEASE READ THIS MESSAGE.  It contains important information about
 problems at your site.  It is machine generated, but it is intended to
 be intelligible.

do you have that script publically available? I'd like to use that,
too.

-- 
If you cc me or remove the list(s) completely I'll most likely ignore
your message.see http://www.eyrie.org./~eagle/faqs/questions.html

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: What are the SMTP rules for sending mail to FreeBSD

2002-12-29 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2002-12-28 19:15:49 +0100:
 Today Harry Tabak wrote:
 
  Mail sent from my main server, gatehouse.quadtelecom.com (66.45.116.138)
  gets rejected.
 _450_Client_host_rejected:_cannot_find_your_hostname,_[66.45.116.138]
 
  If 450 is some error code, then it's only a _temporary_ error/failure
 (RFC 1893). Maybe the DNS servers using the old (cached) data.

ISTR Postfix replies with 450 to (almost) all errors by default.

-- 
If you cc me or remove the list(s) completely I'll most likely ignore
your message.see http://www.eyrie.org./~eagle/faqs/questions.html

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: 3c589/PCMCIA.

2002-12-29 Thread Marcel Stangenberger
On Sun, 29 Dec 2002, lewiz wrote:

 On Sun, Dec 29, 2002 at 05:12:55PM +0100, Marcel Stangenberger wrote:
  it won't dump cause i can't get freebsd to install. (no cdrom in the
  laptop so i need a network install) If i look at the install log (on the
  second console (ALT-F2)) i do see that freebsd finds a pcmcia card in the
  slot. And is trying to detect what kind of card it is. It loads a few
  networkdrivers but as far as i can see they are all pci drivers. It seems
  that the card is simply not recognized.

 Is this 4.x or 5?  I couldn't get it to work with 5.


4.7

   When you start the install process does FreeBSD ask you if you wish to
 install from a PCCard device?  At this prompt I select yes, then at the
 next dialogue, chose default and the one afterwards I selected IRQ 10.


i did so to. I choose the same settings after i verified with my card

   If you can't get a full dump did you want to try and run dmesg and
 scroll through, write down all of the entries that relate to PCCard of
 networking.  I'll rerun the setup and tell you what mine says.


that is the problem, dmesg isn't installed so how can i run it? i'm in the
installer. If i start a repair console i can't run dmesg cause it isn't
yet on the system.

The pccard service detects a card in the slot but it doesn't recognize it.

Marcel


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



No route to host

2002-12-29 Thread Gene Bomgardner
Hi - hope someone can help - 

I've got 4.6 up on a laptop. With the Generic kernel all is well with 
networking. I then recompiled the kernel. the only changes made to 
the GENERIC file was the addition of the ipfw stuff (including 
default_to_accept) and the netgraph definitions. All compiled and 
installed without a hitch. However, any attempt to access the 
network (telnet, ping, whatever) results in No route to host. Even 
when trying to ping 127.0.0.1 Booting the original kernel back up 
restores networking. I get the feeling I've missed something. Any 
ideas? 

Thanks.

God's Blessings,
Gene

To everything there is a season, and a time to every 
purpose under heaven.Ecl 3:1 - 
and more recently, The Byrds


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: PCCARD DHCP and media.

2002-12-29 Thread lewiz
On Sat, Dec 28, 2002 at 02:33:10PM -0500, Lowell Gilbert wrote:
 lewiz [EMAIL PROTECTED] writes:
 
I've just got a 3C589 PCCARD NIC going.  However, I'm using the BNC
  (10Base2) connector so I need to specify ``media 10base2/BNC'' in
  rc.conf.  However, if I do this DHCP doesn't seem to work.  Is there any
  way that I can combine media 10base2/BNC and DHCP into pccard_ifconfig?
 
 Sure; just specify your own script, using pccard.conf. 
 Instead of the default pccard_ether, you can do a specialized script
 that sets the medium before invoking dhclient.

Thanks for this tip, it was most helpful.  After reading around a bit in
/etc/pccard_ether I found that there was an optional execution of
/etc/start_if.{if} and /etc/stop_if.{if} so I now have ifconfig ep0
media 10Base2/BNC in start_if.ep0.

  Thanks again,

-lewiz.

-- 
We can defeat gravity.  The problem is the paperwork involved.

--|| url: http://lewiz.info/ | http://www.westwood.karoo.net/pgpkey ||--



msg13579/pgp0.pgp
Description: PGP signature


Re: No route to host

2002-12-29 Thread Stacey Roberts
On Sun, 2002-12-29 at 18:00, Gene Bomgardner wrote:
 Hi - hope someone can help - 
 
 I've got 4.6 up on a laptop. With the Generic kernel all is well with 
 networking. I then recompiled the kernel. the only changes made to 
 the GENERIC file was the addition of the ipfw stuff (including 
 default_to_accept) and the netgraph definitions. All compiled and 
 installed without a hitch. However, any attempt to access the 
 network (telnet, ping, whatever) results in No route to host. Even 
 when trying to ping 127.0.0.1 Booting the original kernel back up 
 restores networking. I get the feeling I've missed something. Any 
 ideas? 
 

Run an sdiff on both kernels and post the output so that members can
take a look at the actual differences between the two kernels.


Regards,

Stacey

 Thanks.
 
 God's Blessings,
 Gene
 
 To everything there is a season, and a time to every 
 purpose under heaven.Ecl 3:1 - 
 and more recently, The Byrds
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
-- 
Stacey Roberts
B.Sc (HONS) Computer Science

Web: www.vickiandstacey.com



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: UPS program for Freebsd

2002-12-29 Thread Dragoncrest
So would this program also attack to a UPS that's attached to the 
local machine via Com1?  I'm guessing so, but I wanted to ask for certain 
because this is the only way I can connect the UPS since it has no USB or 
lan connection on it to allow for network monitoring.  :)

At 12:59 PM 12/29/02 +0100, Francesco Casadei wrote:
On Sat, Dec 28, 2002 at 06:42:29PM -0500, Dragoncrest wrote:
   Hi all.  I used to have an email that came from this list detailing
   which UPS program to use for freebsd, but for some reason I have 
lost it..
 I currently have an APC 650 Pro UPS attached to Com1 on one of my machines
 and I need to set it up so that it will monitor the machine and shut it
 down only when there is less than 5 minutes of power left.  I also need it
 to announce to all logged in users (remote via SSH or locally via the
 console) the moment the UPS goes on battery and when its getting close to
 shutdown time, etc.

   If anyone can send me this information, I would greatly appreciate
 it.  Thank you.


 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message

 end of the original message

I use nut - the Network UPS Tools - with an APC Back-UPS Pro 650 and it works
fine.  Here is a sample output from the included upsc program:

host: localhost
MODEL: Back-UPS Pro 650
SERIAL: NB0130252271
STATUS: OL
UTILITY: 230.4
BATTPCT: 100.0
ACFREQ: 50.00
LOADPCT: 032.5
BATTVOLT: 13.77
OUTVOLT: 230.4
UPSIDENT: UPS_IDEN
LOWXFER: 208
HIGHXFER: 253
WAKEDELAY: 000
LINESENS: H
GRACEDELAY: 020
RTHRESH: 00
ALRMDEL: 0
BATTDATE: 07/26/01
MFR: APC

You can define a message for each of the following events:

 ONLINE   : UPS is back online
 ONBATT   : UPS is on battery
 LOWBATT  : UPS is on battery and has a low battery (is critical)
 FSD  : UPS is being shutdown by the master (FSD = Forced Shutdown)
 COMMOK   : Communications established with the UPS
 COMMBAD  : Communications lost to the UPS
 SHUTDOWN : The system is being shutdown
 REPLBATT : The UPS battery is bad and needs to be replaced
 NOCOMM   : A UPS is unavailable (can't be contacted for monitoring)

Then for each event you defined you can tell nut what to do. From one of the
configuration files:

# NOTIFYFLAG - change behavior of upsmon when NOTIFY events occur
#
# By default, upsmon sends walls (global messages to all logged in users)
# and writes to the syslog when things happen.  You can change this.
#
# NOTIFYFLAG notify type flag[+flag][+flag] ...
#
NOTIFYFLAG ONLINE SYSLOG+EXEC
NOTIFYFLAG ONBATT SYSLOG+EXEC
NOTIFYFLAG LOWBATT SYSLOG+EXEC
NOTIFYFLAG SHUTDOWN SYSLOG+EXEC
#
# Possible values for the flags:
#
# SYSLOG - Write the message in the syslog
# WALL   - Write the message to all users on the system
# EXEC   - Execute NOTIFYCMD (see above) with the message
# IGNORE - Don't do anything
#
# If you use IGNORE, don't use any other flags on the same line.

You can write your own program to execute custom actions, for example I have
a program that notifies me via SMS when one of the four events ONLINE, ONBATT,
LOWBATT and SHUTDOWN occurs.

You can find nut in the ports collection located at sysutils/nut.

Francesco Casadei
--
You can download my public key from http://digilander.libero.it/fcasadei/
or retrieve it from a keyserver (pgpkeys.mit.edu, wwwkeys.pgp.net, ...)

Key fingerprint is: 1671 9A23 ACB4 520A E7EE  00B0 7EC3 375F 164E B17B




To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: What are the SMTP rules for sending mail to FreeBSD

2002-12-29 Thread Len Conrad


ISTR Postfix replies with 450 to (almost) all errors by default.


And there are errors where you need to escalate the 4xx response to 554 to 
stop the sending MTA from re-trying for days, or just harvest the 4xx ip's 
to a new .map filean block with 554.

Postfix's new sender address verification is extremely effective in 
blocking crap that used to get through, but it always returns 4xx so your 
reject counts go through the roof as SAV 4xx rejects are re-tried 100's of 
times.  But, in fact, this is more of a resource consumption for the 
senders than it is on your MX.  And the advantage of keeping this crap out 
of your system outweighs the higher rate of repeated rejects.

Len


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


[no subject]

2002-12-29 Thread Morten olson
Hi.. can i update from FreeBSD 4.7-STABLE to FreeBSD 5.0 when its out?
-- 
Morten olson [EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: kde mixer

2002-12-29 Thread Shantanu Mahajan
+++ Dale Morris [freebsd] [28-12-02 14:59 -0800]:
| * Anish Mistry [EMAIL PROTECTED] [2002-12-28 14:11]:
|  On Saturday 28 December 2002 02:44 pm, Dale Morris wrote:
|   I'm in the process of setting up 4.7 after being away from FreeBSD for a
|   while. I'm having trouble with kmix
|  try running kmix from an xterm window and see what error message(s) you get.
| It works fine from xterm, it's just when I select mixer from the kde
| panel that it doesn't work. ?? Guess I need reconfigure the menu or ?
| 
| thanks for your reply
| dale
|  -- 
|  Anish Mistry
| 
| --
look for the speaker icon at right bottom corner of
your desktop (cyan colored). right click on it and press
restore.

Regards,
Shantanu

-- 
Everyone is a genius.  It's just that
some people are too stupid to realize it. 




msg13584/pgp0.pgp
Description: PGP signature


Re: dos2unix? rmcr?

2002-12-29 Thread Shantanu Mahajan
+++ Chris P [freebsd] [28-12-02 22:54 -0800]:
| Hello,
|   Anyone know of any similar commands that will strip out the DOS
| control-M's that show up in files?  dos2unix in solaris... rmcr in SCO..
| how about FreeBSD?
| 
| 
| Thanks..
| 
| C.
| 
| --

col -bx  dosfile  unixfile

Regards,
Shantanu

-- 
Everyone is a genius.  It's just that
some people are too stupid to realize it. 




msg13585/pgp0.pgp
Description: PGP signature


Re: What are the SMTP rules for sending mail to FreeBSD

2002-12-29 Thread John Martinez

On Sunday, December 29, 2002, at 10:06  AM, Len Conrad wrote:




ISTR Postfix replies with 450 to (almost) all errors by default.


And there are errors where you need to escalate the 4xx response to 
554 to stop the sending MTA from re-trying for days, or just harvest 
the 4xx ip's to a new .map filean block with 554.

Postfix's new sender address verification is extremely effective in 
blocking crap that used to get through, but it always returns 4xx so 
your reject counts go through the roof as SAV 4xx rejects are re-tried 
100's of times.  But, in fact, this is more of a resource consumption 
for the senders than it is on your MX.  And the advantage of keeping 
this crap out of your system outweighs the higher rate of repeated 
rejects.


Sounds great. Maybe I'll convert to Postfix soon enough!

-john


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



adduser

2002-12-29 Thread Cliff Sarginson
adduser is broken.
Jeez, people wonder why FreeBSD is not more popular.

-- 
Regards
   Cliff Sarginson 
   The Netherlands

[ This mail has been checked as virus-free ]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser

2002-12-29 Thread Marcel Stangenberger
 adduser is broken.
 Jeez, people wonder why FreeBSD is not more popular.


what is wrong with it?

it's working fine here.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser

2002-12-29 Thread Norbert Koch
Cliff Sarginson [EMAIL PROTECTED] writes:

 adduser is broken.
 Jeez, people wonder why FreeBSD is not more popular.

Your mailer is broken.  It cut off the command you issued and the
error message you got.

norbert.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser

2002-12-29 Thread Norbert Koch
Cliff Sarginson [EMAIL PROTECTED] writes:

Hi!

 Your mailer is broken.  It cut off the command you issued and the
 error message you got.

 What on earth are you talking about ?

IOW: if you don't tell us, what you've tried and what's happened, we
have no possibility to help you.

norbert.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser

2002-12-29 Thread Alex

Dear/Beste Cliff,

Sunday, December 29, 2002, 7:53:02 PM, you wrote:

 adduser is broken.
 Jeez, people wonder why FreeBSD is not more popular.

FreeBSD is for a number of reasons not popular. One is that people
like you that produce negative PR without cause.

-- 
Best regards/Met vriendelijke groet,
Alex


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: APM

2002-12-29 Thread Wayne Lubin

--- Adam Weinberger [EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
  (12.28.2002 @ 2157 PST): Derision said, in 0.4K:
 
  What is the correct line in the kernel config for
  making halt -p work?
  
  Mine is currently 
  device  apm0
  
  (FreeBSD 4.7)
  end of APM from Derision 
 
 Make sure you also have:
 apm_enable=YES
 apmd_enable=YES
 
 in your /etc/rc.conf.
 
 # Adam
 
 
 - --
 Adam Weinberger
 vectors.cx  [EMAIL PROTECTED]
 FreeBSD.org [EMAIL PROTECTED]
 Bayer Berkeley  [EMAIL PROTECTED]
 #vim:set ts=8: 8-char tabs prevent tooth decay.
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.2.1 (FreeBSD)
 

iD8DBQE+Dpiuo8KM2ULHQ/0RAqaPAJ4uyhXLpaENj9pXRqkR39u3heOIFwCgxs24
 3Rcck6MQU3aaL1j7CJeuZs4=
 =0/wZ
 -END PGP SIGNATURE-
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of
 the message


Actually 

apmd_enable=YES

will suffice (man apmd) since apmd will enable apm
(whatever that means) each time it starts up. enabling
both apmd and apm in rc.conf won't hurt, it is just
redundant.

Wayne

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser

2002-12-29 Thread Marcel Stangenberger
 On Sun, Dec 29, 2002 at 08:31:58PM +0100, Alex wrote:
 
  Dear/Beste Cliff,
 
  Sunday, December 29, 2002, 7:53:02 PM, you wrote:
 
   adduser is broken.
   Jeez, people wonder why FreeBSD is not more popular.
 
  FreeBSD is for a number of reasons not popular. One is that people
  like you that produce negative PR without cause.
 
 Negative PR ?
 I do my best to promote it.

so i see

 I tried the simple act of adding a user to my system.
 It failed, repeatingly asking me for a user name I had already given.
 You should not have to have the brain of Einstein in order to put a new
 user on your system.

the really stupid thing is, that when i type adduser on my freebsd machine
and then supply the info it asks for it does work.

Meaning that you might have done something wrong, but instead of supplying
us with the info of what you did and what output you got you start
attacking the popularity of BSD.

 As a matter of fact, immediately after sending that email I started on
 writing a decent mechanism for adding users. If that is negative PR then
 I am sorry. A job that should take a few minutes, didn't.

 When finished I will submit it through the normal channels.

in that case, why are you mailing to this list in the first place?

Marcel


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Working remotely.

2002-12-29 Thread lewiz
Hi,

  This may have come up before but I've not found anything after
searching Google that quite satisfies the question.

  I run my laptop on my network during evenings but during the daytime I
attend college, where I really need to access my documents, mail, etc.
Is there any method of synchronizing the laptop with the server (I have
an NFS exported homedirectory and use NIS/YP for authentication).

  I have considered writing a script that uses rsync to synchronize the
laptop with the server, in so much as maintaining a local copy of the
homedirectory -- I can do this quite effectively using
/etc/start_if.{if}.  However, I have various problems with my Maildir
mailbox (files have letters appended to the filename depending on their
status) that could cause data loss or duplication.
  The second problem is with authentication -- is there any way to cache
usernames/passwords so that I can still log on without an NIS/YP server
being available?  If not, would the best method be to set up a local
server mirroring the NIS/YP database and authenticate against this?

  Basically, I want to be as productive away from my network as I am at
it but there seem to be various things that don't allow this to happen.
Has anybody found good solutions to them?

  I would be eager to hear what anybody has to say on this matter.
Many thanks,

-lewiz.

-- 
You may have heard that a dean is to faculty as a hydrant is to a dog.
-- Alfred Kahn

--|| url: http://lewiz.info/ | http://www.westwood.karoo.net/pgpkey ||--



msg13596/pgp0.pgp
Description: PGP signature


Re: adduser

2002-12-29 Thread Norbert Koch
Cliff Sarginson [EMAIL PROTECTED] writes:

 I tried the simple act of adding a user to my system.
 It failed, repeatingly asking me for a user name I had already given.
 You should not have to have the brain of Einstein in order to put a new
 user on your system.

You misunderstood the first part of adduser which is the configuration
part (done once).  Here's a sample session from my machine:

# adduser
,[ configuration part ]
| /etc/adduser.conf: No such file or directory
| Use option ``-silent'' if you don't want to see all warnings and questions.
| 
| Check /etc/shells
| Check /etc/master.passwd
| Check /etc/group
| Usernames must match regular expression: 
| [^[a-z0-9_][a-z0-9_-]*$]: 
| Enter your default shell: bash csh date no sh tcsh zsh [sh]: bash
| Your default shell is: bash - /usr/local/bin/bash
| Enter your default HOME partition: [/home]: /usr/users
| Copy dotfiles from: /usr/share/skel no [/usr/share/skel]: 
| Send message from file: /etc/adduser.message no 
| [/etc/adduser.message]: 
| Use passwords (y/n) [y]: 
| 
| Write your configuration to /etc/adduser.conf? (y/n) [y]: 
`

Ok, let's go.
Don't worry about mistakes. I will give you the chance later to correct any input.

,[ first entered user ]
| Enter username [^[a-z0-9_][a-z0-9_-]*$]: testuser
| Enter full name []: Test User   
| Enter shell bash csh date no sh tcsh zsh [bash]: 
| Enter home directory (full path) [/usr/users/testuser]: 
| Uid [1000]: 
| Enter login class: default []: 
| Login group testuser [testuser]: 
| Login group is ``testuser''. Invite testuser into other groups: guest no 
| [no]: 
| Enter password []: 
| Enter password again []: 
| 
| Name: testuser
| Password: 
| Fullname: Test User
| Uid:  1000
| Gid:  1000 (testuser)
| Class:
| Groups:   testuser 
| HOME: /usr/users/testuser
| Shell:/usr/local/bin/bash
| OK? (y/n) [y]: 
`


So, you should keep the regexp at the beginning and set up a
adduser.conf according to your needs.  The rest is mainly hitting the
return key.

norbert.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



RE: adduser

2002-12-29 Thread Mike
Hmm adduser works as well as /stand/sysinstall Configure User Management
here. 
BSD UNIX is not less user friendly it's just more picky who it's friends
with. Seems to like allot of us hereg Maybe your in Windows purgatory
or something.

M;)


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Marcel
Stangenberger
Sent: Sunday, December 29, 2002 1:00 PM
To: Cliff Sarginson
Cc: FreeBSD Questions
Subject: Re: adduser


 On Sun, Dec 29, 2002 at 08:31:58PM +0100, Alex wrote:
 
  Dear/Beste Cliff,
 
  Sunday, December 29, 2002, 7:53:02 PM, you wrote:
 
   adduser is broken.
   Jeez, people wonder why FreeBSD is not more popular.
 
  FreeBSD is for a number of reasons not popular. One is that people 
  like you that produce negative PR without cause.
 
 Negative PR ?
 I do my best to promote it.

so i see

 I tried the simple act of adding a user to my system.
 It failed, repeatingly asking me for a user name I had already given. 
 You should not have to have the brain of Einstein in order to put a 
 new user on your system.

the really stupid thing is, that when i type adduser on my freebsd
machine and then supply the info it asks for it does work.

Meaning that you might have done something wrong, but instead of
supplying us with the info of what you did and what output you got you
start attacking the popularity of BSD.

 As a matter of fact, immediately after sending that email I started on

 writing a decent mechanism for adding users. If that is negative PR 
 then I am sorry. A job that should take a few minutes, didn't.

 When finished I will submit it through the normal channels.

in that case, why are you mailing to this list in the first place?

Marcel


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Pw - name too long ??

2002-12-29 Thread Unix Tools
Hi,

In /usr/src/sys/sys/param.h

Adjust MAXLOGNAME to the new value (don't forget the NULL).
That should do it... rebuild the kernel.

Cheers.



- Original Message -
From: Steve Warwick [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, December 29, 2002 02:44 PM
Subject: Pw - name too long ??


 Hi All,

 I am trying to add a user name with the pw command and get the name too
 long error after 15 or 16 characters. However, I also use Webmin which
has
 allowed me to use much longer user names. Is there a switch or setting I
am
 missing?

 Example:
 pw adduser longdomain-henry2 -w random -d /home/longdomain/henry2 -g
 nogroup -s /sbin/nologin -c henry two -h 0

 Suggestions?


 TIA


 Steve


 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser

2002-12-29 Thread Nathan Kinkade
On Sun, Dec 29, 2002 at 09:02:50PM +0100, Norbert Koch wrote:
 Cliff Sarginson [EMAIL PROTECTED] writes:
 
  I tried the simple act of adding a user to my system.
  It failed, repeatingly asking me for a user name I had already given.
  You should not have to have the brain of Einstein in order to put a new
  user on your system.
 
 You misunderstood the first part of adduser which is the configuration
 part (done once).  Here's a sample session from my machine:
 
snip
 
 So, you should keep the regexp at the beginning and set up a
 adduser.conf according to your needs.  The rest is mainly hitting the
 return key.
 
 norbert.

Cliff,

Check out the man page for adduser(8).  If you don't want it to run you
through the setup each time, invoke it as `adduser -silent`.  It will
then simply ask you for the basics.

By the way, although peoples responses may have seemed a little
negative, they were somewhat warranted.  They are right, you complained,
but gave no specific information such that anyone could effectually help
you.  Here's an analogy:  say I'm having a problem with my machine not
booting properly - so I post to freebsd-questions and say, WTF?  I just
installed FreeBSD 4.7 and when my machine boots it doesn't work!
Someone please help me!  Obviously, a post such as this is not only
annoying, but absolutely worthless.  Even a non-computer literate person
would be able to identify that the issue needs more clarification.  This
is what people are pointing out regarding your initial post.  Think
about your problem and then formulate a question to the list in a manner
that will elucidate your problem to people who are, in fact, not sitting 
at your terminal.  For example, you could have posted some snippets from
the command.  You say repeatedly.  Does repeatedly mean 2 times?  5
times?  10 times?  An endless loop?  Was the user eventually added?  Had
you read the man page?  Exactly how did you invoke adduser?

Nathan

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser

2002-12-29 Thread dick hoogendijk
 Negative PR ?

Yes, or at least, you act too fast..

 That does not mean being uncritical.

Than BE critical towards your own attitude.
You can not just begin adding users. You have to set up the config file
first! It's all in the handbook! So, why didn't you read better?

 I tried the simple act of adding a user to my system.

It did. It was acting as if you were setting it up and you didn't
understand it ;-)) Make the config -a one time job- and you have a very
personalized 'adduser'

-- 
dick -- http://www.nagual.st/ -- PGP/GnuPG key: F86289CE
++ Running FreeBSD 4.7 ++ Debian GNU/Linux (Woody)

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser

2002-12-29 Thread Mark
- Original Message -
From: Cliff Sarginson [EMAIL PROTECTED]
To: FreeBSD Questions [EMAIL PROTECTED]
Sent: Sunday, December 29, 2002 7:53 PM
Subject: adduser


 adduser is broken.

Hardly. :) Though I tend to use a wee Perl script of my own, built around
/usr/sbin/pw, adduser is not broken. Usually -- and I learnt this the hard
way myself -- with a thing this basic, your best bet is to assume the error
with yourself, and not with the command at hand.

- Mark


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: No route to host

2002-12-29 Thread Gene Bomgardner
Did that. It really is set to accept all.

On 29 Dec 2002 at 10:52, Sarah Woolley wrote:

 Someone had this problam a few days ago.  It seems that although he
 thought his kernal was set default to accept, it really wasn't.  You may
 want to try ipfw show to check and make sure it really is working that
 way.
 
 Sarah
 
 On Sun, 29 Dec 2002, Gene Bomgardner wrote:
 


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser

2002-12-29 Thread Paul A. Scott

 I tried the simple act of adding a user to my system.

If it's something simple, then any problems have most likely been addressed
already. Simple is a clue that perhaps you're doing something wrong. So,
read the documentation, pull it all apart and put it back together again
before you complain that it's broken.

 


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: No route to host

2002-12-29 Thread Norbert Koch
Gene Bomgardner [EMAIL PROTECTED] writes:

 Did that. It really is set to accept all.

Can you send the output of 'netstat -rn', and perhaps of 'ipfw list'
(just to make sure).

norbert.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser

2002-12-29 Thread Rick Hamell

 Negative PR ?
 I do my best to promote it.
 That does not mean being uncritical.
 I tried the simple act of adding a user to my system.
 It failed, repeatingly asking me for a user name I had already given.

Look it /etc/adduser.conf remove the user name there and leave that line
blank. I've run into the same issue until I realized it was setup so that
you could force user names to have a part in common.

Rick


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: your mail

2002-12-29 Thread lewiz
On Sun, Dec 29, 2002 at 07:10:23PM +0100, Morten olson wrote:
 Hi.. can i update from FreeBSD 4.7-STABLE to FreeBSD 5.0 when its out?

Yes, take a look at the FreeBSD Handbook.  There are details on
upgrading there.

-lewiz.

-- 
There is nothing wrong with Southern California that a rise in the
ocean level wouldn't cure.
-- Ross MacDonald

--|| url: http://lewiz.info/ | http://www.westwood.karoo.net/pgpkey ||--



msg13607/pgp0.pgp
Description: PGP signature


Re: Working remotely.

2002-12-29 Thread richard childers / kg6hac
Lewiz,

Reading your questions, I am left unclear as to whether the NFS, NIS/YP, and
server are at home, or at work.

However, I'll try to answer your questions, based on about 15 years of
administering these sorts of setups.

I have considered writing a script that uses rsync to synchronize the
laptop with the server, in so much as maintaining a local copy of the
homedirectory ...

This is the crux of the matter; you need a local copy.

The question then becomes, which is the master and which is the slave, or
copy? I recommend thinking of your laptop's current contents as the master,
it makes things easier but if your server is providing megastorage for your
MP3 collection, you're going to have to evolve your own, more complex
algorithm for synchronizing specific elements of your home directories on
each system with one another.

Perhaps this is a better approach, anyway; what needs to be synchronized? If
you're using it as a backup mechanism, maybe tar(1)'ing up your home
directory into a timestamped tar(5) file and copying that to the server mkes
more sense, along with a complementing script that deletes all tar(5) files
over N days old, to keep disk usage to a minimum.

The other problem is the relationship between NIS/YP login information and
your local login information. It sort of sounds like this laptop was built
with a built-in NFS/NIS/YP dependency that assumed that you'd be using it on
campus only. Not very well thought out, or tested, IMHO.

I would recommend creating a login which we will call your 'off-campus',
'roving', or 'disconnected' login. This login has a UID and GID of N, and a
home directory of, say, /local/home/roving.

Create a corresponding login which in every way matches the data found by
using the ypcat(1) command (they still have ypcat(1), don't they? It was so
damned useful, except for IT-embarrassing moments like when one's corporate
passwd file ended up on the Internet ... of course, this was before shadow
passwords. But I digress).

Make sure you reference the NFS home directory.

Now, either sync your laptop home directory to a subdirectory of your server
home directory, or vice versa (rsync(1) is fine, tar(1) is good too),
according to disk space and whimsy, and you're done.

If you ever have problems logging in (and YP was notorious for problems, you
need a working ypslave or three on every subnet, and a lot of people balk at
that sort of resource allocation), just use your 'roving' login to access
your local resources while, perhaps, running some sort of script to diagnose
the problem so that you can help your IT department fix it faster.

For instance, ypcat(1) might deliver a truncated map, or no map at all, or
maybe the ypserver's not responding to pings, or ...


Hope this helps !!


-- richard


lewiz wrote:

 Hi,

   This may have come up before but I've not found anything after
 searching Google that quite satisfies the question.

   I run my laptop on my network during evenings but during the daytime I
 attend college, where I really need to access my documents, mail, etc.
 Is there any method of synchronizing the laptop with the server (I have
 an NFS exported homedirectory and use NIS/YP for authentication).

   I have considered writing a script that uses rsync to synchronize the
 laptop with the server, in so much as maintaining a local copy of the
 homedirectory -- I can do this quite effectively using
 /etc/start_if.{if}.  However, I have various problems with my Maildir
 mailbox (files have letters appended to the filename depending on their
 status) that could cause data loss or duplication.
   The second problem is with authentication -- is there any way to cache
 usernames/passwords so that I can still log on without an NIS/YP server
 being available?  If not, would the best method be to set up a local
 server mirroring the NIS/YP database and authenticate against this?

   Basically, I want to be as productive away from my network as I am at
 it but there seem to be various things that don't allow this to happen.
 Has anybody found good solutions to them?

   I would be eager to hear what anybody has to say on this matter.
 Many thanks,

 -lewiz.

 --
 You may have heard that a dean is to faculty as a hydrant is to a dog.
 -- Alfred Kahn
 
 --|| url: http://lewiz.info/ | http://www.westwood.karoo.net/pgpkey ||--

   -
Part 1.2Type: application/pgp-signature


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: No route to host

2002-12-29 Thread Gene Bomgardner


On 29 Dec 2002 at 18:04, Stacey Roberts wrote:

 
 Run an sdiff on both kernels and post the output so that members can
 take a look at the actual differences between the two kernels.

sdiff only reports that the two binary files are different. I don't see 
any options to force a display. Did you mean to run a diff on the 
conf files? If so, they are attached as an rtf file.

Thanks.

God's Blessings,
Gene

To everything there is a season, and a time to every 
purpose under heaven.Ecl 3:1 - 
and more recently, The Byrds


The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any another MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.

    File information ---
 File:  comp.rtf
 Date:  29 Dec 2002, 15:19
 Size:  52412 bytes.
 Type:  MS-Richtext



comp.rtf
Description: RTF file


freebsd-test address

2002-12-29 Thread Stacey Roberts
Hi,
   Quick question on the freebsd-test list that folks are supposed to
use instead of bothering list like this one.

How is it supposed to work, then?

I'm subscribed to freebsd-questions (amongst others), but I've never
actually tried to use the test address until now.

I sent a couple of test messages to [EMAIL PROTECTED] from my two
subscribed e-mail accounts, but what now?

Thanks for the time.

Regards,

Stacey
-- 
Stacey Roberts
B.Sc (HONS) Computer Science

Web: www.vickiandstacey.com



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser

2002-12-29 Thread Brian
One thing worth noting, is that in my experience, it differs from the linux
version.  In Linux you just adduser username, then passwd username and youre
in business.  In Fbsd, the easiest way is to just type adduser without other
args and answer the questions.

Bri

- Original Message -
From: Rick Hamell [EMAIL PROTECTED]
To: Cliff Sarginson [EMAIL PROTECTED]
Cc: FreeBSD Questions [EMAIL PROTECTED]
Sent: Sunday, December 29, 2002 2:12 PM
Subject: Re: adduser



  Negative PR ?
  I do my best to promote it.
  That does not mean being uncritical.
  I tried the simple act of adding a user to my system.
  It failed, repeatingly asking me for a user name I had already given.

 Look it /etc/adduser.conf remove the user name there and leave that line
 blank. I've run into the same issue until I realized it was setup so that
 you could force user names to have a part in common.

 Rick


 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Working remotely.

2002-12-29 Thread Eric De Mund
lewiz,

] This may have come up before but I've not found anything after
] searching Google that quite satisfies the question.
]
] I run my laptop on my network during evenings but during the daytime I
] attend college, where I really need to access my documents, mail, etc.
] Is there any method of synchronizing the laptop with the server (I
] have an NFS exported homedirectory and use NIS/YP for authentication).

Unison might meet some of your needs:

Unison File Synchronizer
http://www.cis.upenn.edu/~bcpierce/unison/

I use it to keep files synchronized between my FreeBSD desktop and my
FreeBSD ISP, between my Slackware laptop and my FreeBSD ISP, and between
my Windows 2000 SP2 desktop and my FreeBSD ISP.

Here's a quick description, taken from the project web page:

   Unison is a file-synchronization tool for Unix and Windows. (It also
   works on OSX to some extent, but it does not yet deal with 'resource
   forks' correctly; more information on OSX usage can be found on the
   unison-users mailing list archives.) It allows two replicas of a
   collection of files and directories to be stored on different hosts
   (or different disks on the same host), modified separately, and then
   brought up to date by propagating the changes in each replica to the
   other.

   Unison shares a number of features with tools such as configuration
   management packages (CVS, PRCS, etc.), distributed filesystems (Coda,
   etc.), uni-directional mirroring utilities (rsync, etc.), and other
   synchronizers (Intellisync, Reconcile, etc). However, there are
   several points where it differs:

   * Unison runs on both Windows (95, 98, NT, and 2k) and Unix (Solaris,
 Linux, etc.) systems. Moreover, Unison works across platforms,
 allowing you to synchronize a Windows laptop with a Unix server,
 for example.

   * Unlike a distributed filesystem, Unison is a user-level program:
 there is no need to hack (or own!) the kernel, or to have superuser
 privileges on either host.

   * Unlike simple mirroring or backup utilities, Unison can deal with
 updates to both replicas of a distributed directory structure. Up-
 dates that do not conflict are propagated automatically. Conflict-
 ing updates are detected and displayed.

   * Unison works between any pair of machines connected to the inter-
 net, communicating over either a direct socket link or tunneling
 over an rsh or an encrypted ssh connection. It is careful with
 network bandwidth, and runs well over slow links such as PPP
 connections. Transfers of small updates to large files are opti-
 mized using a compression protocol similar to rsync.

   * Unison has a clear and precise specification.

   * Unison is resilient to failure. It is careful to leave the replicas
 and its own private structures in a sensible state at all times,
 even in case of abnormal termination or communication failures.

   * Unison is free; full source code is available under the GNU Public
 License.

Regards,
Eric
--
Eric De Mund [EMAIL PROTECTED] | Ixian Systems, Inc. | 53 49 B2 23 AF 6C 20 81
http://www.ixian.com/ead/| Mountain View, CA   | ED DD 4C 81 AA C9 D1 A5

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Can I Mount a Bin/Cue CD Image?

2002-12-29 Thread Drew Tomlinson
I am wondering if it is possible to mount a CD image in the cue/bin format
directly?  I have searched Google and found how to mount an iso.  I have
also come acrosse the binchunker port that will convert cue/bin images to
isos.  Do I have to convert or is there a way?

Thanks,

Drew


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: freebsd-test address

2002-12-29 Thread Nathan Kinkade
On Sun, Dec 29, 2002 at 09:21:16PM +, Stacey Roberts wrote:
 Hi,
Quick question on the freebsd-test list that folks are supposed to
 use instead of bothering list like this one.
 
 How is it supposed to work, then?
 
 I'm subscribed to freebsd-questions (amongst others), but I've never
 actually tried to use the test address until now.
 
 I sent a couple of test messages to [EMAIL PROTECTED] from my two
 subscribed e-mail accounts, but what now?
 
 Thanks for the time.
 
 Regards,
 
 Stacey
 -- 
 Stacey Roberts
 B.Sc (HONS) Computer Science

Stacey,

Subscribe to the freebsd-test in the same way that you would to any of
the other freebsd lists.  You should then receive mail to freebsd-test in
the same manner as you do freebsd-questions.  This may not have been
what you are looking for - it sounds too simple.

Nathan

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: No route to host

2002-12-29 Thread Stacey Roberts
On Sun, 2002-12-29 at 21:20, Gene Bomgardner wrote:
 On 29 Dec 2002 at 18:04, Stacey Roberts wrote:
 
  
  Run an sdiff on both kernels and post the output so that members can
  take a look at the actual differences between the two kernels.
 
 sdiff only reports that the two binary files are different. I don't see 
 any options to force a display. Did you mean to run a diff on the 
 conf files? If so, they are attached as an rtf file.
 
 Thanks.

Hi Gene,
   Sorry, I did mean just diff.

I had a look at the attachment, but could see anything (to my eyes) that
look untoward in there, except the fact that you've got maxusers set
to 0. This value tells the kernel how many new file / processes can be
opened. 

This definitely should be higher, probably somewhere around 132.

What does /var/log/messages  /var/log/security say whenever you try to
access a remote host, or ping the local machine. If it were a firewall
issue the attempts would have been logged there.

Bump maxuers to 132 asap, and try seeing if anything gets logged when
testing later.

Regards,

Stacey

But remem
 
 God's Blessings,
 Gene
 
 To everything there is a season, and a time to every 
 purpose under heaven.Ecl 3:1 - 
 and more recently, The Byrds
 
 
 __
 
 The following section of this message contains a file attachment
 prepared for transmission using the Internet MIME message format.
 If you are using Pegasus Mail, or any another MIME-compliant system,
 you should be able to save it or view it from within your mailer.
 If you cannot, please ask your system administrator for assistance.
 
 File information ---
  File:  comp.rtf
  Date:  29 Dec 2002, 15:19
  Size:  52412 bytes.
  Type:  MS-Richtext
-- 
Stacey Roberts
B.Sc (HONS) Computer Science

Web: www.vickiandstacey.com



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser .. revisited, an apology

2002-12-29 Thread Cliff Sarginson
Ok,
Two things.
One is I should not have mouthed off such a stupid email. I apologise.
Secondly, adduser sucks.
Let's end this thread, blame it on me.

-- 
Regards
   Cliff Sarginson 
   The Netherlands

[ This mail has been checked as virus-free ]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: IMAP Authentication

2002-12-29 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2002-12-28 16:15:37 +0100:
 On Sat, 28 Dec 2002 05:54:50 -0800 Adam Weinberger [EMAIL PROTECTED] wrote:
  I use courier-imapd with SquirrelMail, and it rocks. It doesn't knock
  my socks off when it's using really large directories, though. I save
  every porn spam I get (dunno why... I get about 50/day), and it takes
  my server about a good 5 minutes to parse the directory each time I
  open the folder in mutt. Or squirrelmail.
 
 That seems to be pretty common. Although it has gotten slightly better,
 sylpheed used to take a long time scanning folders with say, 500 or more
 messages in them. 0.8.7+ seem to have gotten a bit better. Surprisingly,
 Mozilla's mail client scans those folders in seconds, too bad I don't
 like the rest of its features.

Ugh. What kind of iron is that, and what version of FreeBSD? What
impact on performance has the IMAP server? IOW, how long does it
take to open such a maildir if you access it directly?

It takes my computer a few seconds to open my biggest mailboxes
(~16,000 messages each, 68 and 54 megs, resp.), and I've been
thinking about going to Maildir because it lasts too long...  Of
course, I don't access my ~/Mail through an IMAP server...

-- 
If you cc me or remove the list(s) completely I'll most likely ignore
your message.see http://www.eyrie.org./~eagle/faqs/questions.html

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: freebsd-test address

2002-12-29 Thread Stacey Roberts
On Sun, 2002-12-29 at 21:38, Nathan Kinkade wrote:
 On Sun, Dec 29, 2002 at 09:21:16PM +, Stacey Roberts wrote:
  Hi,
 Quick question on the freebsd-test list that folks are supposed to
  use instead of bothering list like this one.
  
  How is it supposed to work, then?
  
  I'm subscribed to freebsd-questions (amongst others), but I've never
  actually tried to use the test address until now.
  
  I sent a couple of test messages to [EMAIL PROTECTED] from my two
  subscribed e-mail accounts, but what now?
  
  Thanks for the time.
  
  Regards,
  
  Stacey
  -- 
  Stacey Roberts
  B.Sc (HONS) Computer Science
 
 Stacey,
 
 Subscribe to the freebsd-test in the same way that you would to any of
 the other freebsd lists.  You should then receive mail to freebsd-test in
 the same manner as you do freebsd-questions.  This may not have been
 what you are looking for - it sounds too simple.

Hi Nathan,
   Yeah, this is just what I wanted actually.

I've convinced a friend of mine to give FreeBSD a try (after years of
toil on $olaris). Before trying to subscribe, though I wanted to advise
him to try testing his mail setup with the test mail address, but
figured I'd check it out myself first before.

Thanks for taking the time.

Regards,

Stacey

 
 Nathan
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
-- 
Stacey Roberts
B.Sc (HONS) Computer Science

Web: www.vickiandstacey.com



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Working remotely.

2002-12-29 Thread lewiz
On Sun, Dec 29, 2002 at 01:26:41PM -0800, Eric De Mund wrote:
 lewiz,
 
 ] This may have come up before but I've not found anything after
 ] searching Google that quite satisfies the question.
 ]
 ] I run my laptop on my network during evenings but during the daytime I
 ] attend college, where I really need to access my documents, mail, etc.
 ] Is there any method of synchronizing the laptop with the server (I
 ] have an NFS exported homedirectory and use NIS/YP for authentication).
 
 Unison might meet some of your needs:

Having read your description and some of the FAQs and a bit of the
documentation on the website I am most impressed.  This sounds like
exactly what I was looking for.  I am even happier to find it in the
ports and I'm getting it installed now.

  Many thanks for this piece of advice :)

-lewiz.

-- 
Justice always prevails ... three times out of seven!
-- Michael J. Wagner

--|| url: http://lewiz.info/ | http://www.westwood.karoo.net/pgpkey ||--



msg13620/pgp0.pgp
Description: PGP signature


Re: No route to host

2002-12-29 Thread Stacey Roberts
Hi Gene,
   From what I've just been reading here, maxusers after about FreeBSD
4.5 can be safely left at 0 (as long as there is  64MB RAM), which
replaces the previous default of 32.

Could you post /etc/hosts  the output from netstat -rn as well
please?

Cheers,

Stacey

-- 
Stacey Roberts
B.Sc (HONS) Computer Science

Web: www.vickiandstacey.com



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Working remotely.

2002-12-29 Thread lewiz
On Sun, Dec 29, 2002 at 01:19:03PM -0800, richard childers / kg6hac wrote:
 Reading your questions, I am left unclear as to whether the NFS, NIS/YP, and
 server are at home, or at work.

Sorry, I have the NFS, NIS/YP stuff at home.

 The question then becomes, which is the master and which is the slave, or
 copy? I recommend thinking of your laptop's current contents as the master,
 it makes things easier but if your server is providing megastorage for your
 MP3 collection, you're going to have to evolve your own, more complex
 algorithm for synchronizing specific elements of your home directories on
 each system with one another.

While, yes, as everybody I think these days, I have my music/video
collection, I was planning on leaving that where it was :)  However, I
already had some rsync stuff going to work around the fact that I don't
want/need all my mail for the past n years -- I have a current mail (3
months at the most) that I would be taking with me, I've accounted for
this, as suggested.

 Perhaps this is a better approach, anyway; what needs to be synchronized? If
 you're using it as a backup mechanism, maybe tar(1)'ing up your home
 directory into a timestamped tar(5) file and copying that to the server mkes
 more sense, along with a complementing script that deletes all tar(5) files
 over N days old, to keep disk usage to a minimum.

I'm not so keen on this method.  I would much prefer a synchronization
idea, not a backup.  Firstly, it's much quicker for me to pick up and go
in the morning, and to get everything in synch when I get back.  Also,
this could cause problems if I were to log on to my workstation at home
before connecting the laptop, etc.

 The other problem is the relationship between NIS/YP login information and
 your local login information. It sort of sounds like this laptop was built
 with a built-in NFS/NIS/YP dependency that assumed that you'd be using it on
 campus only. Not very well thought out, or tested, IMHO.

Hehe, my bad.  Yeah, that's how it's all done though -- I've only just
got a hold of this laptop so until now I've not had need for it ;)

 I would recommend creating a login which we will call your 'off-campus',
 'roving', or 'disconnected' login. This login has a UID and GID of N, and a
 home directory of, say, /local/home/roving.

To begin with when I read this I thought you must have been smoking
something.  I was wondering how on earth I would bridge the gap between
two different UID/GIDs, until I figured out what you meant by ``N''.
This is a truly superb idea, that I would not have thought of.  UNIX is
truly about simplicity :)  I shall get this implemented right away.  My
only consideration here is which goes first in the passwd file -- the
roving user or the NIS/YP hash thingy?  I'll play around with this and
figure it out.

  Many thanks for your response.  It's already been very useful and I've
not got around to implementing some of it yet ;)  What I think I'll be
doing is using the ``Unison'' utily suggested by Eric De Mund to
synchronize the two logins in conjunction with the secondary username
you suggested.  Thanks again, I'll follow up with how I got on.

-lewiz.

-- 
If you have a procedure with 10 parameters, you probably missed some.

--|| url: http://lewiz.info/ | http://www.westwood.karoo.net/pgpkey ||--



msg13622/pgp0.pgp
Description: PGP signature


IBM ThinkPad 765

2002-12-29 Thread Mike
Are there any issues installing FreeBSD on a ThinkPad 765? In my Google
searches I have turned up little to no info on this model. 

Thanks

M;)


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Bystander shot by a spam filter.

2002-12-29 Thread Brett Glass
At 06:13 PM 12/28/2002, Harry Tabak wrote:

I've been in contact with the port maintainer.  His position: 1) This problem is out 
of scope for him, 2) He is away on holiday and can't easily access the FreeBSD 
cluster, 3) Other pressures will keep him from this problem for several weeks. He 
advised me to contact me Miss Hampton.  I can't fault him.

Contacting Ms. Hampton is probably the right thing to do. However,
he can help by changing the procmail.rc file, which controls which 
blacklists the recipes will consult. Many FreeBSD ports come with
customized configurations, so this is by no means outside his scope
as a port maintainer.

--Brett Glass


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



YP/NIS timeout.

2002-12-29 Thread lewiz
Hi,

  I'm wondering if there is any way to stop my system completely falling
over when my YP/NIS server is no longer available?  I am unable to
login, even with my root account.  I have a local user that I would like
to use (when the YP/NIS server is unavailable) but this seems
impossible.  Any ideas on this matter?

-lewiz.

-- 
The reason we come up with new versions is not to fix bugs.  It's
absolutely not.
-- Bill Gates

--|| url: http://lewiz.info/ | http://www.westwood.karoo.net/pgpkey ||--



msg13625/pgp0.pgp
Description: PGP signature


Re: IBM ThinkPad 765

2002-12-29 Thread John Bleichert
On Sun, 29 Dec 2002, Mike wrote:
 Date: Sun, 29 Dec 2002 16:05:58 -0700
 From: Mike [EMAIL PROTECTED]
 To: 'FreeBSD Questions' [EMAIL PROTECTED]
 Subject: IBM ThinkPad 765
 
 Are there any issues installing FreeBSD on a ThinkPad 765? In my Google
 searches I have turned up little to no info on this model. 
 
 Thanks
 
 M;)
 

How much memory and disk? This is one of the older 16 MB models isn't it? 
I think sysinstall requires 32 MB to run. I've installed a few Thinkpads, 
but these older models can be tough.

Pls. provide the specs, and consider searching the freebsd-mobile archives 
and/or posting there.

Good luck - JB


#  John Bleichert 
#  http://vonbek.dhs.org/latest.jpg


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Working remotely.

2002-12-29 Thread richard childers / kg6hac
Lewiz notes:

 I would recommend creating a login which we will call your 'off-campus',
 'roving', or 'disconnected' login. This login has a UID and GID of N, and a
 home directory of, say, /local/home/roving.

To begin with when I read this I thought you must have been smoking
something.  I was wondering how on earth I would bridge the gap between
two different UID/GIDs, until I figured out what you meant by ``N''.
This is a truly superb idea, that I would not have thought of.  UNIX is
truly about simplicity :)  I shall get this implemented right away.  My
only consideration here is which goes first in the passwd file -- the
roving user or the NIS/YP hash thingy?  I'll play around with this and
figure it out.

I was actually less than clear about this, in my reply; rereading it, I saw that I
had neglected to bridge the gap between the two UIDs, and hoped you would read
between the lines and infer the answer from the clues I had provided. You did a
great job. Sometimes I think this is the best way to teach; to lead someone close
enough so that they can get that 'Aha!' rush, directly for themselves.  (-;

Either of the users can go first; they must have different login names (the key
used to look up the corresponding userid) and can reference different home
directories, but either login should be able to read and write to the local (and
remote) account, as a consequence of their sharing userids and group ids.

Alternatively, another way to approach it might be to create a pseudo-entry, as
described previously, where your NIS data is encapsulated as a line in the local
/etc/passwd file(s), and then put the two userids into a common, locally defined
group; that plus appropriate group read-write-execute-search permissions would
also allow them, again, to seamlessly share data.

When using YP back in 1986, one of my problems was engineers getting tired of YP
server timeouts and map failures, using their root passwords to create local
entries, and then getting frustrated when they changed their YP passwords, a few
weeks later, and were unable to login as a result of local entries having
precedence over remote entries. What was a hassle, then, can be, under certain
circumstances, a valuable feature.

(And a shout out to ~timzim and his gang of elves, at NET, in 1986. :-)

-- richard


lewiz wrote:

 On Sun, Dec 29, 2002 at 01:19:03PM -0800, richard childers / kg6hac wrote:
  Reading your questions, I am left unclear as to whether the NFS, NIS/YP, and
  server are at home, or at work.

 Sorry, I have the NFS, NIS/YP stuff at home.

  The question then becomes, which is the master and which is the slave, or
  copy? I recommend thinking of your laptop's current contents as the master,
  it makes things easier but if your server is providing megastorage for your
  MP3 collection, you're going to have to evolve your own, more complex
  algorithm for synchronizing specific elements of your home directories on
  each system with one another.

 While, yes, as everybody I think these days, I have my music/video
 collection, I was planning on leaving that where it was :)  However, I
 already had some rsync stuff going to work around the fact that I don't
 want/need all my mail for the past n years -- I have a current mail (3
 months at the most) that I would be taking with me, I've accounted for
 this, as suggested.

  Perhaps this is a better approach, anyway; what needs to be synchronized? If
  you're using it as a backup mechanism, maybe tar(1)'ing up your home
  directory into a timestamped tar(5) file and copying that to the server mkes
  more sense, along with a complementing script that deletes all tar(5) files
  over N days old, to keep disk usage to a minimum.

 I'm not so keen on this method.  I would much prefer a synchronization
 idea, not a backup.  Firstly, it's much quicker for me to pick up and go
 in the morning, and to get everything in synch when I get back.  Also,
 this could cause problems if I were to log on to my workstation at home
 before connecting the laptop, etc.

  The other problem is the relationship between NIS/YP login information and
  your local login information. It sort of sounds like this laptop was built
  with a built-in NFS/NIS/YP dependency that assumed that you'd be using it on
  campus only. Not very well thought out, or tested, IMHO.

 Hehe, my bad.  Yeah, that's how it's all done though -- I've only just
 got a hold of this laptop so until now I've not had need for it ;)

  I would recommend creating a login which we will call your 'off-campus',
  'roving', or 'disconnected' login. This login has a UID and GID of N, and a
  home directory of, say, /local/home/roving.

 To begin with when I read this I thought you must have been smoking
 something.  I was wondering how on earth I would bridge the gap between
 two different UID/GIDs, until I figured out what you meant by ``N''.
 This is a truly superb idea, that I would not have thought of.  UNIX is
 truly about simplicity :)  I 

Re[2]: adduser .. revisited, an apology

2002-12-29 Thread Alex

Dear/Beste Cliff,

Sunday, December 29, 2002, 10:40:46 PM, you wrote:

 Ok,
 Two things.
 One is I should not have mouthed off such a stupid email. I apologise.

It happens to the best of us.

 Secondly, adduser sucks.

That's your opinion and that's ok. I for one think that it is great.

 Let's end this thread, blame it on me.

ok

-- 
Best regards/Met vriendelijke groet,
Alex


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: No route to host

2002-12-29 Thread Gene Bomgardner
Below is the output of ipfw show and netstat -rn
-

 ipfw list
65535 allow ip from any to any


netstat -nr
Routing tables

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default192.168.123.8  UGSc10  ed1
127.0.0.1  127.0.0.1UH00  lo0
192.168.123link#6   UC   20 ed1
192.168.123.1  00:50:ba:c1:a0:4f  UHLW00ed1
977
192.168.123.8  link#6 UHLW20ed1

Internet6:
Destination   Gateway   Flags  Netif 
Expire
::1  ::1UH 
: lo0
fe80::%lo0/64 fe80::1%lo0Uc  lo0
fe80::1%lo0link#2 UHLlo0
fe80::%ed1/64link#6 UC  ed1
fe80::204:acff:fe90:528e%ed1  00:04:ac:90:52:8e UHL 
lo0
ff01::/32   ::1  U
lo0
ff02::%lo0/32   ::1  UC  lo0
ff02::%ed1/32 link#6 UC  ed1


God's Blessings,
Gene

To everything there is a season, and a time to every 
purpose under heaven.Ecl 3:1 - 
and more recently, The Byrds


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



2 networks, six NICs, 3 Servers, 1 switch.

2002-12-29 Thread Grant Peel
Hi all,

I am about to move our 2 servers, and add a third, to a new colo.

On each of the three servers there will be two NICs.

1 NIC on each box is to be dedicated to the internet.

1 1 NIC in each box is to be dedicated to local. (192.168.0.1-3).

Can I plug all three NIC s into one switch (the switch will also be
connectoed to our providered swtch, for Inet connection) and expect both
networks to work OK?

-Grant

Grant W. Peel
Server Admin
[EMAIL PROTECTED]
http://thenetnow.com


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



RE: 2 networks, six NICs, 3 Servers, 1 switch.

2002-12-29 Thread Mike
It can work this way, but why do three servers need Internet connection?
One can be a firewall the other two behind it serving up the data to
local and Internet users on two local networks. Of course this might be
for some kind of backup Internet connection or something but you will
have to help us out on that.
Sounds fun either way..

M;)

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Grant Peel
Sent: Sunday, December 29, 2002 5:27 PM
To: [EMAIL PROTECTED]
Subject: 2 networks, six NICs, 3 Servers, 1 switch.


Hi all,

I am about to move our 2 servers, and add a third, to a new colo.

On each of the three servers there will be two NICs.

1 NIC on each box is to be dedicated to the internet.

1 1 NIC in each box is to be dedicated to local. (192.168.0.1-3).

Can I plug all three NIC s into one switch (the switch will also be
connectoed to our providered swtch, for Inet connection) and expect both
networks to work OK?

-Grant

Grant W. Peel
Server Admin
[EMAIL PROTECTED]
http://thenetnow.com


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: No route to host

2002-12-29 Thread Stacey Roberts
Hi Gene,
   Thanks for that information.

Now, could you try pinging a remote host and 192.168.123.8, then check
/var/log/messages  /var/log/security to see if anything is recorded
there, please? You should post any output from both files here.

At the same time, post what is actually returned on screen as well.

Regards,

Stacey

On Mon, 2002-12-30 at 00:18, Gene Bomgardner wrote:
 Below is the output of ipfw show and netstat -rn
 -
 
  ipfw list
 65535 allow ip from any to any
 
 
 netstat -nr
 Routing tables
 
 Internet:
 DestinationGatewayFlagsRefs  Use  Netif Expire
 default192.168.123.8  UGSc10  ed1
 127.0.0.1  127.0.0.1UH00  lo0
 192.168.123link#6   UC   20 ed1
 192.168.123.1  00:50:ba:c1:a0:4f  UHLW00ed1
 977
 192.168.123.8  link#6 UHLW20ed1
 
 Internet6:
 Destination   Gateway   Flags  Netif 
 Expire
 ::1  ::1UH   
   lo0
 fe80::%lo0/64 fe80::1%lo0Uc  lo0
 fe80::1%lo0link#2 UHLlo0
 fe80::%ed1/64link#6 UC  ed1
 fe80::204:acff:fe90:528e%ed1  00:04:ac:90:52:8e UHL 
 lo0
 ff01::/32   ::1  U   
 lo0
 ff02::%lo0/32   ::1  UC  lo0
 ff02::%ed1/32 link#6 UC  ed1
 
 
 God's Blessings,
 Gene
 
 To everything there is a season, and a time to every 
 purpose under heaven.Ecl 3:1 - 
 and more recently, The Byrds
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
-- 
Stacey Roberts
B.Sc (HONS) Computer Science

Web: www.vickiandstacey.com



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Working remotely.

2002-12-29 Thread Eric De Mund
lewiz,

]  ] Is there any method of synchronizing the laptop with the server?
]  
]  Unison might meet some of your needs:
] 
] This sounds like exactly what I was looking for. I am even happier to
] find it in the ports and I'm getting it installed now.
] 
] Many thanks for this piece of advice :)

You're very welcome. Note that, should you need or want to build Unison
from its Objective Caml source yourself, I've found that the Objective
Caml compiler builds out of the box under FreeBSD 4.{6.2,7}-RELEASE.

Use it in good health,
Eric
--
Eric De Mund [EMAIL PROTECTED] | Ixian Systems, Inc. | 53 49 B2 23 AF 6C 20 81
http://www.ixian.com/ead/| Mountain View, CA   | ED DD 4C 81 AA C9 D1 A5

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: What are the SMTP rules for sending mail to FreeBSD

2002-12-29 Thread Greg 'groggy' Lehey
On Sunday, 29 December 2002 at 18:46:12 +0100, Roman Neuhauser wrote:
 # [EMAIL PROTECTED] / 2002-12-29 10:55:11 +1030:

 ...

 For more information, take a look at the following, which is a message
 I send to systems which appear to be bona fide attempts from broken
 reverse addresses.  Looking at the name of the sender, I'm sure this
 one is not bona fide, and I didn't really send the message.  Most of
 my double bounces come from spammers.

 do you have that script publically available? I'd like to use
 that, too.

Yes, it's at http://www.lemis.com/B.  

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



nmbd core dumps

2002-12-29 Thread Rusty Nejdl
Ok, I'm completely stuck with this one.  I am trying to get Samba
running on my FreeBSD 4.7 - Release computer.  Everytime I try to run
any version of nmbd, it core dumps.  The config doesn't matter.  Now,
of note is the fact that I did get Sambda running properly on this
computer when I first installed it, but in the process of building the
computer (installing more packages, configuring, and rebuilding a
kernel) samba broke.

So, in knowing that, I used another computer to try to cause samba to
break in the same way and I can't do it.  I installed all the same
ports and rebuilt the kernel and nmbd still ran.  The only big
difference was that I didn't get all of the processes configured and
running.

Here's /var/log/log.nmbd using a debug level of 3:
[2002/12/29 19:26:45, 0] nmbd/nmbd.c:main(794)
  Netbios nameserver version 2.2.6pre2 started.
  Copyright Andrew Tridgell and the Samba Team 1994-2002
[2002/12/29 19:26:45, 3] param/loadparm.c:init_globals(1261)
  Initialising global parameters
[2002/12/29 19:26:45, 3] param/params.c:pm_process(577)
  params.c:pm_process() - Processing configuration file
/usr/local/etc/smb.conf
[2002/12/29 19:26:45, 3] param/loadparm.c:do_section(3024)
  Processing section [global]
[2002/12/29 19:26:45, 0] param/loadparm.c:map_parameter(2065)
  Unknown parameter encountered: socket option SO_KEEPALIVE
[2002/12/29 19:26:45, 0] param/loadparm.c:lp_do_parameter(2740)
  Ignoring unknown parameter socket option SO_KEEPALIVE
[2002/12/29 19:26:45, 0] param/loadparm.c:map_parameter(2065)
  Unknown parameter encountered: socket option SO_REUSEADDR
[2002/12/29 19:26:45, 0] param/loadparm.c:lp_do_parameter(2740)
  Ignoring unknown parameter socket option SO_REUSEADDR
[2002/12/29 19:26:45, 0] param/loadparm.c:map_parameter(2065)
  Unknown parameter encountered: socket option SO_BROADCAST
[2002/12/29 19:26:45, 0] param/loadparm.c:lp_do_parameter(2740)
  Ignoring unknown parameter socket option SO_BROADCAST
[2002/12/29 19:26:45, 0] param/loadparm.c:map_parameter(2065)
  Unknown parameter encountered: socket option TCP_NODELAY
[2002/12/29 19:26:45, 0] param/loadparm.c:lp_do_parameter(2740)
  Ignoring unknown parameter socket option TCP_NODELAY
[2002/12/29 19:26:45, 0] param/loadparm.c:map_parameter(2065)
  Unknown parameter encountered: socket option IPTOS_LOWDELAY
[2002/12/29 19:26:45, 0] param/loadparm.c:lp_do_parameter(2740)
  Ignoring unknown parameter socket option IPTOS_LOWDELAY
[2002/12/29 19:26:45, 0] param/loadparm.c:map_parameter(2065)
  Unknown parameter encountered: socket option IPTOS_THROUGHPUT
[2002/12/29 19:26:45, 0] param/loadparm.c:lp_do_parameter(2740)
  Ignoring unknown parameter socket option IPTOS_THROUGHPUT
[2002/12/29 19:26:45, 0] param/loadparm.c:map_parameter(2065)
  Unknown parameter encountered: socket option SO_SNDBUF
[2002/12/29 19:26:45, 0] param/loadparm.c:lp_do_parameter(2740)
  Ignoring unknown parameter socket option SO_SNDBUF
[2002/12/29 19:26:45, 0] param/loadparm.c:map_parameter(2065)
  Unknown parameter encountered: socket option SO_RCVBUF
[2002/12/29 19:26:45, 0] param/loadparm.c:lp_do_parameter(2740)
  Ignoring unknown parameter socket option SO_RCVBUF
[2002/12/29 19:26:45, 0] param/loadparm.c:map_parameter(2065)
  Unknown parameter encountered: socket option SO_SNDLOWAT
[2002/12/29 19:26:45, 0] param/loadparm.c:lp_do_parameter(2740)
  Ignoring unknown parameter socket option SO_SNDLOWAT
[2002/12/29 19:26:45, 0] param/loadparm.c:map_parameter(2065)
  Unknown parameter encountered: socket option SO_RCVLOWAT
[2002/12/29 19:26:45, 0] param/loadparm.c:lp_do_parameter(2740)
  Ignoring unknown parameter socket option SO_RCVLOWAT
[2002/12/29 19:26:45, 0] param/loadparm.c:map_parameter(2065)
  Unknown parameter encountered: socket option SO_SNDTIMEO
[2002/12/29 19:26:45, 0] param/loadparm.c:lp_do_parameter(2740)
  Ignoring unknown parameter socket option SO_SNDTIMEO
[2002/12/29 19:26:45, 0] param/loadparm.c:map_parameter(2065)
  Unknown parameter encountered: socket option SO_RCVTIMEO
[2002/12/29 19:26:45, 0] param/loadparm.c:lp_do_parameter(2740)
  Ignoring unknown parameter socket option SO_RCVTIMEO
[2002/12/29 19:26:45, 3] nmbd/nmbd.c:reload_nmbd_services(292)
  services not loaded
[2002/12/29 19:26:45, 2] nmbd/nmbd.c:main(832)
  Becoming a daemon.
[2002/12/29 19:26:45, 3] nmbd/nmbd.c:main(861)
  Opening sockets 137
[2002/12/29 19:26:45, 3] lib/util_sock.c:open_socket_in(813)
  bind succeeded on port 137
[2002/12/29 19:26:45, 3] lib/util_sock.c:open_socket_in(804)
[2002/12/29 19:26:45, 0] lib/util_sock.c:set_socket_options(165)
  Failed to set socket option SO_BROADCAST (Error Bad file descriptor)
[2002/12/29 19:26:45, 3] nmbd/nmbd.c:open_sockets(550)
  open_sockets: Broadcast sockets opened.
[2002/12/29 19:26:45, 2] lib/interface.c:add_interface(81)
  added interface ip=66.13.175.242 bcast=66.13.175.247
nmask=255.255.255.248
[2002/12/29 19:26:45, 3] lib/util_sock.c:open_socket_in(813)
  bind succeeded on port 137
[2002/12/29 19:26:45, 3] 

Re: nmbd core dumps

2002-12-29 Thread Stacey Roberts
On Mon, 2002-12-30 at 01:32, Rusty Nejdl wrote:
 Ok, I'm completely stuck with this one.  I am trying to get Samba
 running on my FreeBSD 4.7 - Release computer.  Everytime I try to run
 any version of nmbd, it core dumps.  The config doesn't matter.  Now,
 of note is the fact that I did get Sambda running properly on this
 computer when I first installed it, but in the process of building the
 computer (installing more packages, configuring, and rebuilding a
 kernel) samba broke.
 
 So, in knowing that, I used another computer to try to cause samba to
 break in the same way and I can't do it.  I installed all the same
 ports and rebuilt the kernel and nmbd still ran.  The only big
 difference was that I didn't get all of the processes configured and
 running.
 
 Here's /var/log/log.nmbd using a debug level of 3:
 [2002/12/29 19:26:45, 0] nmbd/nmbd.c:main(794)
   Netbios nameserver version 2.2.6pre2 started.
   Copyright Andrew Tridgell and the Samba Team 1994-2002
 [2002/12/29 19:26:45, 3] param/loadparm.c:init_globals(1261)
   Initialising global parameters
 [2002/12/29 19:26:45, 3] param/params.c:pm_process(577)
   params.c:pm_process() - Processing configuration file
 /usr/local/etc/smb.conf

Huge snip

 
 I recompiled libc.so.4 as a result of the above error and tried again.
  No change. However, since I'm installing samba from a package, it
 shouldn't matter.  In addition, I have tried compiling from source
 different versions of samba and they all fail the same way.
 
 I haven't found this posted anywhere else so I'm completely stumped. 
 Any ideas or help would be appreciated.
 
 Sincerely,
 Rusty Nejdl

Hi,
  Out of curiosity, is there a reason why you're not running the latest
version of samba? Or has 2.2.7_b already failed before this one?

If the other box still has nmbd up and running fine, then I'd suggest
you load more and more services (that are on the failing box) until nmbd
cores.

I'm no hacker, hence my avoidance of the core dump file :-)

Regards,

Stacey
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
-- 
Stacey Roberts
B.Sc (HONS) Computer Science

Web: www.vickiandstacey.com



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: nmbd core dumps

2002-12-29 Thread Jack L. Stone
At 01:39 AM 12.30.2002 +, Stacey Roberts wrote:
On Mon, 2002-12-30 at 01:32, Rusty Nejdl wrote:
 Ok, I'm completely stuck with this one.  I am trying to get Samba
 running on my FreeBSD 4.7 - Release computer.  Everytime I try to run
 any version of nmbd, it core dumps.  The config doesn't matter.  Now,
 of note is the fact that I did get Sambda running properly on this
 computer when I first installed it, but in the process of building the
 computer (installing more packages, configuring, and rebuilding a
 kernel) samba broke.
 
 So, in knowing that, I used another computer to try to cause samba to
 break in the same way and I can't do it.  I installed all the same
 ports and rebuilt the kernel and nmbd still ran.  The only big
 difference was that I didn't get all of the processes configured and
 running.
 
 Here's /var/log/log.nmbd using a debug level of 3:
 [2002/12/29 19:26:45, 0] nmbd/nmbd.c:main(794)
   Netbios nameserver version 2.2.6pre2 started.
   Copyright Andrew Tridgell and the Samba Team 1994-2002
 [2002/12/29 19:26:45, 3] param/loadparm.c:init_globals(1261)
   Initialising global parameters
 [2002/12/29 19:26:45, 3] param/params.c:pm_process(577)
   params.c:pm_process() - Processing configuration file
 /usr/local/etc/smb.conf

Huge snip

 
 I recompiled libc.so.4 as a result of the above error and tried again.
  No change. However, since I'm installing samba from a package, it
 shouldn't matter.  In addition, I have tried compiling from source
 different versions of samba and they all fail the same way.
 
 I haven't found this posted anywhere else so I'm completely stumped. 
 Any ideas or help would be appreciated.
 
 Sincerely,
 Rusty Nejdl

Hi,
  Out of curiosity, is there a reason why you're not running the latest
version of samba? Or has 2.2.7_b already failed before this one?

If the other box still has nmbd up and running fine, then I'd suggest
you load more and more services (that are on the failing box) until nmbd
cores.

I'm no hacker, hence my avoidance of the core dump file :-)

Regards,

Stacey
 

Some months ago, I was having frequent core dumps for nmbd and an upgrade
of Samba cured it for me. Suggest the latest portupgrade

Best regards,
Jack L. Stone,
Administrator

SageOne Net
http://www.sage-one.net
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Linux opera vs plugger?

2002-12-29 Thread Stacey Roberts
Hello,
 I've just installed plugger for opera, and the installation appears
to have gone smoothly (if rather long!).

I'm trying to follow the installation steps at the opera website and I'm
stumped at this step:

3] Make sure Opera finds the plug-in by adding
/usr/local/lib/netscape/plugins/ to OPERA_PLUGIN_PATH or copy the
plug-in to Opera plug-in directory: cp /usr/local/lib/netscape/
plugins/plugger.so /usr/lib/opera/plugins

To cut to the chase, I can't seem to find this plugger.so anywhere.

I checked in /usr/local/lib/netscape-linux/plugins:
# ls -la /usr/local/lib/netscape-linux/plugins/
total 2
drwxr-xr-x  2 root  wheel  512 Sep 16 20:13 .
drwxr-xr-x  3 root  wheel  512 Sep 16 20:13 ..
lrwxr-xr-x  1 root  wheel   41 Sep 16 20:13 ShockwaveFlash.class -
/usr/local/lib/flash/ShockwaveFlash.class
lrwxr-xr-x  1 root  wheel   38 Sep 16 20:13 libflashplayer.so -
/usr/local/lib/flash/libflashplayer.so
# 

Its not there. running a find from /usr/local doesn't locate it:
# pwd
/usr/local
# find . -name plugger.so
# 

Has anyone gotten plugger installed and configured with £inux Opera?
Please get back to me if there's some step I neglected to do.

Thanks for the time.

Stacey
-- 
Stacey Roberts
B.Sc (HONS) Computer Science

Web: www.vickiandstacey.com



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: No route to host

2002-12-29 Thread Gene Bomgardner


On 30 Dec 2002 at 0:44, Stacey Roberts wrote:

 Hi Gene,
Thanks for that information.
 

Found it.

From the block of ipfw definitions, under ipfilter,

options IPFILTER_DEFAULT_BLOCK  #block all packets by

Commented it out, recompiled and voila. 

thanks for the help.
 Now, care to take a shot at this one:
Same machine, when I telnet to it (ie. telnet guardian1), regardless 
of kernel, I get the following:
-
td: send do AUTHENTICATION
td: ttloop
td: ttloop read 21 chars
td: recv will NAWS
td: send do NAWS
td: recv will TSPEED
td: send do TSPEED
td: recv will TERMINAL TYPE
td: send do TERMINAL TYPE
td: recv will NEW-ENVIRON
td: send do NEW-ENVIRON
td: recv do ECHO
td: send will ECHO
td: recv will SUPPRESS GO AHEAD
td: send do SUPPRESS GO AHEAD
td: recv do SUPPRESS GO AHEAD
td: send will SUPPRESS GO AHEAD
td: ttloop
td: ttloop read 3 chars
td: recv wont AUTHENTICATION
td: send will ENCRYPT
td: send do XDISPLOC
td: send do OLD-ENVIRON
td: ttloop
td: ttloop read 9 chars
td: recv suboption NAWS 0 80 (80) 0 24 (24)
td: ttloop
td: ttloop read 9 chars
td: recv dont ENCRYPT
td: recv wont XDISPLOC
td: recv wont OLD-ENVIRON
td: send suboption TERMINAL-SPEED SEND
td: send suboption NEW-ENVIRON SEND
td: send suboption TERMINAL-TYPE SEND
td: ttloop
td: ttloop read 34 chars
td: recv suboption TERMINAL-SPEED IS 38400,38400
td: recv suboption NEW-ENVIRON IS
td: recv suboption TERMINAL-TYPE IS XTERM
td: send do ECHO
td: send do LINEMODE
td: send will STATUS
td: send do LFLOW
td: ttloop
td: ttloop read 12 chars
td: recv wont ECHO
td: recv wont LINEMODE
td: recv dont STATUS
td: recv wont LFLOW
td: Entering processing loop

FreeBSD/i386 (guardian1.ath.cx) (ttyp0)

login: 
--
Then I type a character and get:

 td: netread 9 chars
td: recv suboption NAWS 0 97 (97) 0 47 (47)

ssh works like charm.
Looks like some sort of debugging is running.
Any idas?

Thanks again.

God's Blessings,
Gene

To everything there is a season, and a time to every 
purpose under heaven.Ecl 3:1 - 
and more recently, The Byrds


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: nmbd core dumps

2002-12-29 Thread Rusty Nejdl
I've tried the following versions of samba:

samba-2.2.4_1.tgz
samba-2.2.6.p2_1.tgz
samba-2.2.7a.tar.gz
samba-2.2.7a.tbz
samba-3.0a19.tgz
samba-3.0a20.tbz

All produce the same results.  I'm looking to see if there's just something I
changed on the way to installing my box that would cause this.  I'm not sure if
this the key to it or not:

[2002/12/29 19:30:01, 0] lib/util_sock.c:set_socket_options(165)
  Failed to set socket option SO_BROADCAST (Error Bad file descriptor)

Ideas?

Thanks!
Rusty Nejdl

Jack L. Stone(jackstone) wrote:
 At 01:39 AM 12.30.2002 +, Stacey Roberts wrote:
 On Mon, 2002-12-30 at 01:32, Rusty Nejdl wrote:
  Ok, I'm completely stuck with this one.  I am trying to get Samba
  running on my FreeBSD 4.7 - Release computer.  Everytime I try to run
  any version of nmbd, it core dumps.  The config doesn't matter.  Now,
  of note is the fact that I did get Sambda running properly on this
  computer when I first installed it, but in the process of building the
  computer (installing more packages, configuring, and rebuilding a
  kernel) samba broke.
  
  So, in knowing that, I used another computer to try to cause samba to
  break in the same way and I can't do it.  I installed all the same
  ports and rebuilt the kernel and nmbd still ran.  The only big
  difference was that I didn't get all of the processes configured and
  running.
  
  Here's /var/log/log.nmbd using a debug level of 3:
  [2002/12/29 19:26:45, 0] nmbd/nmbd.c:main(794)
Netbios nameserver version 2.2.6pre2 started.
Copyright Andrew Tridgell and the Samba Team 1994-2002
  [2002/12/29 19:26:45, 3] param/loadparm.c:init_globals(1261)
Initialising global parameters
  [2002/12/29 19:26:45, 3] param/params.c:pm_process(577)
params.c:pm_process() - Processing configuration file
  /usr/local/etc/smb.conf
 
 Huge snip
 
  
  I recompiled libc.so.4 as a result of the above error and tried again.
   No change. However, since I'm installing samba from a package, it
  shouldn't matter.  In addition, I have tried compiling from source
  different versions of samba and they all fail the same way.
  
  I haven't found this posted anywhere else so I'm completely stumped. 
  Any ideas or help would be appreciated.
  
  Sincerely,
  Rusty Nejdl
 
 Hi,
   Out of curiosity, is there a reason why you're not running the latest
 version of samba? Or has 2.2.7_b already failed before this one?
 
 If the other box still has nmbd up and running fine, then I'd suggest
 you load more and more services (that are on the failing box) until nmbd
 cores.
 
 I'm no hacker, hence my avoidance of the core dump file :-)
 
 Regards,
 
 Stacey
  
 
 Some months ago, I was having frequent core dumps for nmbd and an upgrade
 of Samba cured it for me. Suggest the latest portupgrade
 
 Best regards,
 Jack L. Stone,
 Administrator
 
 SageOne Net
 http://www.sage-one.net
 [EMAIL PROTECTED]

-- 
Any technical problem can be overcome given enough time and money.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: nmbd core dumps

2002-12-29 Thread Stacey Roberts
On Mon, 2002-12-30 at 02:14, Rusty Nejdl wrote:
 I've tried the following versions of samba:
 
 samba-2.2.4_1.tgz
 samba-2.2.6.p2_1.tgz
 samba-2.2.7a.tar.gz
 samba-2.2.7a.tbz
 samba-3.0a19.tgz
 samba-3.0a20.tbz
 
 All produce the same results.  I'm looking to see if there's just something I
 changed on the way to installing my box that would cause this.  I'm not sure if
 this the key to it or not:
 
 [2002/12/29 19:30:01, 0] lib/util_sock.c:set_socket_options(165)
   Failed to set socket option SO_BROADCAST (Error Bad file descriptor)
 
 Ideas?

Silly suggestion.

Is it possible for you to try:
# cd /usr/ports/net/samba; make install clean

Unless you've got some other reason for not doing it like that, of
course.

Regards,

Stacey

 
 Thanks!
 Rusty Nejdl
 
 Jack L. Stone(jackstone) wrote:
  At 01:39 AM 12.30.2002 +, Stacey Roberts wrote:
  On Mon, 2002-12-30 at 01:32, Rusty Nejdl wrote:
   Ok, I'm completely stuck with this one.  I am trying to get Samba
   running on my FreeBSD 4.7 - Release computer.  Everytime I try to run
   any version of nmbd, it core dumps.  The config doesn't matter.  Now,
   of note is the fact that I did get Sambda running properly on this
   computer when I first installed it, but in the process of building the
   computer (installing more packages, configuring, and rebuilding a
   kernel) samba broke.
   
   So, in knowing that, I used another computer to try to cause samba to
   break in the same way and I can't do it.  I installed all the same
   ports and rebuilt the kernel and nmbd still ran.  The only big
   difference was that I didn't get all of the processes configured and
   running.
   
   Here's /var/log/log.nmbd using a debug level of 3:
   [2002/12/29 19:26:45, 0] nmbd/nmbd.c:main(794)
 Netbios nameserver version 2.2.6pre2 started.
 Copyright Andrew Tridgell and the Samba Team 1994-2002
   [2002/12/29 19:26:45, 3] param/loadparm.c:init_globals(1261)
 Initialising global parameters
   [2002/12/29 19:26:45, 3] param/params.c:pm_process(577)
 params.c:pm_process() - Processing configuration file
   /usr/local/etc/smb.conf
  
  Huge snip
  
   
   I recompiled libc.so.4 as a result of the above error and tried again.
No change. However, since I'm installing samba from a package, it
   shouldn't matter.  In addition, I have tried compiling from source
   different versions of samba and they all fail the same way.
   
   I haven't found this posted anywhere else so I'm completely stumped. 
   Any ideas or help would be appreciated.
   
   Sincerely,
   Rusty Nejdl
  
  Hi,
Out of curiosity, is there a reason why you're not running the latest
  version of samba? Or has 2.2.7_b already failed before this one?
  
  If the other box still has nmbd up and running fine, then I'd suggest
  you load more and more services (that are on the failing box) until nmbd
  cores.
  
  I'm no hacker, hence my avoidance of the core dump file :-)
  
  Regards,
  
  Stacey
   
  
  Some months ago, I was having frequent core dumps for nmbd and an upgrade
  of Samba cured it for me. Suggest the latest portupgrade
  
  Best regards,
  Jack L. Stone,
  Administrator
  
  SageOne Net
  http://www.sage-one.net
  [EMAIL PROTECTED]
-- 
Stacey Roberts
B.Sc (HONS) Computer Science

Web: www.vickiandstacey.com



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: nmbd core dumps

2002-12-29 Thread Rusty Nejdl
Stacey,

Okay, got it.  Would you belive that portsentry caused nmbd to core dump when it
runs?

Rusty


Stacey Roberts(stacey) wrote:
 On Mon, 2002-12-30 at 02:14, Rusty Nejdl wrote:
  I've tried the following versions of samba:
  
  samba-2.2.4_1.tgz
  samba-2.2.6.p2_1.tgz
  samba-2.2.7a.tar.gz
  samba-2.2.7a.tbz
  samba-3.0a19.tgz
  samba-3.0a20.tbz
  
  All produce the same results.  I'm looking to see if there's just something I
  changed on the way to installing my box that would cause this.  I'm not sure if
  this the key to it or not:
  
  [2002/12/29 19:30:01, 0] lib/util_sock.c:set_socket_options(165)
Failed to set socket option SO_BROADCAST (Error Bad file descriptor)
  
  Ideas?
 
 Silly suggestion.
 
 Is it possible for you to try:
 # cd /usr/ports/net/samba; make install clean
 
 Unless you've got some other reason for not doing it like that, of
 course.
 
 Regards,
 
 Stacey
 
  
  Thanks!
  Rusty Nejdl
  
  Jack L. Stone(jackstone) wrote:
   At 01:39 AM 12.30.2002 +, Stacey Roberts wrote:
   On Mon, 2002-12-30 at 01:32, Rusty Nejdl wrote:
Ok, I'm completely stuck with this one.  I am trying to get Samba
running on my FreeBSD 4.7 - Release computer.  Everytime I try to run
any version of nmbd, it core dumps.  The config doesn't matter.  Now,
of note is the fact that I did get Sambda running properly on this
computer when I first installed it, but in the process of building the
computer (installing more packages, configuring, and rebuilding a
kernel) samba broke.

So, in knowing that, I used another computer to try to cause samba to
break in the same way and I can't do it.  I installed all the same
ports and rebuilt the kernel and nmbd still ran.  The only big
difference was that I didn't get all of the processes configured and
running.

Here's /var/log/log.nmbd using a debug level of 3:
[2002/12/29 19:26:45, 0] nmbd/nmbd.c:main(794)
  Netbios nameserver version 2.2.6pre2 started.
  Copyright Andrew Tridgell and the Samba Team 1994-2002
[2002/12/29 19:26:45, 3] param/loadparm.c:init_globals(1261)
  Initialising global parameters
[2002/12/29 19:26:45, 3] param/params.c:pm_process(577)
  params.c:pm_process() - Processing configuration file
/usr/local/etc/smb.conf
   
   Huge snip
   

I recompiled libc.so.4 as a result of the above error and tried again.
 No change. However, since I'm installing samba from a package, it
shouldn't matter.  In addition, I have tried compiling from source
different versions of samba and they all fail the same way.

I haven't found this posted anywhere else so I'm completely stumped. 
Any ideas or help would be appreciated.

Sincerely,
Rusty Nejdl
   
   Hi,
 Out of curiosity, is there a reason why you're not running the latest
   version of samba? Or has 2.2.7_b already failed before this one?
   
   If the other box still has nmbd up and running fine, then I'd suggest
   you load more and more services (that are on the failing box) until nmbd
   cores.
   
   I'm no hacker, hence my avoidance of the core dump file :-)
   
   Regards,
   
   Stacey

   
   Some months ago, I was having frequent core dumps for nmbd and an upgrade
   of Samba cured it for me. Suggest the latest portupgrade
   
   Best regards,
   Jack L. Stone,
   Administrator
   
   SageOne Net
   http://www.sage-one.net
   [EMAIL PROTECTED]
 -- 
 Stacey Roberts
 B.Sc (HONS) Computer Science
 
 Web: www.vickiandstacey.com
 
 

-- 
Any technical problem can be overcome given enough time and money.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: nmbd core dumps

2002-12-29 Thread Stacey Roberts
Weird..,

Hope all's well now.

Stacey

On Mon, 2002-12-30 at 02:31, Rusty Nejdl wrote:
 Stacey,
 
 Okay, got it.  Would you belive that portsentry caused nmbd to core dump when it
 runs?
 
 Rusty
 
 
 Stacey Roberts(stacey) wrote:
  On Mon, 2002-12-30 at 02:14, Rusty Nejdl wrote:
   I've tried the following versions of samba:
   
   samba-2.2.4_1.tgz
   samba-2.2.6.p2_1.tgz
   samba-2.2.7a.tar.gz
   samba-2.2.7a.tbz
   samba-3.0a19.tgz
   samba-3.0a20.tbz
   
   All produce the same results.  I'm looking to see if there's just something I
   changed on the way to installing my box that would cause this.  I'm not sure if
   this the key to it or not:
   
   [2002/12/29 19:30:01, 0] lib/util_sock.c:set_socket_options(165)
 Failed to set socket option SO_BROADCAST (Error Bad file descriptor)
   
   Ideas?
  
  Silly suggestion.
  
  Is it possible for you to try:
  # cd /usr/ports/net/samba; make install clean
  
  Unless you've got some other reason for not doing it like that, of
  course.
  
  Regards,
  
  Stacey
  
   
   Thanks!
   Rusty Nejdl
   
   Jack L. Stone(jackstone) wrote:
At 01:39 AM 12.30.2002 +, Stacey Roberts wrote:
On Mon, 2002-12-30 at 01:32, Rusty Nejdl wrote:
 Ok, I'm completely stuck with this one.  I am trying to get Samba
 running on my FreeBSD 4.7 - Release computer.  Everytime I try to run
 any version of nmbd, it core dumps.  The config doesn't matter.  Now,
 of note is the fact that I did get Sambda running properly on this
 computer when I first installed it, but in the process of building the
 computer (installing more packages, configuring, and rebuilding a
 kernel) samba broke.
 
 So, in knowing that, I used another computer to try to cause samba to
 break in the same way and I can't do it.  I installed all the same
 ports and rebuilt the kernel and nmbd still ran.  The only big
 difference was that I didn't get all of the processes configured and
 running.
 
 Here's /var/log/log.nmbd using a debug level of 3:
 [2002/12/29 19:26:45, 0] nmbd/nmbd.c:main(794)
   Netbios nameserver version 2.2.6pre2 started.
   Copyright Andrew Tridgell and the Samba Team 1994-2002
 [2002/12/29 19:26:45, 3] param/loadparm.c:init_globals(1261)
   Initialising global parameters
 [2002/12/29 19:26:45, 3] param/params.c:pm_process(577)
   params.c:pm_process() - Processing configuration file
 /usr/local/etc/smb.conf

Huge snip

 
 I recompiled libc.so.4 as a result of the above error and tried again.
  No change. However, since I'm installing samba from a package, it
 shouldn't matter.  In addition, I have tried compiling from source
 different versions of samba and they all fail the same way.
 
 I haven't found this posted anywhere else so I'm completely stumped. 
 Any ideas or help would be appreciated.
 
 Sincerely,
 Rusty Nejdl

Hi,
  Out of curiosity, is there a reason why you're not running the latest
version of samba? Or has 2.2.7_b already failed before this one?

If the other box still has nmbd up and running fine, then I'd suggest
you load more and more services (that are on the failing box) until nmbd
cores.

I'm no hacker, hence my avoidance of the core dump file :-)

Regards,

Stacey
 

Some months ago, I was having frequent core dumps for nmbd and an upgrade
of Samba cured it for me. Suggest the latest portupgrade

Best regards,
Jack L. Stone,
Administrator

SageOne Net
http://www.sage-one.net
[EMAIL PROTECTED]
  -- 
  Stacey Roberts
  B.Sc (HONS) Computer Science
  
  Web: www.vickiandstacey.com
  
  
-- 
Stacey Roberts
B.Sc (HONS) Computer Science

Web: www.vickiandstacey.com



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Laptops w/ FreeBSD pre-loaded (somewhat OT)

2002-12-29 Thread John Bleichert
Last year (when I wasn't in the market for a laptop) I found a 
site/manufacturer which sold Athlon- and Pentium-based laptops with 
Free/OpenBSD and/or Linux pre-installed. Now that I'm in the market 
I can't find the site to save my life. Has anybody seen such a site 
anywhere? I thought I found the site linked from freebsd.org but no 
luck.

Thanks - JB


#  John Bleichert 
#  http://vonbek.dhs.org/latest.jpg


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Browser delays

2002-12-29 Thread Mike Jeays
 I am using Mozilla 1.0 with FreeBSD 4.7.  The machine is attached to
a cable-TV high-speed service via an SMC Barricade router. I get
IP addresses assigned by DHCP running on the router.

I have tried without the router (connecting directly to the
cable modem), and get the same results.

When browsing certain web sites, including www.cnn.com, there
is about a 90 second delay when I load the first page; subsequent
pages are quite fast.  I don't get the same problem with Windows
2000.

Any suggestions, please?  Do I need to enable a DNS caching server?



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Laptops w/ FreeBSD pre-loaded (somewhat OT)

2002-12-29 Thread Scott Robbins
On Sun, Dec 29, 2002 at 09:28:31PM -0500, John Bleichert wrote:
 Last year (when I wasn't in the market for a laptop) I found a 
 site/manufacturer which sold Athlon- and Pentium-based laptops with 
 Free/OpenBSD and/or Linux pre-installed. Now that I'm in the market 
 I can't find the site to save my life. Has anybody seen such a site 
 anywhere? I thought I found the site linked from freebsd.org but no 
 luck.

I know Walmart sells some laptops (or is it only desktops--don't 
have time to check at this instant) with some version of Linux installed.

If you do find out, please post the site.
Thanks

-- 

Scott Robbins

PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 D575 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Drusilla: Your face is a poem. I can read it. 
Xander: It doesn't say 'spare me' by any chance? 



msg13646/pgp0.pgp
Description: PGP signature


Re: YP/NIS timeout.

2002-12-29 Thread Dan Nelson
In the last episode (Dec 29), lewiz said:
   I'm wondering if there is any way to stop my system completely
 falling over when my YP/NIS server is no longer available?  I am
 unable to login, even with my root account.  I have a local user that
 I would like to use (when the YP/NIS server is unavailable) but this
 seems impossible.  Any ideas on this matter?

Make sure the local user is above the + in your passwd file and you
should be okay.  Define unable to login.  Do you simply get login
incorrect for all attempts, or are you able to log in but something
else happens?

You might want to consider setting up a couple NIS slave servers if
your master is unreliable.

-- 
Dan Nelson
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: procmail and anti-spam

2002-12-29 Thread Jim Mock
On Sunday, December 29, 2002, at 08:12  AM, dick hoogendijk wrote:

Hello,


Hi,


It need not be state-of-the-art, but a good .procmailrc-file that
filters a lot of spam would come in very handy.

Does any of you have such a file and would you be willing to share it
with me (us?).

Links to procmail and anti-spam would also be welcome.


Take a look at spamprobe in /usr/ports/mail/spamprobe.  It uses 
Bayesian analysis and catches about 99% of the spam I get (and I get a 
*ton*).  Also see http://sourceforge.net/projects/spamprobe/ for more 
information.

- jim

--
jim mock mij@{soupnazi|opendarwin}.org   [EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


dns

2002-12-29 Thread Thomas Connolly
Hello all.  I have a freebsd box I'm using as a router for my subnet.  I have 
this freebsd router doing nat and dhcp assinging internal ip addresses for 
the computers on the network (i.e. 192.168.x.x).  This box is also a web 
server for a registered domain name.  My probelm is that when someone wants 
to connect to my web site the dns gives them the internal ip of the FreeBSD 
box and not the external ip of the router.  Can someone tell me how I get the 
FreeBSD's dns to point to the external ip address for my doimain?  Thanks 
much.

Sorry, this is more of a dns question than a FreeBSD one but the people who 
have helped me with other problems in the past were vastly experienced with 
this sort of thing so I thought this was my best chance of finding a 
solution.  If any of you feel that this is not an appropriate question for 
this list, can you please guide me to a forum or list that would be more 
appropriate?

Thanks in advance
-- 
Thomas Connolly
President
Electrosoft Solutions, Inc.
Phone: (970) 222-7844
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Now I have questions about nut.

2002-12-29 Thread Dragoncrest
	 Hi all. Just after a really quick answer, so I thought I'd post here. I 
was trying to install NUT to do some UPS monitoring, but I can't seem to 
find the device that COM1 should be on. They suggest /dev/ttyS0, or 
/dev/ttyS1, but I can't find either one of those. What is the device I use 
for monitoring a UPS on Com1? If it's those, how do I add them, because I'd 
obviously be missing them. Thanks for the help.

	Also, is there a Complete idiots guide to Nut or something similar that 
I could use?  Never used nut and most of it makes sence, parts of it make 
zero sence.  Thanks again.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: Now I have questions about nut.

2002-12-29 Thread Dan Nelson
In the last episode (Dec 30), Dragoncrest said:
 Hi all. Just after a really quick answer, so I thought I'd post here.
 I was trying to install NUT to do some UPS monitoring, but I can't
 seem to find the device that COM1 should be on. They suggest
 /dev/ttyS0, or /dev/ttyS1, but I can't find either one of those. What
 is the device I use for monitoring a UPS on Com1? If it's those, how
 do I add them, because I'd obviously be missing them. Thanks for the
 help.

Try /dev/cuaa0 or 1

-- 
Dan Nelson
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Browser delays

2002-12-29 Thread Robin Damm
On Sun, Dec 29, 2002 at 09:48:04PM -0500, Mike Jeays wrote:
 When browsing certain web sites, including www.cnn.com, there
 is about a 90 second delay when I load the first page; subsequent
 pages are quite fast.  I don't get the same problem with Windows
 2000.
 
 Any suggestions, please?  Do I need to enable a DNS caching server?

The problem may be related to the following bug:

http://bugzilla.mozilla.org/show_bug.cgi?id=135724

If you are experiencing this bug DNS caching will not have any
effect because it appears to be a lookup problem within mozilla.
However, disabling INET6 in the kernel does provide a nice
workaround here.

-- 
Robin Damm [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Multimedia question

2002-12-29 Thread Thomas Connolly
Can anyone recommend a good mpeg, avi, media player?  Perhaps a Mozilla 
plug-in that works with FreeBSD?

Thanks,

Tom

-- 
Thomas Connolly
President
Electrosoft Solutions, Inc.
Phone: (970) 222-7844
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: interactive fdisk

2002-12-29 Thread Norbert Koch
Murat Bicer [EMAIL PROTECTED] writes:

Hi!

 Is there a linux fdisk like utility on freebsd that can be used
 interactively?

 What is /stand/sysinstall configure fdisk calling?

From my understanding of the handbook

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disks-adding.html

I'd say it's calling a series of commands like those below.

,
| 12.3.2 Using Command Line Utilities
| 
| 12.3.2.1 Using Slices
| 
| This setup will allow your disk to work correctly with other operating
| systems that might be installed on your computer and will not confuse other
| operating systems' fdisk utilities. It is recommended to use this method for
| new disk installs. Only use dedicated mode if you have a good reason to do
| so!
| 
| # dd if=/dev/zero of=/dev/da1 bs=1k count=1
| # fdisk -BI da1 #Initialize your new disk
| # disklabel -B -w -r da1s1 auto #Label it.
| # disklabel -e da1s1 # Edit the disklabel just created and add
|  # any partitions.
| # mkdir -p /1
| # newfs /dev/da1s1e # Repeat this for every partition you created.
| # mount /dev/da1s1e /1 # Mount the partition(s)
| # vi /etc/fstab # Add the appropriate entry/entries to your /etc/fstab.
| 
| If you have an IDE disk, substitute ad for da. On pre-4.X systems use wd.
`

norbert.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



RE: Squirrel Mail on freebsd

2002-12-29 Thread Luke Kyohere
hello,
Anyone know of any bugs when running (or trying to run) squirrelmail off a
freebsd box? Coz I have been trying to do this for a while now with appaling
results timeouts, php related errors like maximum execution time
exceeded, very slow response, and it seems that it cannot handle loads like
lots of mail in the mailbox etc.

If someone has used squirrelmail successfully on freebsd, I'd please like to
know what configuration you are using, eg what imap server, what mail
formats etc, Thanx in advance.

Look.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Toomas Aas
Sent: Saturday, December 28, 2002 12:28 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: IMAP Authentication


Hi!

  In addition, does anyone have a preference on the use of a pop3/imap
 setup for a mail server?

Well, you've opened the can of worms :-)

It is my understanding that UW-IMAP is not the best possible IMAP
server out there. I've read about lots of security problems with it in
the past.

Regarding my preference - Cyrus IMAPD has always worked well for my
webmail server (not using Squirrelmail, though).
--
Toomas Aas | [EMAIL PROTECTED] | http://www.raad.tartu.ee/~toomas/
* If they combined country with rap, would they call it crap?


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.426 / Virus Database: 239 - Release Date: 12/2/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.426 / Virus Database: 239 - Release Date: 12/2/2002


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



  1   2   >