Commit Graph

2669 Commits

Author SHA1 Message Date
Todd C. Miller
975a58f6c4 Document -a flag 2000-10-26 17:01:50 +00:00
Todd C. Miller
0208b22686 Add support for BSD authentication. 2000-10-26 16:42:40 +00:00
Todd C. Miller
e7ee4f9885 Fix typo; from sato@complex.eng.hokudai.ac.jp 2000-10-19 14:09:07 +00:00
Todd C. Miller
2365c52b21 Mention negating umask 2000-10-12 13:49:45 +00:00
Todd C. Miller
04777172c0 Allow user to specify umask of 0777 (same as !umask) 2000-10-12 05:30:30 +00:00
Todd C. Miller
44b9e4d4b3 Fix a typo and give a URL for the sudo history. 2000-10-09 01:46:55 +00:00
Todd C. Miller
ded7261fad fix typos; pepper@reppep.com 2000-10-08 16:25:58 +00:00
Todd C. Miller
9745a31948 sudo_setenv() now exits on memory alloc failure instead of returning -1. 2000-09-14 20:48:58 +00:00
Todd C. Miller
deb5b07f40 Strip out NLSPATH and PATH_LOCALE from the environment for FreeBSD
and possibly others.
2000-09-07 21:41:16 +00:00
Todd C. Miller
2ff3a2315e Don't use vsyslog(3) since HP-UX (and others?) lack it. This means
that "%m" won't be expanded but we don't use that anyway since the
logging routines may splat to stderr as well.
2000-09-07 14:43:26 +00:00
Todd C. Miller
ed7827decc Add always_set_home variable 2000-09-07 01:35:39 +00:00
Todd C. Miller
4f743f06be Have to hard code default values in help since the defaults
are set _after_ the help stuff.
2000-09-07 01:24:45 +00:00
Todd C. Miller
d64ad77515 Allow special characters (including '#') to be embedded in pathnames
if quoted by a '\\'.  The quoted chars will be dealt with by fnmatch().
Unfortunately, 'sudo -l' still prints the '\\'.
2000-08-31 17:08:35 +00:00
Todd C. Miller
641e30612f Better path searching for programs we need. 2000-08-13 21:10:49 +00:00
Todd C. Miller
81cf72ec6e Add section on "C compiler cannot create executables" errors. 2000-08-13 21:10:28 +00:00
Todd C. Miller
87ccf62b70 Crank version 2000-08-13 21:10:00 +00:00
Todd C. Miller
fafefc1df9 Substitute values from configure into man pages. 2000-08-13 21:09:22 +00:00
Todd C. Miller
6525e882a4 The listpw and verifypw sudoers options would not take effect because
the value of the default was checked *before* sudoers was parsed.
Instead of passing in the value of PWCHECK_* to sudoers_lookup(),
pass in the arg for def_ival() so the check can be deferred until
after sudoers is parsed.
2000-08-12 20:48:29 +00:00
Todd C. Miller
d76537718b When writing prompt, no need to write the NUL as well; hag@linnaean.org 2000-08-11 19:41:28 +00:00
Todd C. Miller
8f9dfff262 When looking for chown, check in /sbin too 2000-06-09 16:25:26 +00:00
Todd C. Miller
d9a6458794 Remove extraneous call to init_defaults() and set runas_user to NULL
betweem parses so init_defaults will reset it each time, thus avoiding
a reference to free()d data.
2000-06-05 02:57:10 +00:00
Todd C. Miller
d7050d5615 Add support for using getifaddrs() to get the list of ip addr / netmask
pairs.  Currently IPv4-only.
2000-06-04 23:57:22 +00:00
Todd C. Miller
61048797f0 Add a missing check for UserEditor == NULL
Add missing '+' before line number when invoking editor to fix a syntax error
2000-06-04 23:51:05 +00:00
Todd C. Miller
7a2dfb77fb Call clean_env very early in main() for paranoia's sake. Idea from
Marc Esipovich.
2000-05-12 20:55:35 +00:00
Todd C. Miller
fc15c3dbd1 Update proto for evasprintf and easprintf 2000-05-10 05:11:36 +00:00
Todd C. Miller
b00e117e31 Make easprintf() and evasprintf() return an int. 2000-05-10 05:10:33 +00:00
Todd C. Miller
192b2ae6c3 If the targetpw flag is set, use target username as part of the timestamp path.
If tty tickets are in effect cat the tty and the target username with a
':' as the separator.
2000-05-10 04:56:28 +00:00
Todd C. Miller
7dce46e8cc Backout part of last change; setting PAM_USER to the invoking user
breaks things like targetpw.
2000-05-09 16:05:41 +00:00
Todd C. Miller
b6becc5775 set tty and username via pam_set_item 2000-05-09 15:52:31 +00:00
Todd C. Miller
165bd7fafb Fix root, runas, and target authentication for non-passwd file auth
methods.
2000-05-09 15:42:38 +00:00
Todd C. Miller
30daa83259 Use B<-Z> not C<-Z> for command line flags in all places. This is more
consistent and works around a bug in Pod::Man.
2000-04-22 18:15:15 +00:00
Todd C. Miller
2d50daad2b Fix an occurence of 'semicolon' that should be 'colon' 2000-04-22 17:59:26 +00:00
Todd C. Miller
576ea0ed17 Fix --with-badpri help line 2000-04-19 19:30:28 +00:00
Todd C. Miller
455f27816f Bracket calls to syslog with an openlog() and closelog() since some
authentication methods (like PAM) may do their own logging via
syslog.  Since we don't use syslog much (usually just once per
session) this doesn't really incur a performance penalty.
It also Fixes a SEGV with pam_kafs.
2000-04-17 18:01:14 +00:00
Todd C. Miller
978e3f8bc0 Fix -H flag. runas_homedir is only valid after set_perms(PERM_RUNAS, mode) 2000-04-15 20:32:59 +00:00
Todd C. Miller
aef6d6ddb7 Clarify the fact that insults are not enabled just by including
them in the binary.
2000-04-12 22:56:44 +00:00
Todd C. Miller
dffa5b0145 Regenerated with perl 5.6.0 pod2man 2000-04-07 14:39:23 +00:00
Todd C. Miller
7e00f9c376 Give date string to pod2man since its default is ugly and it ain't got
no alibi.
2000-04-07 14:38:07 +00:00
Todd C. Miller
0755c34a8e Do section substitution on the output of pod2man and remove hack needed
for old pod2man.
2000-04-07 14:27:31 +00:00
Todd C. Miller
d4be49c5fc Put back real man sections, we will do the substitution later. 2000-04-07 14:26:23 +00:00
Todd C. Miller
fc6fe43af5 Don't bother checking for the path to vi if user specified --with-editor 2000-04-02 15:44:06 +00:00
Todd C. Miller
0c061c0376 Visudo now does its own fork/exec instead of calling system(3). 2000-04-01 22:25:41 +00:00
Todd C. Miller
6dd2d9592e Visudo now checks for the existence of an editor and gives a sensible
error if it does not exist.

The path to the editor for visudo is now a colon-separated list of
allowable editors.  If the user has $EDITOR set and it matches
one of the allowed editors that editor will be used.  If not,
the first editor in the list that actually exists is used.
2000-04-01 21:23:28 +00:00
Todd C. Miller
2588aeaa5c Clear up confusion wrt sudo's return value. 2000-04-01 21:22:11 +00:00
Todd C. Miller
aaa68a2b49 Strip sudo and visudo for bindist target 2000-03-27 17:08:46 +00:00
Todd C. Miller
6c94d8d231 Use @mansectsu@ and @mansectform@ in the man page bodies as well. 2000-03-27 03:26:24 +00:00
Todd C. Miller
92132436be Typo: @sysconf@ -> @sysconfdir@ 2000-03-27 03:07:35 +00:00
Todd C. Miller
a9a9e6601a 'make dist' should not cause any files to be modified so remove
its dependencies.
2000-03-27 02:57:52 +00:00
Todd C. Miller
b2a1d4ee7f Whoops, forgot to add release marker 2000-03-27 02:43:45 +00:00
Todd C. Miller
b7fdfdab4d Final change for 1.6.3 (or so I hope) 2000-03-26 16:57:31 +00:00