Commit Graph

274 Commits

Author SHA1 Message Date
Todd C. Miller
f32e054fe5 Make login class support work on BSD/OS 2000-03-24 20:13:12 +00:00
Todd C. Miller
d168a21cee Add FreeBSD login.conf support (untested on BSD/OS) based on a patch from
Michael D. Marchionna.
configure now does substitution on the man pages, allowing us to
fix up the paths and set the section correctly.  Based on an idea
from Michael D. Marchionna.
2000-03-23 00:35:59 +00:00
Todd C. Miller
02cbda9995 Mention that gcc on dynix may have problems 2000-03-02 02:01:16 +00:00
Todd C. Miller
73946622ba crank versino to 1.6.3 2000-02-16 00:07:28 +00:00
Todd C. Miller
020125336c Add 'editor' and 'enveditor' sudoers defaults and make visudo honor them.
This means that visudo will now parse the sudoers file *before* it is
edited so a bogus sudoers file will cause a warning to go to stderr.
Also, visudo checks the variables once--it does not check them after
each editor run since that could be confusing.
2000-02-16 00:03:44 +00:00
Todd C. Miller
a4f529eaec Make pam work on HP-UX 11.0;jaearick@colby.edu 2000-01-27 20:01:37 +00:00
Todd C. Miller
1db208b999 Fix some while lies 2000-01-26 21:21:00 +00:00
Todd C. Miller
0ab8ad3c64 Crank version to 1.6.2 2000-01-17 23:42:19 +00:00
Todd C. Miller
ccb808da31 Add 'shell_noargs' runtime option back in. We have to defer checking
until after the sudoers file has been parsed but since there are now
other options that operate that way this one can too.  Based on a patch
from bguillory@email.com.
2000-01-17 17:25:10 +00:00
Todd C. Miller
449f67f776 o Kill shell_noargs option, it cannot work since the command needs to
be set before sudoers is parsed.
o Fix the "set_home" sudoers option (only worked at compile time).
o Fix "fqdn" sudoers option.  We now set host/shost via set_fqdn which
  gets called when the "fqdn" option is set in sudoers.
o Move the openlog() to store_syslogfac() so this gets overridden
  correctly from the sudoers file.
1999-12-02 20:31:25 +00:00
Todd C. Miller
1fe397ae5d make it clear that /etc/pam.d/sudo is required on linux 1999-11-23 18:07:02 +00:00
Todd C. Miller
a5b437605f clarify Mac OS X entry 1999-11-08 23:59:12 +00:00
Todd C. Miller
3781244a97 Break out options that may be overridden at run time into their own
section.  Add a not about Max OS X and correct some lies.
1999-11-05 05:42:45 +00:00
Todd C. Miller
7769bf6a32 o Change defaults stuff to put the value right in the struct.
o Implement mailer_flags
o Store syslog stuff both in int and string form.  Setting the string
  form magically updates the int version.
o Add boolean attribute to strings where it makes sense to say !foo
1999-10-07 21:21:08 +00:00
Todd C. Miller
97fc9e2322 the the 1999-10-06 04:48:15 +00:00
Todd C. Miller
13bf42675d Add support for "Defaults" line in sudoers to make configuration variables
changable at runtime (and on a global, per-host and per-user basis).
Both the names and the internal representation are still subject to change.
It was necessary to make sudo_user.runas but a char ** instead of a
char * since this value can be changed by a Defaults line.  There is a
similar (but more complicated) issue with sudo_user.prompt but it
is handled differently at the moment.

Add a "-L" flag to list the name of options with their descriptions.  This
may only be temporary.

Move some prototypes to parse.h

Be much less restrictive on what is allowed for a username.
1999-09-08 08:06:28 +00:00
Todd C. Miller
24f317e173 include auth/API in tarball 1999-08-27 20:09:30 +00:00
Todd C. Miller
0598093e2c sudoers_lookup() now returns a bitmap instead of an int. This makes it
possible to express things like "failed to validate because user not listed
for this host".  Some thigns that were previously VALIDATE_FOO are now
FLAG_FOO.  This may change later on.

Reorganized code in log_auth() and sudo.c to deal with above changes.

Safer versions of push/pushcp with in the do { ... } while (0) style

parse.yacc now saves info on the stack to allow parse.c to determine
if a user was listed, but not for the host he/she tried to run on.

Added --with-mail-if-no-host option
1999-08-19 16:30:09 +00:00
Todd C. Miller
1afa5be400 Just have sudo-bugs contact info in one place 1999-08-17 15:26:17 +00:00
Todd C. Miller
3a8b0be635 o --with-otp deprecated, use --without-passwd instead
o real dependencies in the Makefile
o --with-devel option to enable yacc, lex, and -Wall
o style -- "foo -> bar" becomes "foo->bar"
o ALL goes back to being a token, not a string but don't leak memory
o rename hsotspec -> host in parse.yacc
1999-08-14 15:34:55 +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
be4e87f666 Update to reality. 1999-08-07 11:46:39 +00:00
Todd C. Miller
7c53b74961 o Kill *_MESSAGE and replace with NO_LECTURE
o Add more things to root sudo -V config reporting
1999-08-05 21:38:19 +00:00
Todd C. Miller
d47ddf6a9d Add --with-goodpri and --with-badpri configure options to specify the
syslog priority to use.
1999-08-05 14:30:57 +00:00
Todd C. Miller
5a51e05e63 Sudo, not CU Sudo 1999-07-31 16:31:27 +00:00
Todd C. Miller
106a909f33 Remove --with-AuthSRV and --disable-tgetpass. Add --with-fwtk and --without-passwd. 1999-07-22 12:32:39 +00:00
Todd C. Miller
8e30e833f5 for kerberos V < version, fall back on old kerb4 auth code 1999-06-22 13:30:25 +00:00
Todd C. Miller
81cf00633b clarify some things 1999-06-22 10:41:02 +00:00
Todd C. Miller
850a52aa6f o Replace _PASSWD_LEN braindeath with our own SUDO_MAX_PASS.
It turns out the old DES crypt does the right thing with passwords
   longert than 8 characters.
 o Fix common typo (necesary -> necessary)
 o Update TODO list
1999-05-14 16:30:14 +00:00
Todd C. Miller
52ff801d8b add comment about digital unix and interfaces.c warning with gcc 1999-04-27 04:00:11 +00:00
Todd C. Miller
0ef9c81f16 notes on updating from an earlier release 1999-04-08 23:56:13 +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
79c46d1c81 ++version 1999-03-29 04:05:15 +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
859712c53d be clear that pam is linux-only and add a RUNSON entry 1999-01-23 17:18:28 +00:00
Todd C. Miller
4633962703 fix and correctly document --with-umask; problem noted by adap@adap.org 1999-01-22 18:13:16 +00:00
Todd C. Miller
94026c212c fix typo, make --with-SecurID take an arg 1999-01-20 01:24:41 +00:00
Todd C. Miller
cefcc04d60 FWTK 'authsrv' support from Kevin Kadow <kadow@MSG.NET> 1999-01-19 02:04:41 +00:00
Todd C. Miller
d3aaf52283 crank version and regen files 1999-01-17 22:40:55 +00:00
Todd C. Miller
3983a7a651 kerb5 support from fcusack@iconnet.net 1999-01-17 22:08:55 +00:00
Todd C. Miller
ab78fa496d more info for 1.5.7 1998-11-20 23:33:04 +00:00
Todd C. Miller
a8fce0bce8 tty tickets are user:tty now 1998-11-13 19:19:39 +00:00
Todd C. Miller
0900eabf3b go back to printing "command not found" unless --disable-path-info
specified.  Also, tell user when we ignore '.' in their path and
it would have been used but for --with-ignore-dot.
1998-11-08 20:56:52 +00:00
Todd C. Miller
3539bbf5b4 sia changes 1998-10-25 04:51:52 +00:00
Todd C. Miller
929bff13f1 updated --with-editor blurb 1998-10-20 21:22:55 +00:00
Todd C. Miller
272a9f4a15 I don't expect it to work on Solaris 1998-10-20 05:24:33 +00:00
Todd C. Miller
e6f3d98252 remove dunix note since configure checks for this now 1998-10-19 21:13:33 +00:00
Todd C. Miller
035fb67921 update Digital UNIX note about acl.h 1998-10-19 17:48:15 +00:00
Todd C. Miller
1be01aad41 add --with-sia
--without-root-sudo -> --disable-root-sudo
some reordering
1998-10-19 00:26:41 +00:00
Todd C. Miller
16b0c311e6 update url to solaris gcc bins 1998-10-17 21:02:32 +00:00