command will display four pieces of information that can be changed by
.BR chfn :
your real name, your work room and phone, and your home phone.
+
+.B chfn
+is used to change local entries only. Use ypchfn, lchfn or any other
+implementation for non-local entries.
.SS COMMAND LINE
Any of the four pieces of information can be specified on the command
line. If no information is given on the command line,
}
if (!(is_local(oldf.username))) {
- fprintf (stderr, _("%s: can only change local entries; use yp%s instead.\n"),
- whoami, whoami);
+ fprintf (stderr, _("%s: can only change local entries.\n"), whoami);
exit(1);
}
If a shell is not given on the command line,
.B chsh
prompts for one.
+
+.B chsh
+is used to change local entries only. Use ypchsh, lchsh or any other
+implementation for non-local entries.
.SS VALID SHELLS
.B chsh
will accept the full pathname of any executable file on the system.
}
if (!(is_local(pw->pw_name))) {
- fprintf (stderr, _("%s: can only change local entries; use yp%s instead.\n"),
- whoami, whoami);
+ fprintf (stderr, _("%s: can only change local entries.\n"), whoami);
exit(1);
}