Re: Permissions on crontab..

2001-01-16 Thread Greg Black
Dan Nelson wrote: > In the last episode (Jan 17), Greg Black said: > > Michael Bacarella wrote: > > > Why is crontab suid root? > > > > > > I say to myself "To update /var/cron/tabs/ and to signal cron". > > > > > > Could crontab run suid 'cron'? > > > > > > If those are the only two things it ne

Re: ISR not triggered upon the interrupts and OS hangs

2001-01-16 Thread Mike Smith
> Dear Freebsd Hackers, > > Here is a question regarding my bsd device drivers: > > I used the pci_map_int() to register an interrupt handler for my PCI device > (intline = 12). But when the interrupt comes in, the handler (ISR) is not > triggered at all. But the OS hangs and I can see continuou

RE: syslogd patch

2001-01-16 Thread John Baldwin
On 17-Jan-01 Eric Melville wrote: > Printing out the whole path to the kernel all the time in syslog messages is > a bit redundant and ugly, especially seeing that it isn't done for any other > binaries. > > Should I send-pr this thing too, or is just sending it to -hackers enough? > > --- usr/

Re: Permissions on crontab..

2001-01-16 Thread Neil Blakey-Milner
On Wed 2001-01-17 (17:04), Greg Black wrote: > > In the last episode (Jan 17), Greg Black said: > > > Michael Bacarella wrote: > > > > Why is crontab suid root? > > > > > > > > I say to myself "To update /var/cron/tabs/ and to signal cron". > > > > > > > > Could crontab run suid 'cron'? > > > > >

LVS with FreeBSD

2001-01-16 Thread ¹Îö¿ø
Hello, I am setting up a LVS/DR cluster with 2 nodes(FreeBSD), but It doesn't work. Here is my network configuration; Internet(203.231.63.70 is Virtual IP) | | Router (203.231.63.0/24 network)

adding an address family

2001-01-16 Thread Mark Santcroos
Hi, I wonder if it is possible to dynamicly add an address family from a kernel module. I ask this because I am working on IrDA support for FreeBSD. I want to create AF_IRDA and all the corresponding structures and functions. So would it be possible to add another network stack at runtime or is

Re: Setting default hostname to localhost

2001-01-16 Thread mouss
A look at /usr/src/libexec/getty/main.c shows the folowing: if (hostname[0] == '\0') strcpy(hostname, "Amnesiac"); so, coherence suggests that the default should be "Amnesiac". Othewise, you'll get different hostnames for dhcp (and the like), and getty sessions. regard

Re: pppd & mkdir diff

2001-01-16 Thread mouss
These are probably cosmetic comments, but here they are anyway... At 09:54 13/01/01 +, W.H.Scholten wrote: >+char *dirname(char *path) { >+ char *slash; >+ >+ while (path[ strlen(path)-1 ] == '/') path[ strlen(path)-1 ] = 0; if path is an empty string, you are accessing path[-1

Re: pppd & mkdir diff

2001-01-16 Thread Peter Pentchev
On Tue, Jan 16, 2001 at 01:32:13PM +0100, mouss wrote: > These are probably cosmetic comments, but here they are anyway... > > > At 09:54 13/01/01 +, W.H.Scholten wrote: > > >+char *dirname(char *path) { > >+ char *slash; > >+ > >+ while (path[ strlen(path)-1 ] == '/') path[ str

Compiled in module disablement?

2001-01-16 Thread Josef Karthauser
How hard/easy would it be to disable a pre-compiled in kernel module? In my case I've got a machine here that's running ipfw, and I want to make some experimental changes without rebooting the box. Ideally I could recompile a ipfw.ko, disable the pre-compiled-in one (isn't this just a matter of r

Re: pppd & mkdir diff

2001-01-16 Thread mouss
At 14:50 16/01/01 +0200, Peter Pentchev wrote: >As somebody already pointed out, there *is* a dirname(3) function, and even >a dirname(1) cmdline utility to invoke it. oops. I'll need to stay current:) >In a followup to Alfred's mkdir(1) commit, I sent a sample implementation >of a direxname()

Re: FreeBSD boot manager, where is latest version?

2001-01-16 Thread Douglas K. Rand
I've recently switched to Smart Boot Manager which I noticed on freshmeat awhile ago. You can find it at http://www.gnuchina.org/~suzhe/ I found it easiest to download the DOS .exe and put it on a floppy and install it that way. For fitting in the boot block (no seperate partition required) it has

Re: Mounting a CDROM in freeBSD 4.2

2001-01-16 Thread Philippe CASIDY
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] writes: > Please send the response directly back to me, in addition to sending > it to hackers , as the volume of mail to hackers is so great that I could > very easily miss the response if it were only sent there. > I just

Re: open PR WRT syslogd vs. serial consoles

2001-01-16 Thread Brian Reichert
On Fri, Jan 05, 2001 at 02:12:04PM -0500, Brian Reichert wrote: > I'm chasing down a syslogd problem on a 3.4-R box, only to discover > that I'm being bit (still!) by a PR I submitted two years ago: > > > > I'm responsible for a wad of machines

Clustering FreeBSD

2001-01-16 Thread Jamie Heckford
Hi, Does anyone have any details of Open Source, or software included with FreeBSD that allows the clustering of FreeBSD? I have 55 racks sitting here to play with, and want to start doing some serious work (for me anyway!) with fBSD Plz. let me know! :) Thanks, -- Jamie Heckford Chief Netwo

Re: Mounting a CDROM in freeBSD 4.2

2001-01-16 Thread mouss
and you must make sure your kernel is compiled with options CD9660 At 18:08 16/01/01 +0100, Philippe CASIDY wrote: >The naming of the cdrom has changed from 3.x to 4.x. I do not remember the old >name but the new name is /dev/acd0c for an ATAPI cdrom. So you must have >in /etc/fstab something li

Re: Broken-by-design USB device?

2001-01-16 Thread Jon Simola
On Fri, 12 Jan 2001, Nick Hibma wrote: > If you could send me the make and model (basically all the numbers > (including the FCC one) on the label on the device, that would be > appreciated. Heh, this is some imported piece of junk. There is no FCC id. All the text on the adapter says is: PS-PC

Re: Clustering FreeBSD

2001-01-16 Thread Alfred Perlstein
* Jamie Heckford <[EMAIL PROTECTED]> [010116 09:29] wrote: > Hi, > > Does anyone have any details of Open Source, or software included > with FreeBSD that allows the clustering of FreeBSD? > > I have 55 racks sitting here to play with, and want to start doing > some serious work (for me anyway!)

NFS_ROOT not working when using a Netapp server

2001-01-16 Thread Brian Dean
Hi, Has anyone here sucessfully used a Netapp fileserver as the NFS root filesystem for FreeBSD clients? My FreeBSD client basically mounts the Netapp, boots the kernel, but fails early in /etc/rc because /dev/mem, /dev/kmem, /dev/null (and friends) are unavailable. NOTE that this all works fin

Re: adding an address family

2001-01-16 Thread Julian Elischer
Mark Santcroos wrote: > > Hi, > > I wonder if it is possible to dynamicly add an address family from a > kernel module. > > I ask this because I am working on IrDA support for FreeBSD. I want to > create AF_IRDA and all the corresponding structures and functions. > > So would it be possible to

Re: Clustering FreeBSD

2001-01-16 Thread opentrax
On 16 Jan, Jamie Heckford wrote: > Hi, > > Does anyone have any details of Open Source, or software included > with FreeBSD that allows the clustering of FreeBSD? > > I have 55 racks sitting here to play with, and want to start doing > some serious work (for me anyway!) with fBSD > > Plz. let

[CFR] number of processes forked since boot

2001-01-16 Thread Hajimu UMEMOTO
Hi, I received the patch to add counter for fork() set from Paul. I've tested it on my -CURRENT and -STABLE boxes, and it seems fine for me. So, I post his patch for review. Thanks, Paul. fork.patch.gz Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan [EMAIL PROTECTED] [EMAIL PRO

Re: adding an address family

2001-01-16 Thread Mark Santcroos
On Tue, Jan 16, 2001 at 10:22:12AM -0800, Julian Elischer wrote: > > So would it be possible to add another network stack at runtime or is the > > code not ready for that? > > we do this in ng_socket.c where we add our own protocol. Thanx, I didn't thought on the netgraph code. Is this likely

Re: One thing linux does better than FreeBSD...

2001-01-16 Thread Sean Michael Whipkey
Poul-Henning Kamp wrote: > Isn't there *anybody* here who has a SO/family member/neighbor in > the graphic/design business ? I do, but they almost never work for free. I did convince a friend of mine (a great artist, who has done some comic books and other stuff) to do this back of a t-shirt: h

Re: NFS_ROOT not working when using a Netapp server

2001-01-16 Thread Alfred Perlstein
* Brian Dean <[EMAIL PROTECTED]> [010116 10:17] wrote: > Hi, > > Has anyone here sucessfully used a Netapp fileserver as the NFS root > filesystem for FreeBSD clients? > > My FreeBSD client basically mounts the Netapp, boots the kernel, but > fails early in /etc/rc because /dev/mem, /dev/kmem, /

RE: Clustering FreeBSD

2001-01-16 Thread Charles Randall
The first question I have when someone brings this up is, "please define what you mean by clustering". There are multiple interpretations. Can you elaborate? -Charles -Original Message- From: Jamie Heckford [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 10:37 AM To: [EMAIL PR

Re: [CFR] number of processes forked since boot

2001-01-16 Thread Alfred Perlstein
* Hajimu UMEMOTO <[EMAIL PROTECTED]> [010116 10:33] wrote: > Hi, > > I received the patch to add counter for fork() set from Paul. I've > tested it on my -CURRENT and -STABLE boxes, and it seems fine for me. > So, I post his patch for review. > > Thanks, Paul. I like this a lot. -- -Alfred P

Re: Clustering FreeBSD

2001-01-16 Thread Jamie Heckford
In all honesty, I am just looking for something to play with and see how fast FreeBSD can go. Sort of thing where those two guys clustered about 200 486's or something stupid like that.. :) Jamie On 2001.01.16 18:31:43 + [EMAIL PROTECTED] wrote: > > > On 16 Jan, Jamie Heckford wrote: > >

Re: Clustering FreeBSD

2001-01-16 Thread Russell L. Carter
%In all honesty, I am just looking for something to play %with and see how fast FreeBSD can go. % %Sort of thing where those two guys clustered about 200 486's %or something stupid like that.. Go to google and search for Beowulf. Or Mosix. Or Ron Minnich :-) Or "smart networks", if all you

Re: NFS_ROOT not working when using a Netapp server

2001-01-16 Thread Mike Smith
> # ls -l /dev/null > crw-rw-rw- 1 root wheel0, 0x00080002 Jan 16 11:35 /dev/null > # ls -l /dev/mem > crw-r- 1 root kmem0, 0x0008 Jan 15 13:28 /dev/mem > # df -k . mass:~>ls -l /dev/null crw-rw-rw- 1 root wheel2, 2 Jan 16 12:20 /dev/null mass:~>ls -l /dev/mem crw-r---

Re: how to test out cron.c changes? (was: cvs commit: src/etc crontab)

2001-01-16 Thread Gerhard Sittig
On Wed, Jan 10, 2001 at 08:51 +1000, Greg Black wrote: > > If any change to expected cron behaviour is to be introduced, > the traditional behaviour must be the default, with a knob > documented in the man pages that can be twisted to get the > oddball behaviour that is being proposed here. In h

Re: how to test out cron.c changes? (was: cvs commit: src/etc crontab)

2001-01-16 Thread Greg Black
Gerhard Sittig wrote: > On Wed, Jan 10, 2001 at 08:51 +1000, Greg Black wrote: > > > > If any change to expected cron behaviour is to be introduced, > > the traditional behaviour must be the default, with a knob > > documented in the man pages that can be twisted to get the > > oddball behaviour

Re: Clustering FreeBSD

2001-01-16 Thread Matthew West
On Tue, Jan 16, 2001 at 05:36:51PM +, Jamie Heckford wrote: > Does anyone have any details of Open Source, or software included > with FreeBSD that allows the clustering of FreeBSD? Install the pvm port (ports/net/pvm) on the machines. I've played around with this a bit, and it's quite fun t

Re: Clustering FreeBSD

2001-01-16 Thread Uwe Pierau
Jamie Heckford wrote: # Hi, # Does anyone have any details of Open Source, or software included # with FreeBSD that allows the clustering of FreeBSD? Maybe you mean something like this... http://acme.ecn.purdue.edu/index.html ?! Uwe To Unsubscribe: send mail to [EMAIL PROTECTED] wit

Re: adding an address family

2001-01-16 Thread Julian Elischer
Mark Santcroos wrote: > > On Tue, Jan 16, 2001 at 10:22:12AM -0800, Julian Elischer wrote: > > > So would it be possible to add another network stack at runtime or is the > > > code not ready for that? > > > > we do this in ng_socket.c where we add our own protocol. > > Thanx, > > I didn't thou

Re: NFS_ROOT not working when using a Netapp server

2001-01-16 Thread Brian Dean
On Tue, Jan 16, 2001 at 12:27:31PM -0800, Mike Smith wrote: > > What did you use to actually create your exported /dev on the NetApp in > the first place? Encoding of device major/minor numbers is funky with > NFS, and FreeBSD only does NFSv2 for the root filesystem by default > (which makes

Re: NFS_ROOT not working when using a Netapp server

2001-01-16 Thread Mike Smith
> However, this was done with an NFS V3 mount and as you observed, > FreeBSD uses NFSv2 for the root. After repeating this same same > procedure using an NVSv2 mount to the Netapp, the major/minor numbers > look a whole lot better and it now works just fine. > > It's odd, though, that the NFSv2

cvsup7.freebsd.org downtime for upgrades

2001-01-16 Thread John Polstra
CVSup7.FreeBSD.org will be down for at least a few hours this afternoon (Pacific time) so that we can perform a hardware upgrade. It may be down again later in the week as we rearrange things on the disks and bring the OS up to date. Thanks in advance for your patience. John -- John Polstra

Re: [CFR] number of processes forked since boot

2001-01-16 Thread Paul Herman
On Wed, 17 Jan 2001, Hajimu UMEMOTO wrote: > I received the patch to add counter for fork() set from Paul. I've > tested it on my -CURRENT and -STABLE boxes, and it seems fine for me. > So, I post his patch for review. I do have a change (I knew I forgot something.) This is exactly the same pa

Re: adding an address family

2001-01-16 Thread Mark Santcroos
On Tue, Jan 16, 2001 at 01:01:54PM -0800, Julian Elischer wrote: > > Is this likely going to replace all the implementations of the current > > supported network protocols? > > > > In other words, is netgraph the right way to go for me, or should I rather > > focus on the more static part and dro

Re: One thing linux does better than FreeBSD...

2001-01-16 Thread Matthew N. Dodd
On Tue, 16 Jan 2001, Poul-Henning Kamp wrote: > Isn't there *anybody* here who has a SO/family member/neighbor in the > graphic/design business ? Yes. http://www.svaha.net/daemon/index.html -- | Matthew N. Dodd | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD | | [EMAIL PROTECTED] |

SIGBUS when writing to mmap'd device memory...

2001-01-16 Thread John Gregor
All, I'm trying to mmap() a region of device memory into user space. When the user app tries to write to the page, I'm getting a SIGBUS. My code in foo_mmap() looks essentially like: ... voff = bhandle + client_offset; poff = vtophys(voff); return i386_btop(poff)

Re: One thing linux does better than FreeBSD...

2001-01-16 Thread Ras-Sol
Am I the only one who thinks that he's just too cute? I mean- I view FreeBSD as a potent force that follows it's directives with razorlike precision and bleeding speed. Somehow this is not embodied by a "cute" daemon. I mean he IS a daemon! Come on! I've got a few GD friends, I'll sic them to

Re: libc walkthrough?

2001-01-16 Thread Wes Peters
Jeroen Ruigrok van der Werven wrote: > > -On [20010115 12:25], Rasputin ([EMAIL PROTECTED]) wrote: > >Ok, I know that The Bible for *BSDs is "TDaIotFOS", but STR from a glance > >at the 4.3 version that it is very kernel-oriented. > > > >I'd like to get started by porting a few userland apps > >(

Re: Mounting a CDROM in freeBSD 4.2

2001-01-16 Thread gerald stoller
I'd like to thank every one who responded, and all those who were willing to respond but saw that they would be repeating information already sent. It turns out that the designation of the CDROM drive changed between versions 3.3 and 4.2 , and the only one I knew was the design

Re: One thing linux does better than FreeBSD...

2001-01-16 Thread Jordan Hubbard
> Am I the only one who thinks that he's just too cute? Well, either that or a bit too much like Al Jolson in blackface (redface?). > I mean he IS a daemon! > Come on! > > I've got a few GD friends, I'll sic them to work on a MEANER version... Go for it! We did a version of him here holding a

Re: One thing linux does better than FreeBSD...

2001-01-16 Thread John Baldwin
On 17-Jan-01 Jordan Hubbard wrote: >> Am I the only one who thinks that he's just too cute? > > Well, either that or a bit too much like Al Jolson in blackface > (redface?). > >> I mean he IS a daemon! >> Come on! >> >> I've got a few GD friends, I'll sic them to work on a MEANER version... >

Re: One thing linux does better than FreeBSD...

2001-01-16 Thread Bosko Milekic
Hey! These images are hip! :-) Cheers, Bosko. Matthew N. Dodd wrote: > On Tue, 16 Jan 2001, Poul-Henning Kamp wrote: > > Isn't there *anybody* here who has a SO/family member/neighbor in the > > graphic/design business ? > > Yes. > > http://www.svaha.net/daemon/index.html > > -- > | Matthe

Re: cvsup7.freebsd.org downtime for upgrades

2001-01-16 Thread John Polstra
In article <[EMAIL PROTECTED]>, John Polstra <[EMAIL PROTECTED]> wrote: > CVSup7.FreeBSD.org will be down for at least a few hours this > afternoon (Pacific time) so that we can perform a hardware upgrade. > It may be down again later in the week as we rearrange things on > the disks and bring th

Re: Setting default hostname to localhost

2001-01-16 Thread Robert Watson
On Tue, 16 Jan 2001, mouss wrote: > A look at /usr/src/libexec/getty/main.c shows the folowing: > if (hostname[0] == '\0') > strcpy(hostname, "Amnesiac"); > > so, coherence suggests that the default should be "Amnesiac". > Othewise, you'll get different hostnames for

tasteless?

2001-01-16 Thread Paul Halliday

Re: One thing linux does better than FreeBSD...

2001-01-16 Thread Alan Clegg
Unless the network is lying to me again, Matthew N. Dodd said: > On Tue, 16 Jan 2001, Poul-Henning Kamp wrote: > > Isn't there *anybody* here who has a SO/family member/neighbor in the > > graphic/design business ? > > Yes. > > http://www.svaha.net/daemon/index.html BUT HIS NAME IS NOT CHUCK,

Re: cvsup7.freebsd.org downtime for upgrades

2001-01-16 Thread Kris Kennaway
On Tue, Jan 16, 2001 at 05:41:39PM -0800, John Polstra wrote: > In article <[EMAIL PROTECTED]>, > John Polstra <[EMAIL PROTECTED]> wrote: > > CVSup7.FreeBSD.org will be down for at least a few hours this > > afternoon (Pacific time) so that we can perform a hardware upgrade. > > It may be down ag

Protections on inetd (and /sbin/* /usr/sbin/* in general)

2001-01-16 Thread Michael R. Wayne
Background: We recently had a customer's web site suffer an attempted exploit via one of their cgi scripts. The attempted exploit involved writing a file into /tmp, then invoking inetd with that file to get a root shell on a non-standard port. While the exploit failed, they were

Re: cvsup7.freebsd.org downtime for upgrades

2001-01-16 Thread Will Andrews
On Tue, Jan 16, 2001 at 06:47:14PM -0800, Kris Kennaway wrote: > cvsup12 carries OpenBSD.. As the admin of cvsup.usa.openbsd.org/cvsup12, this is correct. :) -- wca PGP signature

Possible bug in /usr/bin/makewhatis.

2001-01-16 Thread Matt Dillon
I was doing some installworlds and got a bunch of 'gzcat: Broken pipe' errors at the very end when it was doing 'makewhatis' on various manual directories. I believe the problem is related to the makewhatis perl script closing the input descriptor before draining all the input

*Help* Limits on FreeBSD

2001-01-16 Thread f f
Hello I'm currently working on trying to raise limits on our FreeBSD machine from 1064 to 8192 or even higher for our chat service. I did this (which worked for the time being) sysctl -w kern.maxfiles: 8192 kern.maxfilesperproc: 4096 This raises the limits but when I compile the IRCd and have t

Re: Protections on inetd (and /sbin/* /usr/sbin/* in general)

2001-01-16 Thread Dima Dorfman
> Recommendation: >A number of the executables located in /sbin and /usr/sbin are >never going to be invoked for any legitimate use by anyone other >than the superuser. In particular, servers such as portmap and >inetd run by non-root users are unlikely to do what was intended. >

ISR not triggered upon the interrupts and OS hangs

2001-01-16 Thread Howie Xu
Dear Freebsd Hackers, Here is a question regarding my bsd device drivers: I used the pci_map_int() to register an interrupt handler for my PCI device (intline = 12). But when the interrupt comes in, the handler (ISR) is not triggered at all. But the OS hangs and I can see continuous interrupts c

Re: What to do if a box is just "frozen"

2001-01-16 Thread Peter Jeremy
On Mon, 15 Jan 2001 23:01:15 +0100, Thierry Herbelot <[EMAIL PROTECTED]> wrote: >I've got a little application at work which can "just freeze" a >4.2-Release : the purpose of the application is just a packet blaster >used for telecom equipement test (send as many UDP packets as ordered, >on as man

Permissions on crontab..

2001-01-16 Thread Michael Bacarella
Why is crontab suid root? I say to myself "To update /var/cron/tabs/ and to signal cron". Could crontab run suid 'cron'? If those are the only two things it needs to do, run cron as gid 'cron' and make /var/cron/tabs/ group writable by 'cron'. -- Michael Bacarella <[EMAIL PROTECTED]> Technica

Re: Permissions on crontab..

2001-01-16 Thread Greg Black
Michael Bacarella wrote: > Why is crontab suid root? It has to run jobs as the correct user and must be able to setuid accordingly. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: adding an address family

2001-01-16 Thread Michael C . Wu
[cc'ed to Benno for his fun and entertainment] On Tue, Jan 16, 2001 at 11:23:26PM +0100, Mark Santcroos scribbled: | On Tue, Jan 16, 2001 at 01:01:54PM -0800, Julian Elischer wrote: | > > Is this likely going to replace all the implementations of the current | > > supported network protocols? | >

Re: Clustering FreeBSD

2001-01-16 Thread Michael C . Wu
On Tue, Jan 16, 2001 at 05:36:51PM +, Jamie Heckford scribbled: | Does anyone have any details of Open Source, or software included | with FreeBSD that allows the clustering of FreeBSD? | | I have 55 racks sitting here to play with, and want to start doing | some serious work (for me anyway!)

Re: Permissions on crontab..

2001-01-16 Thread Dan Nelson
In the last episode (Jan 17), Greg Black said: > Michael Bacarella wrote: > > Why is crontab suid root? > > > > I say to myself "To update /var/cron/tabs/ and to signal cron". > > > > Could crontab run suid 'cron'? > > > > If those are the only two things it needs to do, run cron as gid > > 'cron'

Re: Protections on inetd (and /sbin/* /usr/sbin/* in general)

2001-01-16 Thread Walter W. Hop
>The exploit managed to start inetd, camped on the specified port I guess, if it doesn't exist already, that it wouldn't be so hard to create a small patch to the kernel, so that only processes owned by root, or a certain group of users (let's say "daemon"), were allowed to set up listeners..

syslogd patch

2001-01-16 Thread Eric Melville
Printing out the whole path to the kernel all the time in syslog messages is a bit redundant and ugly, especially seeing that it isn't done for any other binaries. Should I send-pr this thing too, or is just sending it to -hackers enough? --- usr/src/usr.sbin/syslogd/syslogd.c.old Sat Jan 1