freebsd-dev/usr.bin
Mike Pritchard d33c4953e7 Print some warnings if root invokes chpass and sets the
shell to one of the following:

- a non-existent file
- a non-regular file
- a file without any execute bits set

The shell is still set to whatever they entered even if the above
conditions exist (hey, it is the super user doing this after all :-),
but this might give the admin. some warning that they are about to screw
themselves and give them a chance to fix it before it is too late.

Inspired by: some new FreeBSD user on USENET who set his root shell
  to a shell that doesn't exist and now can't gain access to root (don't
  worry, I sent him some mail on how to recover from this).
1996-04-11 05:30:18 +00:00
..
apply Change an incorrect reference to the "-n" flag to "-#". 1996-03-11 03:09:00 +00:00
ar Correct some man page xrefs, and some other minor changes to bring some 1996-04-08 04:18:31 +00:00
at Use ${ECHO} instead of echo' so that make -s' is fairly quiet. 1996-02-25 20:25:05 +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 Easter was one day to fast. 1996-04-09 19:48:31 +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 Print some warnings if root invokes chpass and sets the 1996-04-11 05:30:18 +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 Use strtoq() instead of strtol() so that large inums, and sizes can be 1996-04-07 12:58:13 +00:00
finger Allow the user to disable the use of T/TCP by setting the -T option. 1996-03-15 16:41:49 +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 Correct some man page cross references and file location references. 1996-04-07 00:06:21 +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 Correct some man page cross references and file location references. 1996-04-07 00:06:21 +00:00
gprof4 Implemented non-statistical kernel profiling. This is based on 1995-12-29 15:30:05 +00:00
head first check the count and then get 1996-02-26 22:46:36 +00:00
hexdump Correct some cross references and some path names. 1996-04-06 09:47:30 +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 Include queue.h in preparation for upcoming struct socket changes. 1996-03-11 12:56:07 +00:00
key Correct some man page xrefs, and some other minor changes to bring some 1996-04-08 04:18:31 +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 Now that we install the `flex' alias for our lex, we should also 1996-02-24 16:31:31 +00:00
locate Use '-fstype ufs' rather than '-fstype local' on the find command to avoid 1996-03-05 13:07:04 +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 Correct some cross references and some path names. 1996-04-06 09:47:30 +00:00
make Fix a typo. 1996-04-07 01:18:20 +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 $* -> $@ 1996-04-05 22:13:49 +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 Move #include of queue.h before #include of socketvar.h in preparation for 1996-03-11 13:01:12 +00:00
nfsstat From Lite2: rename fs to vfs. 1996-03-11 03:06:45 +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 Correctly match the format flags and their descriptions. 1996-04-09 21:46:24 +00:00
quota fixed some printf format mismatches and some lines exceeding 80 col's 1996-01-09 21:41:01 +00:00
ranlib Phkmalloc strikes again. 1996-03-07 08:59:53 +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 Make sure there is a linefeed at the end of generated HTML files. 1996-03-26 13:26:53 +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 Include queue.h in preparation of struct socket changes. 1996-03-11 13:00:12 +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 -x option to the usage string. 1996-03-11 03:36:10 +00:00
su Make su a little less fascist about using Kerberos if it is not 1996-03-11 22:14:52 +00:00
symorder Correct a bunch of man page cross references and generally 1996-02-11 22:38:05 +00:00
systat Localize time 1996-03-31 16:39:26 +00:00
tail Another program depending on zero'ed malloc. 1995-10-10 10:03:48 +00:00
talk Cast to unsigned char instead of unsigned 1996-04-03 07:47:35 +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 Correct some man page xrefs, and some other minor changes to bring some 1996-04-08 04:18:31 +00:00
tn3270 Fixed a type mismatch in crufty misconfigured compatibilty code. 1996-03-19 15:11:13 +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 Cast char's to (u_char) before passing them to isctype() functions. 1996-03-19 21:21:06 +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 Correct some man page xrefs, and some other minor changes to bring some 1996-04-08 04:18:31 +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 Minor correction regarding the last line of an uuencoded file. 1996-03-17 09:49:51 +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 `~a'', `~i'' etc. cause vi to core dump 1996-03-03 15:47:43 +00:00
vis Add setlocale LC_CTYPE 1995-10-26 22:26:15 +00:00
vmstat Print number of second-level cache hits as per-directory, not per-process 1996-03-03 09:06:59 +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 Do not exit if a file is not readable. This is a short hack 1996-04-10 22:21:01 +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 man page cross references and file location references. 1996-04-07 00:06:21 +00:00
write Do unctrl in right way 1995-11-05 09:02:10 +00:00
xargs Make xargs take into account the bytes occupied by the environment. 1996-03-05 07:43:40 +00:00
xinstall Don't reference NULL pointers if owner and/or group are omitted. 1996-04-08 10:59:36 +00:00
xlint Do not include math.h because it isn't used and it causes 1996-04-09 17:17:31 +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 Add xlint 1996-03-24 14:09:33 +00:00
Makefile.inc BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00