summaryrefslogtreecommitdiffstats
path: root/usr.bin/passwd
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/passwd')
-rw-r--r--usr.bin/passwd/passwd.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.bin/passwd/passwd.c b/usr.bin/passwd/passwd.c
index c66bcb0..d35458c 100644
--- a/usr.bin/passwd/passwd.c
+++ b/usr.bin/passwd/passwd.c
@@ -119,13 +119,10 @@ main(int argc, char *argv[])
fprintf(stderr, "Changing NIS password for %s\n",
pwd->pw_name);
break;
- case _PWF_HESIOD:
- errx(1, "can't change Hesiod password");
- break;
default:
- /* specieist! */
- errx(1, "can't change little green men's passwords (0x%x)",
- pwd->pw_fields);
+ /* XXX: Green men ought to be supported via PAM. */
+ errx(1,
+ "Sorry, `passwd' can only change passwords for local or NIS users.");
}
#define pam_check(func) do { \
OpenPOWER on IntegriCloud