freebsd-nq/usr.bin
Bill Paul c2dfe9fe01 Merge in changes to support the new rpc.yppasswdd(8) and fix a few bugs.
In passwd(1):

- Gut most of yp_passwd.c and leave only a few things that aren't common
  to pw_yp.c.

- Add support for -d and -h flags to select domains and NIS server hosts
  to use when updating NIS passwords. This allows passwd(1) to be used
  for changing NIS passwords from machines that aren't configured as
  NIS clients. (This is mostly to allow passwd(1) to work on NIS master
  servers that aren't configured as clients -- an NIS server need not
  necessarily be configured as a client itself.)

  NOTE: Realize that having the ability to specify a domain and hostname
  lets you use passwd(1) (and chpass(1) too) to submit update requests
  to yppasswd daemons running on remote servers in remote domains which
  you may not even be bound to. For example, my machine at home is not
  an NIS client of the servers on the network that I manage, yet I can
  easily change my password at work using my FreeBSD box at home by doing:
  'passwd -d work.net.domain -h any.nis.server.on.my.net wpaul'. (Yes,
  I do use securenets at work; temporarily modified my securenets file
  to give my home system access.) Some people may not be too thrilled
  with this idea. Those who don't like this feature can recompile passwd(1)
  and chpass(1) with -DPARANOID to restrict the use of these flags to
  the superuser.

  (Oh, I should be adding proper securenets support to ypserv(8) and
  rpc.yppasswdd(8) over the weekend.)

- Merge in changes to allow root on the NIS master server to bypass
  authentication and change any user's NIS password. (The super-user
  on the NIS master already has privileges to do this, but doing it
  through passwd(1) is much easier than updating the maps by hand.)
  Note that passwd(1) communicates with rpc.yppasswdd(8) via a UNIX
  domain socket instead of via standard RPC/IP in this case.

- Update man page.

In chpass(1):

- Fix pw_yp.c to work properly in environments where NIS client
  services aren't available.

- Use realloc() instead of malloc() in copy_yp_pass() and copy_local_pass().

- Fix silly bug in copy_yp_pass(); some of the members of the passwd
  structure weren't being filled in correctly. (This went unnoticed
  for a while since the old yppasswdd didn't allow changes to the
  fields that were being botched.)

- chpass(1) now also allows the superuser on the NIS master server to
  make unrestricted changes to any user's NIS password information.

- Use UNIX domain comm channel to rpc.yppasswdd(8) when run by the
  superuser on the NIS master. This allows several new things:

   o superuser can update an entire master.passwd.{byname,byuid} entry
   o superuser can update records in arbitrary domains using -d flag to
     select a domain (before you could only change the default domain)
   o superuser can _add_ records to the NIS master.passwd maps, provided
     rpc.yppasswdd(8) has been started with the -a flag (to do this,
     the superuser must force NIS operation by specifying the -y flag
     to chpass(1) along with -a, i.e. 'chpass -y -a 'foo:::::::::')

- Back out the 'chpass -a <new password entry> breaks with NIS' fix
  from the last revision and fix it properly this time. The previous
  revision fixed the immediate problem but broke NIS operation in
  some cases.

- In edit.c, be a little more reasonable about deciding when to
  prevent the shell field from being changed.

  Submitted by Charles Owens <owensc@enc.edu>, who said:

  "I made a minor (one-line) modification to chpass, with regards
   to whether or not it allows the changing of shells.  In the 2.0.5 code,
   field changing follows the settings specified in the "list" structure
   defined in table.c .  For the shell, though, this is ignored.  A quick
   look in edit.c showed me why, but I don't understand why it was written as
   such.  The logic was

        if shell is standard shell, allow changing

   I changed it to

        if shell changing is allowed (per table.c) and it is a standard shell
             OR if uid=0, then allow changing."

   Makes sense to me.

- Update man page.
1996-02-23 16:08:59 +00:00
..
apply Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
ar Change ar's internal error routine to call err() instead of errx() 1996-01-22 15:33:20 +00:00
at making <page>.1 from <page>.man 1996-02-06 23:48:03 +00:00
banner Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
basename BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
biff BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
cal Localize it. 1996-01-24 22:50:24 +00:00
calendar Submitted by: bruce 1996-02-18 19:29:45 +00:00
cap_mkdb BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
chat This commit was generated by cvs2svn to compensate for changes in r13122, 1995-12-30 19:02:48 +00:00
checknr Another round of man page cleanups. 1996-02-12 04:57:03 +00:00
chflags Set NOSHARED=true, having this binary static makes it much easier to 1995-07-24 01:44:17 +00:00
chpass Merge in changes to support the new rpc.yppasswdd(8) and fix a few bugs. 1996-02-23 16:08:59 +00:00
cksum BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
cmp I don't like what they did to cmp(1) in 4.4 Lite; now it whines all 1994-08-20 11:14:07 +00:00
col Add setlocale LC_CTYPE 1995-10-24 06:15:05 +00:00
colcrt BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
colldef recording cvs-1.6 file death 1995-12-30 19:02:48 +00:00
colrm BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
column BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
comm BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
compile_et recording cvs-1.6 file death 1995-12-30 19:02:48 +00:00
compress This commit was generated by cvs2svn to compensate for changes in r13122, 1995-12-30 19:02:48 +00:00
cpp Change install' to ${INSTALL}' so that default install flags can be 1995-07-25 00:37:58 +00:00
ctags Fix a bunch of spelling errors in a bunch of man pages. 1996-01-30 13:52:50 +00:00
cut Fix wrong separator output 1995-03-21 00:26:32 +00:00
devmenu Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
dig Merge bind-4.9.3-rel stuff ont main line... 1996-01-07 06:21:58 +00:00
dirname Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
dnsquery Another round of man page cleanups. 1996-02-12 04:57:03 +00:00
du Restore the reference to quot(8). 1995-08-13 09:39:23 +00:00
ee Correct some manual page cross reference errors. E.g. su is a section 1996-02-02 00:26:12 +00:00
env BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
error Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
expand BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
f2c Fixed some minor formatting problems to silence manck some more. 1996-02-12 01:20:38 +00:00
false BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
fib Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
file Fixed some minor formatting problems to silence manck some more. 1996-02-12 01:20:38 +00:00
file2c This is a small little program used to execute a bad practice a clean way :-) 1995-01-29 00:49:57 +00:00
find Don't use printf() for simple strings because it is slow. Closes PR 783. 1995-10-16 18:32:35 +00:00
finger Implement client-side transaction TCP. This has little effect 1995-12-17 21:04:36 +00:00
fmt Dynamically allocate line buffers, instead of assuming that all the 1995-11-15 15:01:01 +00:00
fold BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
fpr BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
from Read from standard input if file name "-" is given. 1996-01-28 23:43:37 +00:00
fsplit Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
fstat Fix a variety of minor typos and cross references in a bunch of 1996-01-20 07:29:11 +00:00
ftp Fix a bunch of spelling errors in a bunch of man pages. 1996-01-30 13:52:50 +00:00
gcore Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
gencat Accept escaped quotes in msg catalogs. 1995-08-26 18:37:49 +00:00
getopt Fix a bunch of spelling errors in a bunch of man pages. 1996-01-30 13:52:50 +00:00
gprof Another round of man page cleanups. 1996-02-12 04:57:03 +00:00
gprof4 Implemented non-statistical kernel profiling. This is based on 1995-12-29 15:30:05 +00:00
head head(1) ignored EOFs (in certain cases). 1995-08-15 19:34:11 +00:00
hexdump Correct some manual page cross reference errors. E.g. su is a section 1996-02-02 00:26:12 +00:00
host Guard against argument starvation. 1996-01-16 02:09:23 +00:00
id Fixed bug where 'id <user>' output the wrong group name (the user name 1995-08-28 10:23:58 +00:00
indent Fix a variety of minor typos and cross references in a bunch of 1996-01-20 07:29:11 +00:00
ipcrm Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
ipcs Instantiate our own variables instead of depending on bogus common 1995-07-12 19:10:17 +00:00
join Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
jot >Number: 917 1995-12-29 12:18:46 +00:00
kdump Add setlocale LC_CTYPE 1995-10-26 22:16:45 +00:00
key recording cvs-1.6 file death 1995-12-30 19:02:48 +00:00
keyinfo Change install' to ${INSTALL}' so that default install flags can be 1995-07-25 00:37:58 +00:00
keyinit Fix a bunch of spelling errors in a bunch of man pages. 1996-01-30 13:52:50 +00:00
killall always warn if no processes matched 1996-02-11 00:12:15 +00:00
ktrace Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
kzip Support for using overlapping kzip kernels that are overwritten during 1995-10-06 02:42:15 +00:00
lam BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
last Fixed a bug that caused last(1) to be extremely slow in some cases, and 1995-10-17 18:26:43 +00:00
lastcomm Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
ldd Updated to recent version of Paul K.'s shlib code. This code has better 1994-12-23 22:31:35 +00:00
leave BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
lex Another round of man page cleanups. 1996-02-12 04:57:03 +00:00
locate Added a small man page for locate.updatedb(8). 1996-02-11 18:54:39 +00:00
lock Add dependencies on libraries to DPADD. Someday this should be done 1994-08-28 18:49:06 +00:00
logger BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
login #include <kerberosIV/des.h> -> #include <des.h> 1996-02-11 09:18:18 +00:00
logname Correct a bunch of man page cross references and generally 1996-02-11 22:38:05 +00:00
look Make it works with 8bit charsets 1995-10-29 00:20:05 +00:00
lorder Change install' to ${INSTALL}' as usual. 1995-07-25 00:22:50 +00:00
lsvfs Fix a bunch of spelling errors in a bunch of man pages. 1996-01-30 13:52:50 +00:00
m4 This commit was generated by cvs2svn to compensate for changes in r13122, 1995-12-30 19:02:48 +00:00
mail filenames corrected 1996-02-02 05:14:04 +00:00
make Fix the :S modifier to substitute in each word of the variable, according 1995-11-01 12:18:32 +00:00
mesg BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
mk_cmds Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
mkdep Change install' to ${INSTALL}' so that default install flags can be 1995-07-25 00:37:58 +00:00
mkfifo Correct a bunch of man page cross references and generally 1996-02-11 22:38:05 +00:00
mklocale This commit was generated by cvs2svn to compensate for changes in r13122, 1995-12-30 19:02:48 +00:00
mkstr Fix a bunch of spelling errors in a bunch of man pages. 1996-01-30 13:52:50 +00:00
modstat Undo the stupidity I inflicted on these files and replace it with 1995-04-20 05:08:53 +00:00
more Document the CRLF bug 1996-01-22 03:48:47 +00:00
msgs Localize it 1995-12-13 12:54:26 +00:00
mt . cast the error and status registers properly to (unsigned short), 1996-02-22 00:33:35 +00:00
ncftp Another round of man page cleanups. 1996-02-12 04:57:03 +00:00
netstat For some reason, the changes to make route.c compile didn't make it over. 1996-02-16 15:42:14 +00:00
nfsstat Fix a variety of minor typos and cross references in a bunch of 1996-01-20 07:29:11 +00:00
nice Check the # of arguments, instead of silently dumping core. 1995-12-10 15:33:00 +00:00
nm Add -t option which prints output in tabular format. 1995-12-19 08:12:07 +00:00
nohup BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
pagesize Correct a bunch of man page cross references and generally 1996-02-11 22:38:05 +00:00
passwd Merge in changes to support the new rpc.yppasswdd(8) and fix a few bugs. 1996-02-23 16:08:59 +00:00
paste BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
pr Remove wrong LC_TIME env. usage 1995-10-24 05:56:45 +00:00
printenv BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
printf Move out some of the shell builtin bogosity from printf's source to 1995-12-10 15:40:42 +00:00
quota fixed some printf format mismatches and some lines exceeding 80 col's 1996-01-09 21:41:01 +00:00
ranlib This commit was generated by cvs2svn to compensate for changes in r13122, 1995-12-30 19:02:48 +00:00
rdist Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
renice Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
rev BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
rlogin #include <kerberosIV/des.h> -> #include <des.h> 1996-02-11 09:18:18 +00:00
rpcgen Minor cleanup of the rpc man pages to silence manck. 1996-02-12 00:02:42 +00:00
rpcinfo Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
rs BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
rsh #include <kerberosIV/des.h> -> #include <des.h> 1996-02-11 09:18:18 +00:00
rup Fix a bunch of spelling errors in a bunch of man pages. 1996-01-30 13:52:50 +00:00
ruptime Change the errx(0,...) to errx(1,...) 1995-09-08 20:33:21 +00:00
rusers Fix a bunch of spelling errors in a bunch of man pages. 1996-01-30 13:52:50 +00:00
rwall Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
rwho Fix some incorrect locations in the FILES sections of some man pages. 1996-02-02 18:22:04 +00:00
sasc Fix a bunch of spelling errors in a bunch of man pages. 1996-01-30 13:52:50 +00:00
script Delete bogus referneces to timezone code internal header file `tzfile.h', 1995-08-07 19:17:46 +00:00
sed Merge various fixes from NetBSD. This will allow the WordPerfect for 1995-08-16 05:56:44 +00:00
sgmlfmt Fix a bunch of spelling errors in a bunch of man pages. 1996-01-30 13:52:50 +00:00
sgmls Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
shar Change install' to ${INSTALL}' so that default install flags can be 1995-07-25 00:37:58 +00:00
showmount Correct a bunch of man page cross references and generally 1996-02-11 22:38:05 +00:00
size BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
soelim BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
split This fixes 'split -l NNN foo'. As it stands split will 1995-07-07 08:23:52 +00:00
strings Use more complicated printable test to remove unnecessary 8bit chars 1995-12-28 16:31:23 +00:00
strip Add the maybe_stripped to a CLEANFILES target to get a clean obj directory 1995-08-01 21:53:35 +00:00
su #include <kerberosIV/des.h> -> #include <des.h> 1996-02-11 09:18:18 +00:00
symorder Correct a bunch of man page cross references and generally 1996-02-11 22:38:05 +00:00
systat Fix a variety of minor typos and cross references in a bunch of 1996-01-20 07:29:11 +00:00
tail Another program depending on zero'ed malloc. 1995-10-10 10:03:48 +00:00
talk Add setlocale LC_CTYPE 1995-10-24 06:02:24 +00:00
tconv Correct some manual page cross reference errors. E.g. su is a section 1996-02-02 00:26:12 +00:00
tcopy Make the counters unsigned longs so that tapes don't contain negative 1995-12-31 09:00:24 +00:00
tee BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
telnet Section SEE ALSO complete 1996-01-29 00:05:36 +00:00
tftp Kill the (hopefully) last occurance of gets(3) in the base source tree. 1995-12-27 23:23:43 +00:00
time Close out PR#723: time -l dumps core 1995-10-28 16:05:32 +00:00
tip This commit was generated by cvs2svn to compensate for changes in r13122, 1995-12-30 19:02:48 +00:00
tn3270 KNFize last change. 1995-10-09 08:17:08 +00:00
touch PR # bin/274 1995-07-08 16:47:47 +00:00
tput Remove _set_ospeed, done in tgetent now. 1995-08-05 21:33:11 +00:00
tr Updated to BSD4.4lite2. Fixes PR836. `echo abcd | tr a-d A-BC-D' now 1995-11-28 13:18:47 +00:00
true BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
tset Remove _set_ospeed, done in tgetent now. 1995-08-05 21:33:11 +00:00
tsort Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
tty BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
ul Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
uname BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
unexpand BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
unifdef BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
uniq BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
unvis BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
users Merge RELENG_2_0_5 into HEAD 1995-06-11 19:33:05 +00:00
uudecode BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
uuencode Another round of man page cleanups. 1996-02-12 04:57:03 +00:00
vacation Correct a bunch of man page cross references and generally 1996-02-11 22:38:05 +00:00
vgrind Change install' to ${INSTALL}' so that default install flags can be 1995-07-25 00:37:58 +00:00
vi Add manpage links for ex.1 view.1 nex.1 nview.1 nvi.1 1996-01-23 00:26:01 +00:00
vis Add setlocale LC_CTYPE 1995-10-26 22:26:15 +00:00
vmstat Reduced vm dependencies. Only `struct vmmeter.h' is required. 1995-12-13 15:01:13 +00:00
w Change locale to LC_ALL, there is no bitmask 1995-10-26 11:03:08 +00:00
wall The talkd security hole can ealso be exploited by wall (and thus rwall). 1994-10-23 15:33:55 +00:00
wc Localize it. 1996-01-10 21:42:14 +00:00
what Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
whereis BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
which This commit was generated by cvs2svn to compensate for changes in r13122, 1995-12-30 19:02:48 +00:00
who Add setlocale LC_TIME 1995-10-24 04:06:02 +00:00
whois BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
window Correct some manual page cross reference errors. E.g. su is a section 1996-02-02 00:26:12 +00:00
write Do unctrl in right way 1995-11-05 09:02:10 +00:00
xargs BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
xinstall Kludge-fix for a specific instance of bin/517. 1996-02-08 06:17:50 +00:00
xlint replace 'install' with ${INSTALL} 1996-02-06 23:36:16 +00:00
xstr Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
yacc Install yacc with a link as byacc (and the man page). Some gnu autoconf 1996-01-08 09:20:16 +00:00
yes BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
ypcat Correct a bunch of man page cross references and generally 1996-02-11 22:38:05 +00:00
ypmatch Correct a bunch of man page cross references and generally 1996-02-11 22:38:05 +00:00
ypwhich More XDR routine cleanups. These three programs should be the only 1995-12-15 03:39:46 +00:00
Makefile Include both, the regular and the `secure' telnet, when building 1996-02-13 09:24:43 +00:00
Makefile.inc BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00