freebsd-dev/usr.bin
Bill Paul 9e32e2330f Obtained from: The NYS project
This is the first round of changes to incorporate YP server functionality
into FreeBSD. This particular change allows passwd to change either the
local or NIS password, as well as the NIS GECOS and shell information.

Essentially, I've taken passwd(1) and yppasswd from the yppasswd-0.5
distribution (which is part of the NYS project -- a project to provide
a GNU GPL'ed suite of NIS tools) and rammed them into each other
at high speed. I've tried my best to make this co-exist with the
Kerberos stuff, but since I don't run Kerberos I don't have an easy
way to verify that it all works. If you choose any Kerberos flags
then the YP checks should be bypassed, but that may not be enough.
I'll modify it some more if it turns out I broke something. For now,
support for localand NIS passwords is pretty solid:

- If you simply type 'passwd,' the program checks to see if you exist
  in the local pwd.db database. If not, you get bounced to YP.

- If you try to force local functionality with the -l flag and you
  don't exist locally, you get an error.

The -y flag can be used to force YP functionality. -f and -s let you
change your full name and shell (respectively). -f *and* -s let you
change all of your 'account information.'

ypchfn, ypchsh, yppasswd and ypchpass are all links to passwd.
1995-01-31 08:34:16 +00:00
..
apply BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
apropos BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
ar Old fix from Robert Crowe <bob@speakez.com> that has been sitting in 1995-01-09 04:50:30 +00:00
at Changed reference from NetBSD to FreeBSD 1994-01-05 01:10:24 +00:00
banner More merry makefile munging for man page compatability. 1994-08-05 19:00:04 +00:00
basename BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
bdes 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 BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
calendar Reflects $HOME dir handling 1994-12-31 12:32:01 +00:00
cap_mkdb BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
chat Use proper device names. 1994-12-19 01:22:21 +00:00
checknr BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
chflags Document the arch flag. It has always worked in 2.0. 1994-12-27 16:49:08 +00:00
chpass Add a `-p' option, allowing the super-user to directly set a user's 1995-01-14 23:14:25 +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 Obtained from: looked at the fix in 1.1.5 and rewrote it 1995-01-17 07:02:31 +00:00
colcrt BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +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 Fix include directive bobble. 1995-01-14 22:30:32 +00:00
compress Correct the usage of the maxmaxcode so that compress -b 12 works again. 1995-01-02 10:04:02 +00:00
cpp Define __GNUC__ as 2 same as cc -E would do. 1994-09-05 13:58:58 +00:00
ctags BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
cut BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
diff BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
dig Correct the dig manpage that has some macros in it, that our man system 1994-11-19 13:12:37 +00:00
dirname BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
du The last commit was bogus...the putenv doesn't affect the parent process, 1994-08-12 10:19:05 +00:00
env BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
error BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
expand BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
f2c Don't default to -g in ${CFLAGS}. Developers can still use `make g=-g ...' 1995-01-21 14:41:45 +00:00
false BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
fib Update the parser to handle the color specifications and new attr 1995-01-30 02:43:28 +00:00
file Shell script containing the steps followed in importing file(1). 1994-09-03 23:08:40 +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 BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
finger Add Sean Eric Fagan's support for a ~/.nofinger file for user who prefer 1995-01-04 01:02:43 +00:00
fmt BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +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 BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
fsplit BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
fstat Converted 'vmunix' to 'kernel'. 1994-08-05 09:14:37 +00:00
ftp Add -p flag and pftp alias for passive ftp 1994-09-29 20:55:25 +00:00
gcore Add dependencies on libraries to DPADD. Someday this should be done 1994-08-28 18:49:06 +00:00
getopt Added README which explains the copyright status of getopt(1) 1993-07-27 17:24:17 +00:00
gprof Added much-needed new options -[lL], to suppress printing of either the 1994-12-22 20:52:15 +00:00
grep/egrep Add dependencies on libraries to DPADD. Someday this should be done 1994-08-28 18:49:06 +00:00
head BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
hexdump Change .0 man extents to .1, as reported by Julian Elischer. Whoops, 1994-08-13 05:00:39 +00:00
host Changed the usage of the new not existant manpage macros CMD_EXT, INDOT 1994-12-12 00:23:00 +00:00
id Make id' and groups' somewhat faster and less cpu-intensive :-) 1994-10-11 02:13:21 +00:00
indent BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
ipcrm Utility for deleting message queues, semaphores and shared memory segments. 1994-09-13 16:52:12 +00:00
ipcs NetBSD -> FreeBSD 1994-11-19 18:19:27 +00:00
join BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
jot BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
kdump -I${.CURDIR}/../.. 1994-11-21 00:54:28 +00:00
key Include most of the logdaemon v4.4 S/key changes 1994-10-19 00:03:45 +00:00
keyinfo 1) Added s/key support . 1994-05-19 18:13:11 +00:00
keyinit Include most of the logdaemon v4.4 S/key changes 1994-10-19 00:03:45 +00:00
ktrace Reviewed by: 1994-08-28 15:49:55 +00:00
lam BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
last BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
lastcomm BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
ld BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +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 Change references to flex(1) and flexdoc(1) to lex(1) and 1994-08-27 10:00:14 +00:00
locate Better protection against too long pathes and 8bit controls in file 1995-01-21 05:50:50 +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 In the non-PARANOID case, make sure to set `notickets' to 0 sothat login.c 1995-01-20 23:07:10 +00:00
logname BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
look BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
lorder lorder(1) manual page not properly installed due to makefile usurping 1994-10-27 19:23:30 +00:00
lsvfs Fix compilation error and formatting mistake. 1994-09-22 20:21:59 +00:00
m4 Skip nulls in putback to don't confuse with EOFs 1994-12-19 00:26:20 +00:00
mail BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
make Bring in a number of changes from NetBSD's make, fixing quite a few 1995-01-23 21:03:17 +00:00
man BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
mesg BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
mk_cmds Port to FreeBSD. (Sorry there's no man page yet.) 1995-01-19 22:27:58 +00:00
mkdep Fix -p option sed script so that it really does change program.o: into 1994-10-03 23:01:03 +00:00
mkfifo BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
mklocale Fix owner/mode for installed data 1995-01-30 15:34:06 +00:00
mkstr BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
modstat Kill explicit OS specification. 1994-08-19 13:39:20 +00:00
more Back out part of ctype fixes, unneded with new ctypoe 1994-10-09 15:40:07 +00:00
msgs Change all references to LIBTERM and -ltermlib to LIBTERMCAP and -ltermcap 1994-09-11 22:01:45 +00:00
mt Andreas Klemm's tape erase patches from 1.1.5.1. 1994-10-28 13:21:57 +00:00
ncftp Merge. 1995-01-24 00:41:11 +00:00
netstat Don't print protocol-cloned routes by default (enabled by -a flag). 1995-01-23 20:19:16 +00:00
nfsstat Use new NFS sysctl interface to get statistics rather than reading /dev/kmem, 1994-10-23 23:25:43 +00:00
nice BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
nm Fix bug with printing out short archive entries, 1994-12-28 14:11:21 +00:00
nohup BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
pagesize More merry makefile munging for man page compatability. 1994-08-05 19:00:04 +00:00
passwd Obtained from: The NYS project 1995-01-31 08:34:16 +00:00
paste BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
patch BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
pr BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
printenv BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
printf BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
quota BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
ranlib Fixed two bugs: some malloced space wasn't freed after it was no longer 1995-01-09 05:59:04 +00:00
rdist BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
renice Add renice's correct man page to the Makefile. 1994-08-11 01:33:22 +00:00
rev BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
rlogin Add distribution=krb for P-HK 1994-11-20 23:23:28 +00:00
rpcgen Move RPC stub generator program over from 1.1.5. 1994-08-07 18:01:39 +00:00
rpcinfo Move rpcinfo program over from 1.1.5. Based on original work by J.T. Conklin 1994-08-07 18:23:25 +00:00
rs BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
rsh Fix Sharnoff complain bin/136 (-e flag doesn't work). 1995-01-14 20:36:22 +00:00
rup Fixed a typo. Seems this manual page has stemmed from the rwall 1994-11-18 21:37:40 +00:00
ruptime BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
rusers rusers from FreeBSD 1.1.5.1 1994-08-28 15:06:02 +00:00
rwall rwall from FreeBSD 1.1.5.1 1994-08-28 15:11:02 +00:00
rwho My prevoius commit missed some things. The out_line didn't need 1994-12-27 00:53:14 +00:00
sccs BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
script BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
sed Submitted by: Philippe Charnier 1994-12-01 22:19:02 +00:00
shar More merry makefile munging for man page compatability. 1994-08-05 19:00:04 +00:00
showmount Use the right man page. 1994-08-11 01:38:23 +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
sort BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
split BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
strings BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
strip strip not close files on error 1994-12-18 01:18:17 +00:00
su Add distribution=krb for P-HK 1994-11-20 23:23:28 +00:00
symorder Use exactly the same checks in excluded() as in inlist(): ignore stabs and 1995-01-21 10:24:18 +00:00
systat extern.h, iostat.c, main.c, vmstat.c: 1994-12-03 10:06:40 +00:00
tail BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
talk Add check for writeable terminal 1994-12-30 16:09:31 +00:00
tconv The Makefile contained in usr.bin/tconv contains a bogus 1995-01-15 06:19:01 +00:00
tcopy BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
tee BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
telnet Fix big f*ckup by doing "make nocrypt" 1994-08-27 15:46:29 +00:00
tftp BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
time BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
tip Use ASCII lock instead of BINARY one. 1994-12-19 01:57:17 +00:00
tn3270 Get rid of gets 1994-11-29 01:11:43 +00:00
touch BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
tput Fix includes, tputs argument, ospeed setting, printing 1994-12-12 06:14:42 +00:00
tr Fix print class mistype 1994-10-28 23:31:48 +00:00
true BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
tset Set given term name exactly, not first name from termcap entry. 1994-11-07 20:26:35 +00:00
tsort BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
tty BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
ul BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +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 BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
uucp More merry makefile munging for man page compatability. 1994-08-05 19:00:04 +00:00
uudecode BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
uuencode More merry makefile munging for man page compatability. 1994-08-05 19:00:04 +00:00
vacation BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
vgrind Build database at build time instead of at install time. 1994-09-05 14:07:37 +00:00
vi Fixed coredump when issuing d$ on a blank line. Fixes bin/191. 1995-01-28 01:58:14 +00:00
vis BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
vmstat Added 'pages in VM cache' statistic. 1995-01-10 05:52:59 +00:00
w idle time == 0 printed now as "-" like in good old BSD 1994-09-27 01:00:18 +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 BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
what BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
whatis BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
whereis BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
which Unify the copyright notice. 1995-01-30 22:21:29 +00:00
who BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
whois BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
window Nuke bogus duplicate decls. 1994-12-18 11:59:37 +00:00
write BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
xargs BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
xinstall Reviewed by: 1994-09-04 22:35:27 +00:00
xstr BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
yacc Fix man extents from .0 to .1 1994-08-11 01:42:28 +00:00
yes BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
ypcat Move more YP user programs over. 1994-08-08 01:13:35 +00:00
ypmatch Move more YP user programs over. 1994-08-08 01:13:35 +00:00
ypwhich Move more YP user programs over. 1994-08-08 01:13:35 +00:00
Makefile add file2c 1995-01-29 00:51:38 +00:00
Makefile.inc BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00