Subject: passwd - what to do?.2
To: None <port-mac68k@NetBSD.ORG>
From: brian wildasinn <bwildasi@csulb.edu>
List: port-mac68k
Date: 05/04/1997 20:12:03
Passwd - what to do?2
AIEEEE!!!! Does anyone know how to fix this? i've tried most of the
suggestions mentioned so far, but passwd still doesn't work yet. exactly
just how do i "add a new user", ie myself, to the netBSD1.2D/mac68k
(4/8/97 current & GENERICSB-27) system loaded on a Q700 macintosh. =
yes, yes, must use vipw which rebuilds the databases, but right now this
system will not let me do anything to create new users! A screen dump
and 5 boots are included; hope you see something that shows where the
problem is. Any help is greatly, greatly appreciated!
order of levents thus far...
booting ...singleuser mode
[preserving 308419 bytes of netbsd symbol table]
copyright =A9 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
NetBSD1.2D (GENERICSBC) #27 tues April 8th 1:24:26 CDT 1997
scottr@beech:/a/src/sys/arch/mac68k/compile/GENERICSBC
Apple Macintosh Quadra 700 (68040)
real mem =3D 20971520
Avail mem =3D 17080320
using 204 buffers containing 35584 bytes of memory
mrg: macIIci/Q700 ROMs' ROM glue, tracing off, debugging off, silent
traps
mrg: I/O map kludge for ROMs that use hardware addressing directly
mrg: bus subsystem
adb: extended keyboard at 2
adb: relative positioning device (mouse?) (50) at 3
adb: absolute positioning device (tablet?) (58) at 4
adb: 100 dpi mouse at 15
adb: 200 dpi mouse at 14
mainbus0 (root)
obio0 at mainbus0
adb0 at obio0 (ADB event device)
asc0 at obio0: Apple Sound Chip
intvid0 at obio0: DAFB: Monitor sense 1.
intvid0: 640x480, monochrome
grf0 at intvid0
ite at grf0 not configured
sn0 at obio0 address 08:00:07:54:0f:66
esp0 at obio0: address 0x896000:NCR53C96, 25MHz, SCSI ID 7
scsibus0 at esp0: 8 targets
sd0 at scsibus0 targ 0 lun 0: <SEAGATE, ST31230N, 0594> SCSI 0/direct
fixed
=7Fsd0:1010MB, 3992 cyl, 5 head, 103 sec, 512 bytes/sec
cd0 at scsibus0 targ 2 lun 0: <MEDAVIS,RENO CD ROMx2A,2.03>SCSI2 5/cdrom
removeable
uk0 at scsibus0 targ 2 lun 1: <,,> SCSI 7 16/unknown fixed offline
uk0: unknown device
uk1 at scsibus0 targ 2 lun 2: <,,> SCSI 7 16/unknown fixed offline
uk1: unknown device
uk2 at scsibus0 targ 2 lun 3: <,,> SCSI 7 16/unknown fixed offline
uk2: unknown device
uk3 at scsibus0 targ 2 lun 4: <,,> SCSI 7 16/unknown fixed offline
uk3: unknown device
uk4 at scsibus0 targ 2 lun 5: <,,> SCSI 7 16/unknown fixed offline
uk4: unknown device
uk5 at scsibus0 targ 2 lun 6: <,,> SCSI 7 16/unknown fixed offline
uk5: unknown device
uk6 at scsibus0 targ 2 lun 7: <,,> SCSI 7 16/unknown fixed offline
uk6: unknown device
sd1 at scsibus0 targ 5 lun 0: <IOMEGA,ZIP100,E.03> SCSI2 0/direct
removeable
sd1: drive offline
sd2 at scsibus0 targ 6 lun 0: <IBM,KZ-C,R167> SCSI 1 0/direct fixed
sd2: 159M, 1058 cyl, 8 head, 38 sec, 512 bytes/sec
zsc0 at obio chip type 0
zstty0 at zsc0 channel 1
zstty0
nubus0 at mainbus0
fpu0 at mainbus0 (mc68040)
boot device: sd2
root on sd2a swap on sd2b
PRAM: 0x336bd37b, macos_boottime:0x336bd356.
root file system type: ffs
Enter pathname of shell or RETURN for sh:<return> =
Terminal type? =
vt220
reboot
booting ...singleuser mode
sh
vt220
fsck
reboot
booting ...singleuser mode
sh
vt220
mount -u /
mount
/dev/sd2a on / type ffs (local)
cd etc
rm passwd pwd.db spwd.deb ptmp
vi group (wheel:*:0:root,brian)
:w
:q
vipw (root:**:0:0::0:0:Charlie &:/root:/bin/sh
toor:**:0:0::0:0:Bourne-again Superuser:/root:
...
brian:**:1000:0::0:0:brian wildasinn:/home/brian:/bin/sh)
:w (saving as /etc/ptmp...)
:q
ls
(blank, ie, no files listed in this directory!, all other directories
are ok)
reboot
booting ...singleuser
sh
vt220
mount -u /
chpass brian
chpass: unknown user: brian
chpass -a brian:b:1000:0::0:0:brian wildasinn:/home/brian:/bin/sh
chpass: corrupted entry
passwd brian
passwd: unknown user brian
chown -R brian /home/brian
chown: brian: illegal user name
pwd
/
ls -Fl
drwxr-xr-x 2 0 wheel 512 Apr 30 23:04 home/
cd home
ls -Fl
-rw-r--r-- 1 100 wheel 230 Apr 20 14:03 brian
lrwxr-xr-x 1 0 wheel 9 Apr 20 22:10 home@ -> /usr/home
cd /
cd /usr
drwxrwxrwt 3 0 wheel 512 Apr 20 22:01 home/
cd home
ls -Fl
-rwxrwxrwt 1 0 wheel 731 Apr 20 21:11 .cshrc*
`` .klogin
`` .login
`` .profile
drwxrwxrwt 1 0 wheel 512 Apr 20 21:54 brian/
cd /
pwd
/
reboot
booting ...multuser mode
automatic boot in progress: starting file system checks.
/dev/rsd2a file system clean; not checking
setting tty flags
starting network
configuring network interfaces:.
myname.my.domain: bad value
starting system logger
starting rpc daemons: portmap syslogd: /var/log/authlog: =
No such file or directory.
creating runtime link editor directory cache.
checking for core dump-
savecore: can't find device 4/17
checking quotas: May 3 20:46:14 myname savecore: =
can't find device 4/17
done.
building databases...
kvm-mkdb: /var/db/kvm_db.tmp: =
Inappropriate file type or format
clearing /tmp
turning on accounting
standard daemons: update cron.
starting network daemons: routed printer inetd.
starting local daemons...
Sat May 3 20:46:31 PDT 1997
May 3 20:46:32 myname init: =
kernel security level changed from 0 to 1
NetBSD/mac68k (myname.my.domain) (ttye0)
login: root
Password: **
login Incorrect
login: brian
Password: **
Login Incorrect
login: Panic Switch: PC is 0x371e.
Stopped at _Debugger t0x6: unlk a6
db> continue
login: Ctrl-d
May 3 20:58:38 myname. login: 1 LOGIN FAILURE ON ttye0
NetBSD/mac68k (myname.my.domain) (ttye0)
login: Ctrl-d
NetBSD/mac68k (myname.my.domain) (ttye0)
login: Panic Switch ...
Since this was an endless loop, i decided to reboot with the =
hard switch on the box itself.
ps. by the way, i've also tried the scripts adduser and =
adduser.h at netBSD's home page, on booting singleuser both stop =
at "illegal and unknown" user, ...ie, me. i'm not sure i =
understand how to sign on as root.
Please help! =
Sincerely,
Brian Wildasinn
bwildasi@csulb.edu