Subject: Re: NetBSD trivia questions
To: Ib-Michael Martinsen <imm@nethotel.dk>
From: Paul de Weerd <paul@mail.me.maar.nu>
List: port-i386
Date: 10/04/2001 01:22:28
On Wed, Oct 03, 2001 at 11:47:11PM +0200, Ib-Michael Martinsen wrote:
| Hello there!
| 
| I have two trivial (I guess) questions which I have been unable to
| find any answers for. I hope somebody can help me:
| 
| 1. How do a user change his/her group-id? I can not find any 'newgrp'
| command in NetBSD.

Funny - I just asked this same question on misc@openbsd.org not
two weeks ago.

Let me copy part of the one of the replies I got :
> There is no newgrp on BSD systems--you don't really need it.  On
> BSD systems you can be in multiple groups at once.
> 
> On files, BSD group semantics specify that the group on a file
> is inherited from the parent dir (at file creation time that
> is).
This was a reply from Todd C. Miller.

See my original posting at :
http://marc.theaimsgroup.com/?l=openbsd-misc&m=100126934222068&w=2

This applies equally to NetBSD.

| 2. How do I disable support for IPv6 in NetBSD v1.5? I'm a bit tired
| of looking at all the v6 info in netstat.

Easy - rebuild a kernel without IPv6.

Edit /usr/src/sys/arch/i386/conf/GENERIC and add a '#' in front of
the line with "options       INET6      # IPV6". It's in the
'Networking options' section.

# Networking options
#options        GATEWAY         # packet forwarding
options         INET            # IP + ICMP + TCP + UDP
options         INET6           # IPV6
#options        IPSEC           # IP security

Then follow the usual steps to configure, rebuild and install your
kernel.

But on a personal note I would advise against removing it. IPv6
is very cool new stuff you should get to know. Set up tunnels
and play with it. 

And if you don't want IPv6 output in netstat use -f inet.

Cheers

Paul 'WEiRD' de Weerd