Commit Graph

2201 Commits

Author SHA1 Message Date
Todd C. Miller
ecb8d08e2e buf should be prompt; Michael Robokoff <mrobo@networkcs.com> 1999-04-06 17:20:39 +00:00
Todd C. Miller
f50a342b4e It is now possible to use the '!' operator in a runas list as
well as in a Cmnd_Alias, Host_Alias and User_Alias.
1999-04-06 05:40:51 +00:00
Todd C. Miller
d53f3818ad Kill GLOBAL_NO_SPW_ENT (not used) and crank GLOBAL_PROBLEM 1999-04-06 05:38:59 +00:00
Todd C. Miller
1818ace053 Definitions of *_matched were wrong--user top, not top-2 as subscript. 1999-04-06 05:08:40 +00:00
Todd C. Miller
499e869237 Add VALIDATE_NOT_OK_NOPASS for when user is not allowed to run a command
but the NOPASSWD flag was set.
Make runasspec, runaslist, runasuser, and nopasswd typeless in parse.yacc
Add support for '!' in the runas list
Fix double printing of '%' and '+' for groups and netgroups respectively
Add *_matched macros (no need for local stack variable).  Should only be
used directly after a pop (since top must be >= 2).
1999-04-06 05:00:29 +00:00
Todd C. Miller
9284e417ca Add copyright, somewhat silly 1999-04-06 03:25:46 +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
9a9dc3fabc Use ! not ^ to do negation 1999-04-05 20:30:15 +00:00
Todd C. Miller
094a29a66b regen 1999-04-05 20:29:54 +00:00
Todd C. Miller
4f6f75ae35 Make runas and NOPASSWD tags persistent across entris in a command list.
Add a PASSWD tag to reverse NOPASSWD.  When you override a runas or *PASSWD
tag the value given becomes the new default for the rest of the command list.
1999-04-05 20:28:16 +00:00
Todd C. Miller
321906bfb5 update for 1.5.9 1999-04-02 21:03:17 +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
1116756bff testsudoers needs LIBOBJS too 1999-03-30 21:45:27 +00:00
Todd C. Miller
49c5a12d8c Fix another parser bug. For a sudoers entry like this:
millert	ALL=/bin/ls,(daemon) !/bin/ls
sudo would not allow millert to run ls as root.
1999-03-30 17:17:54 +00:00
Todd C. Miller
b3f330600e new change 1999-03-30 06:08:42 +00:00
Todd C. Miller
baae4d4dd9 Save entries that match a ! command on the matching stack too 1999-03-30 06:03:38 +00:00
Todd C. Miller
1b56f53a40 Make sudo's usage info better when mutually exclusive args are given and don't rely on argument order to detect this; nick@zeta.org.au 1999-03-30 06:01:46 +00:00
Todd C. Miller
2c7a8ba7b4 updates from CU 1999-03-29 20:03:02 +00:00
Todd C. Miller
3f7ace9eed use gzip 1999-03-29 04:38:06 +00:00
Todd C. Miller
75fb22990f Fix off by one error introduced in *alloc changes 1999-03-29 04:31:16 +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
d8947486ec error checking memory allocation routines 1999-03-29 01:29:02 +00:00
Todd C. Miller
e4b42c5eac Still not right, this fixes it for real 1999-03-29 00:23:49 +00:00
Todd C. Miller
b789f9e932 Fix for previous commit 1999-03-29 00:08:02 +00:00
Todd C. Miller
217710df36 Fix a parser bug that was exposed when mixing different runas specs
and ! commands.  For example:
    millert        ALL=(daemon) /usr/bin/whoami,!/bin/ls
would allow millert to run whoami as root as well as daemon when it should
just allow daemon.  The problem was that comma-separated commands in
a list shared the same entry on the matching stack.  Now they get
their own entry iff there is a full match.  It may be better to just make
the runas spec persistent across all commands in a list like the user
and host entries of the matching stack.  However, since that is a
fairly major change it should gets its own minor rev increase.
1999-03-29 00:05:15 +00:00
Todd C. Miller
bd76c13333 Simplify PAM code and fix a PAM-related warning on Linux 1999-03-28 18:50:25 +00:00
Todd C. Miller
37873b23d5 updates 1999-03-26 18:17:43 +00:00
Todd C. Miller
56b0eb23fc better su entry 1999-03-26 18:12:22 +00:00
Todd C. Miller
07b9914ed0 regen 1999-03-26 18:10:25 +00:00
Todd C. Miller
c38c66b2b2 new pam code that works on solaris, should work on linux too; aelberg@home.com 1999-03-26 18:09:09 +00:00
Todd C. Miller
958ccf5214 more entries 1999-03-19 19:44:46 +00:00
Todd C. Miller
2a5776995a only include strings.h if there is no string.h 1999-03-19 19:43:28 +00:00
Todd C. Miller
5dcb02b2a0 Sinix is now being called ReliantUNIX; bjjackso@us.oracle.com 1999-03-17 20:25:39 +00:00
Todd C. Miller
c74286542b shost must be set before log functions are called #ifdef HOST_IN_LOG 1999-03-13 18:37:57 +00:00
Todd C. Miller
736359ccea Fix a bug wrt quoting characters in command args. Stop processing an arg when you hit a backslash so the quoted-character detection can catch it. 1999-03-07 23:34:31 +00:00
Todd C. Miller
ddb4cacb46 include sys/time.h; aparently AIX needs it. ppz@cdu.elektra.ru 1999-02-26 06:19:49 +00:00
Todd C. Miller
3e14f7237a add missing case statement so --without-sendmail works 1999-02-24 00:43:51 +00:00
Todd C. Miller
59321981d6 more 1999-02-23 02:51:43 +00:00
Todd C. Miller
6bf7f60c2d only search for -lsun in irix <= 4.x 1999-02-22 20:10:51 +00:00
Todd C. Miller
89bdafdc36 back out last configure.in change now that I've hacked autoconf to fix the real problem and add a missing newline 1999-02-22 20:01:47 +00:00
Todd C. Miller
8aa6c700b0 updated 1999-02-22 19:32:43 +00:00
Todd C. Miller
cd8cc0d00d add def of dirfd() for those without it 1999-02-22 19:05:06 +00:00
Todd C. Miller
d3730e35f1 When falling back to checking for socket() when linking with "-lsocket -lnsl" check for main() instead since autoconf has already cached the results of checking for socket() in -lsocket. This is really an autoconf bug as it should use the extra libs as part of the cache variable name. 1999-02-22 15:58:11 +00:00
Todd C. Miller
27a065f26c typo 1999-02-22 15:47:44 +00:00
Todd C. Miller
a650f840cf fix occurrence of $with_timeout that should be $with_password_timeout; Michael.Neef@neuroinformatik.ruhr-uni-bochum.de 1999-02-21 20:18:29 +00:00
Todd C. Miller
aeffa02a17 fix grammar; espie@openbsd.org 1999-02-17 16:40:55 +00:00
Todd C. Miller
f9b80fcad4 add cast for strdup in places it does not have it 1999-02-11 06:41:32 +00:00
Todd C. Miller
6993389719 define for_BSD_TYPES irix 1999-02-09 18:11:51 +00:00
Todd C. Miller
50219d0aa0 Make it clear that it is the user's password, not root's, that we want. 1999-02-07 00:47:32 +00:00