Todd C. Miller
8fcdf8a300
Don't need to worry about catching too many signals since we do locking
...
on the tmp file. If a lockfile is really stale, it will be detected
and overwritten.
1999-08-27 21:01:06 +00:00
Todd C. Miller
804e168d90
o NewArgv and NewArgc don't need to be externally visible.
...
o If pedantic > 1, it is a parse error.
o Add -s (strict) option to visudo which sets pedantic to 2.
1999-08-17 15:29:47 +00:00
Todd C. Miller
2386dc1b45
o Add a "pedentic" flag to the parser. This makes sudo warn in cases
...
where an alias may be used before it is defined. Only turned on for visudo
and testsudoers.
o Add --disable-authentication option that makes sudo not require
authentication by default. The PASSWD tag can be used to require
authentication for an entry. We no longer overload --without-passwd.
1999-08-12 14:37:27 +00:00
Todd C. Miller
76148d5316
o Move lock_file() and touch() into fileops.c so visudo can use them
...
o Visudo now locks the sudoers temp file instead of bailing when
the temp file already exists. This fixes the problem of stale
temp files but it does *require* that you not try to put the
temp file in a world-writable directory. This shoud not be
an issue as the temp file should live in the same dir as sudoers.
o Visudo now only installs the temp file as sudoers if it changed.
1999-08-07 09:59:43 +00:00
Todd C. Miller
145992dce2
o /etc/stmp -> /etc/sudoers.tmp since solaris uses stmp as shadow temp file
...
o _PATH_SUDO_SUDOERS -> _PATH_SUDOERS and _PATH_SUDO_STMP -> _PATH_SUDOERS_TMP
1999-08-06 09:37:03 +00:00
Todd C. Miller
0d732401f4
add 4th term to license similar to term 5 in the apache license
1999-07-31 16:19:50 +00:00
Todd C. Miller
4dc01cc916
o BSD-style copyright
...
o Use "struct sudo_user" instead of old globals.
o some cometic cleanup
1999-07-22 12:57:47 +00:00
Todd C. Miller
b144c103f0
stylistic changes
1999-07-12 10:53:09 +00:00
Todd C. Miller
80287c981c
Move interface-related defines to interfaces.h so we don't have to include
...
<netinet/in.h> everywhere.
1999-05-17 01:36:30 +00:00
Todd C. Miller
06e586ee7b
Function names should be flush with the start of the line so they can be found trivially in an editor and with grep
1999-04-10 04:49:03 +00:00
Todd C. Miller
eecc5ce1c9
free(3) is already void, no need to cast it
1999-04-10 04:40:57 +00:00
Todd C. Miller
59b0cff8cf
Stash the "safe" path (ie: the one listed in sudoers) to the command instead
...
of stashing the struct stat. Should be safer.
1999-04-10 04:10:01 +00:00
Todd C. Miller
e6deacb6c4
Crank version to 1.6 and combine copyright statements
1999-04-05 20:57:25 +00:00
Todd C. Miller
a234aee2c6
Shift return value of system(3) by 8 to get real exit value and if it is not 1 or 0 print the retval along with the error message.
1999-04-02 21:02:57 +00:00
Todd C. Miller
79c46d1c81
++version
1999-03-29 04:05:15 +00:00
Todd C. Miller
382ef75493
Use emalloc/erealloc/estrdup
1999-03-29 02:59:34 +00:00
Todd C. Miller
52916f16ac
add explicate copyright
1999-02-03 04:32:19 +00:00
Todd C. Miller
826fe213f2
add sudo tags
1999-01-17 23:16:20 +00:00
Todd C. Miller
d3aaf52283
crank version and regen files
1999-01-17 22:40:55 +00:00
Todd C. Miller
62dba8f4d1
more -Wall
1998-11-18 04:16:13 +00:00
Todd C. Miller
c253188f55
-Wall
1998-11-18 03:51:10 +00:00
Todd C. Miller
5bfb481ca7
no more options.h
1998-10-15 05:41:26 +00:00
Todd C. Miller
0ef9f25d7e
updated version
1998-09-17 16:27:15 +00:00
Todd C. Miller
e68f156aca
add RUNAS_DEFAULT
1998-09-08 00:42:02 +00:00
Todd C. Miller
ae7a8f4978
fix some fprintf args, ariel@oz.engr.sgi.com (Ariel Faigon)
1998-05-02 18:16:03 +00:00
Todd C. Miller
12477fd6e6
updated version
1998-04-06 03:35:50 +00:00
Todd C. Miller
e37e1e56b6
updated version
1998-03-31 05:05:49 +00:00
Todd C. Miller
c866646cdf
updated version
1998-02-18 21:39:31 +00:00
Todd C. Miller
2fc787d5f6
updated version
1998-02-17 02:43:17 +00:00
Todd C. Miller
bc7803cd08
updated version
1998-02-06 20:49:24 +00:00
Todd C. Miller
0c362fb216
updated version
1998-01-21 06:33:06 +00:00
Todd C. Miller
bb6a33e080
updated version
1998-01-21 05:50:58 +00:00
Todd C. Miller
166789a1dd
++version
1998-01-13 04:48:42 +00:00
Todd C. Miller
82654611c3
catch the case where the user is not in the passwd file
1997-11-23 18:28:09 +00:00
Todd C. Miller
5e723efe75
++version
1996-11-14 02:37:56 +00:00
Todd C. Miller
75704661b1
buffer oflow checking
...
q (uit) -> Q
if yyparse() fails drop into whatnow
1996-11-14 00:21:35 +00:00
Todd C. Miller
df20cedfc1
now warns if killed by signal
...
./
1996-11-12 16:58:35 +00:00
Todd C. Miller
4b6e45e639
deal with case where there is no sudoers file
1996-10-30 23:04:02 +00:00
Todd C. Miller
b0248f15df
++version
1996-10-07 05:07:09 +00:00
Todd C. Miller
6a230806a8
courtesan
1996-09-08 00:21:42 +00:00
Todd C. Miller
d189849b44
++version
1996-08-30 00:37:04 +00:00
Todd C. Miller
81bdc0aa1f
now do chmod and chown after edit of temp file and before rename
1996-08-22 18:00:46 +00:00
Todd C. Miller
35825133a7
++version
1996-08-17 23:25:40 +00:00
Todd C. Miller
d10ba268d8
now uses init_parser()
1996-08-17 22:29:04 +00:00
Todd C. Miller
945d9795ef
fixed dummy command_matches()
1996-07-22 19:50:59 +00:00
Todd C. Miller
27d484f3f0
added cmnd_args def
1996-07-22 19:29:53 +00:00
Todd C. Miller
f3cdb9aa39
fixed a comment
1996-06-06 19:35:57 +00:00
Todd C. Miller
8263fc99d5
runas_user is now initialized to "root"
1996-04-28 21:20:29 +00:00
Todd C. Miller
aa92ab8df5
added support for "runas" from garp@opustel.com
...
replaced SUDOERS_OWNER with SUDOERS_UID, SUDOERS_GID
added support for SUDOERS_MODE
1996-04-28 01:03:30 +00:00
Todd C. Miller
058a58a501
now uses shost even if not FQDN
1996-03-11 19:05:55 +00:00