Subject: Re: How to su root?
To: None <port-mac68k@NetBSD.ORG>
From: Michael Robinson <miker@mind.net>
List: port-mac68k
Date: 02/08/1997 16:37:26
>Could we see a copy of your _/etc/passwd_ file entry and your /etc/group
>file entry?  Maybe there's a type or something...

(Synopsis: I'm running NetBSD/mac68k on my home IIsi, non-networked, to
learn unix. I logged in initialy as root and set up an account for myself,
miker. Now I want to learn how to log in as miker and su to root. I want to
be a sysadmin someday.. :-)

Sure here is:
/etc/passwd:

root:*:0:0::0:0:Charlie &:/root:/bin/csh
toor:*:0:0::0:0:Bourne-again Superuser:/root:/bin/sync
daemon:*:1:31::0:0:The devil himself:/root:/bin/sync
operator:*:2:20::0:0:System &:/usr/guest/operator:/bin/sync
bin:*:3:7::0:0:Binaries Commands and Source,,,:/:/dev/null
games:*:7:13::0:0:Games pseudo-user:/usr/games:/bin/sync
uucp:*:66:1:UNIX-to-UNIX Copy:/var/spool/uucppublic:/usr/libexec/uucp/uucico
nobody:*:32767:9999::0:0:Unprivileged user:/nonexistent:/dev/null
ingres:*:267:74::0:0:& Group:/usr/ingres:/bin/sync
falcon:*:327766:31::0:0:Prof. Steven &:/usr/games:/usr/games/wargames
miker:*:100:0::0:0:Michael Robinson:/home/miker:/bin/csh

and
/etc/master.passwd

root:LUKBb.SV.z56.:0:0::0:0:Charlie &:/root:/bin/csh
toor:T65SHo5xIdjWQ:0:0::0:0:Bourne-again Superuser:/root:/bin/sync
daemon:*:1:31::0:0:The devil himself:/root:/bin/sync
operator:*:2:20::0:0:System &:/usr/guest/operator:/bin/sync
bin:*:3:7::0:0:Binaries Commands and Source,,,:/:/dev/null
games:*:7:13::0:0:Games pseudo-user:/usr/games:/bin/sync
uucp:*:66:1::0:0:UNIX-to-UNIX
Copy:/var/spool/uucppublic:/usr/libexec/uucp/uucico
nobody:*:32767:9999::0:0:Unprivileged user:/nonexistent:/dev/null
ingres:*:267:74::0:0:& Group:/usr/ingres:/bin/sync
falcon:*:327766:31::0:0:Prof. Steven &:/usr/games:/usr/games/wargames
miker:1JeWhXR2McI1.:100:0::0:0:Michael Robinson:/home/miker:/bin/csh

/etc/group

wheel:*:0:root:miker
daemon:*:1:daemon
kmem:*:2:root
sys:*:3:root
tty:*:4:root
operator:*:5:root
bin:*:7:
news:*:8:
wsrc:*:9:
games:*:13:
staff:*:20:root
nobody:*:39:
utmp:*:45:
ingres:*:74:ingres
dialer:*:117:
nogroup:*:32766:


I got this info from Rob Windsor's page:
http://www.warped.com/~windsor/netbsd/what-next.html

>Also, you need to add yourself to group 0 ("wheel") in /etc/group. This
>will allow
>you to run "su" ("become the Super User") so that you do not need to log
>out and
>then log in as "root" or "toor".

Thanks. And I will look at www.netbsd.org for a full list of mailing lists,
including looking for netbsd-help and netbsd-users.  :-)


Gus Huber gus@pbx.org, helpfully writes:
>here try this newgrp wheel

Unfortunately, I get the response:  newgrp: Command not found.


TIA
Michael Robinson
Medford, Oregon USA
miker@mind.net