Subject: Re: passwd - what to do?.2
To: brian wildasinn <bwildasi@csulb.edu>
From: Bill Studenmund <wrstuden@loki.stanford.edu>
List: port-mac68k
Date: 05/04/1997 22:28:45
[please don't post this twice!]
> 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
> 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, i
> known i have to 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!
[snip]
> 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
{the above's unrelated and indicative of a CD ROM drive which doesn't
support lun's right. You should copy this block into a problem
report on the netbsd.org home page}
[snip]
> Enter pathname of shell or RETURN for sh:<return> =
>
> Terminal type? =
>
> vt220
> reboot
>
> booting ...singleuser mode
> fsck
> reboot
Was anything wrong? If nothing's wrong, you don't have to 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)
Wait. You have nothing in /etc??? Also, why are you using double
astericies (sp?)? When you're done, do all the files you created come
back? I never touched any of them, and I had no problem.
> reboot
Not needed.
> 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
Try with " "
The space in your name will make the entry get broken into two
operands by the shell, which won't work.
> 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
??????? /home is fine. Why does /home/home point to /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
Just hit control d (or "exit") and it'll go multi-user.
> 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
Your computer will be happier if you config the net stuff. Though that's
independant of this problem.
> 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
/netbsd is not the running kernel, or you have old binaries.
> 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
The ** above, in vipw, weren't the passwords, were they? Normally
they are the encrypted passwords. Use passwd to change the passwords.
You're rebooting too much.
Take care,
Bill