[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
passwd problem
I'm having a weird problem on two OpenBSD 2.6-current boxes. One of them
(paragon) is running the snapshot from March 17th and the other one is
running the previous snapshot. The specific problem occurs when I use chsh
or chpass to modify a user's information in the password file. After I try
to save and exit one of multiple text editors, I get a message telling me
to go back and fix one of the lines.
$ chsh john
* proceeds to edit the information in joe or vi *
File /var/tmp/pw.dWl18127 saved.
chsh: unrecognized field on line 4
re-edit the password file? [y]:
It does this when I try and change the shell, but also when I just try to
add information to the Full Name field.
$ cat /var/tmp/pw.dWl18127
#Changing user database information for john.
Shell: /bin/sh
Full Name: John K.
Office Location: <-- line 4.
Office Phone:
Home Phone:
$ cat /etc/passwd
root:*:0:0:Charlie &:/root:/bin/csh
daemon:*:1:31:The devil himself:/root:/sbin/nologin
operator:*:2:5:System &:/operator:/sbin/nologin
bin:*:3:7:Binaries Commands and Source,,,:/:/sbin/nologin <-- line 4.
I'm stumped. This is a fresh system; I don't believe any file permission
have been changed but if there is a question in that regard I will be
happy to post them.
__
.j0hn [john@maKintosh.com]
"I never let my schooling interfere with my education." -- Mark Twain