Article View: comp.bugs.4bsd
Article #388Reno passwd(1) broken on non-Kerberised systems
From: Jonathan Stone
Date: Fri, 14 Jun 1991 02:15
Date: Fri, 14 Jun 1991 02:15
76 lines
2393 bytes
2393 bytes
Subject: Reno passwd(1) broken on non-Kerberised systems
Index: /usr/src/usr.bin/passwd.c
Description:
On a Kerberos-less system, the distributed passwd() will not
allow a user to change their own password. Furthermore,
it will not let the superuser change their or anyone else's
password.
Repeat-By:
Issue the passwd command from the shell, as in the examples below:
Script started on Fri Jun 14 13:55:37 1991
nikau> # try and change my own password
#: Command not found.
nikau> passwd
passwd: unknown user passwd.
nikau> passwd jonathan
usage: passwd user
nikau> su
Password:
nikau# passwd jonathan
usage: passwd user
nikau# passwd
passwd: unknown user passwd.
nikau# exit
nikau> exit
Script done on Fri Jun 14 13:57:35 1991
Fix:
At least for systems not running Kerberos, apply
the following patch, and rebuild install /usr/bin/passwd.
An error message for the "-l" switch coul be added
according to taste.
*** /usr/src/usr.bin/passwd/passwd.c Wed Jun 20 12:05:46 1990
--- /usr/vuw/passwd.c Sat Jun 8 03:10:41 1991
***************
*** 73,84 ****
uid = getuid();
uname = getlogin();
- #ifdef KERBEROS
while ((ch = getopt(argc, argv, ARGSTR)) != EOF)
switch (ch) {
/* change local password file */
case 'l':
use_kerberos = 0;
break;
default:
case '?':
--- 73,85 ----
uid = getuid();
uname = getlogin();
while ((ch = getopt(argc, argv, ARGSTR)) != EOF)
switch (ch) {
/* change local password file */
case 'l':
+ #ifdef KERBEROS
use_kerberos = 0;
+ #endif
break;
default:
case '?':
***************
*** 88,94 ****
argc -= optind;
argv += optind;
- #endif
switch(argc) {
case 0:
--- 89,94 ----
Technical Details
Message-ID:
<1991Jun14.021523.6424@comp.vuw.ac.nz>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!wuarchive!uunet!comp.vuw.ac.nz!beta.isor.vuw.ac.nz!jonathanShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!wuarchive!uunet!comp.vuw.ac.nz!beta.isor.vuw.ac.nz!jonathan From: jonathan@beta.isor.vuw.ac.nz (Jonathan Stone) Newsgroups: comp.bugs.4bsd Subject: Reno passwd(1) broken on non-Kerberised systems Message-ID: <1991Jun14.021523.6424@comp.vuw.ac.nz> Date: 14 Jun 91 02:15:23 GMT Sender: news@comp.vuw.ac.nz (News Admin) Organization: Dept. of Comp. Sci., Victoria Uni. of Wellington, New Zealand. Lines: 76 Nntp-Posting-Host: beta.isor.vuw.ac.nz