Todd C. Miller
319a9ffe51
fixed usage()
1996-06-09 03:15:12 +00:00
Todd C. Miller
636e5f1df4
now give usage warning if use -l,-v,-k with args
1996-05-29 02:14:32 +00:00
Todd C. Miller
59f71cc274
NewArgc is now set to 1 for -l, -v, -k
1996-05-28 22:22:24 +00:00
Todd C. Miller
47f7ef9f3f
now sets sudoers to correct group if mode is 0400
1996-05-28 16:50:34 +00:00
Todd C. Miller
afbddeebec
rmeoved debugging statements
1996-05-28 04:01:49 +00:00
Todd C. Miller
2c1b963a21
now uses user_gid instead of getegid (which was wrong anyway)
...
to set SUDO_GID
Now sets command line args in SUDO_COMMAND envariabled
(logging.c depends on args being in the environment)
1996-05-28 03:58:17 +00:00
Todd C. Miller
5a32554c06
fixed off by one error in allocation NewArgv
1996-05-28 00:02:30 +00:00
Todd C. Miller
afe3f2749a
now fixes mode on sudoers if set to 0400 to aid in upgrade
1996-04-29 02:38:36 +00:00
Todd C. Miller
4874329850
runas_user defaults to "root" so no more need to PERM_RUNAS
1996-04-28 21:18:06 +00:00
Todd C. Miller
da33d14c36
added support for NO_PASSWD and runas from garp@opustel.com
...
replaced SUDOERS_OWNER with SUDOERS_UID and SUDOERS_GID
and added support fro SUDOERS_MODE
1996-04-28 01:00:48 +00:00
Todd C. Miller
1265fcc4f8
added NO_PASSWD
1996-03-22 00:55:29 +00:00
Todd C. Miller
058a58a501
now uses shost even if not FQDN
1996-03-11 19:05:55 +00:00
Todd C. Miller
773636c1c8
added support for shost if FQDN
1996-03-11 01:16:09 +00:00
Todd C. Miller
3da8d74b0a
removed an XXX (fixed it in getspwuid.c)
1996-02-05 02:59:21 +00:00
Todd C. Miller
1714849acd
changed an occurrence of Argv to NewArgv
1996-02-02 04:53:59 +00:00
Todd C. Miller
e06c19bbb9
now uses NewArgv amd NewArgc so cmnd_aegs is no longer needed
...
this also allows us to eliminate some kludges in parse_args()
and eliminate superfluous code.
1996-02-02 03:34:21 +00:00
Todd C. Miller
35622b80c1
fixed SECURE_PATH
1996-01-15 16:34:23 +00:00
Todd C. Miller
813ac511d2
++version
1996-01-14 20:19:56 +00:00
Todd C. Miller
a90d2d478e
++version
1996-01-09 17:52:49 +00:00
Todd C. Miller
6846377706
++version
1995-12-18 03:09:49 +00:00
Todd C. Miller
206899d1dd
now copy command args directly from Argv
1995-12-11 22:09:10 +00:00
Todd C. Miller
0e9f9c7a40
replaced code to copy cmnd_args so that is does not use realloc since
...
most realloc()'s really stink
1995-12-11 20:55:15 +00:00
Todd C. Miller
1d04bad9ca
added set of parens and a space
1995-12-06 00:02:13 +00:00
Todd C. Miller
d7716e975e
added explict casts for strdup since many includes don't prototype
...
it. gag me.
1995-11-25 18:53:22 +00:00
Todd C. Miller
9f8332a190
added prototype for sudo_getpwuid()
1995-11-25 18:23:40 +00:00
Todd C. Miller
3ff093bde6
now include pthread.h for DCE support
1995-11-24 05:39:28 +00:00
Todd C. Miller
d6a223e2a2
now uses user_pw_ent and simple macros to get at the contents
1995-11-24 02:27:27 +00:00
Todd C. Miller
9dcee68e50
now uses sudo_pw_ent
1995-11-21 03:01:28 +00:00
Todd C. Miller
9de4fd5450
updated version number
1995-11-19 23:37:15 +00:00
Todd C. Miller
e3f95518c2
more people use _RLD_ than just alphas...
1995-11-19 15:47:50 +00:00
Todd C. Miller
621d42205c
now deal with situations where we getwd() fails
1995-11-19 00:17:31 +00:00
Todd C. Miller
6475d4378e
added missing set_perms()
...
no more cryptic message if the sudoers file is zero length,
now just give a parse error
1995-11-16 07:54:33 +00:00
Todd C. Miller
8285802f24
check_sudoers() now catches sudoers files that are not readable
...
(but are stat'able).
1995-11-16 07:41:35 +00:00
Todd C. Miller
96be725f35
options.h is now <> instead of "" so shadow build trees can
...
have a custom copy of options.h
1995-11-13 05:16:38 +00:00
Todd C. Miller
3003b4109d
unset the KRB_CONF envariable if using kerberos so we don't get
...
spoofed into using a bogus server
1995-10-30 20:51:18 +00:00
Todd C. Miller
5d691e1c47
removed unused variable
...
now passes -Wall
1995-09-23 20:48:48 +00:00
Todd C. Miller
211361a5f0
don't include malloc.h if we include stdlib.h
1995-09-13 21:17:06 +00:00
Todd C. Miller
dff189d000
if SHELL_IF_NO_ARGS is set, "sudo -- foo" now runs a shell
...
and passes along foo as the arguments
1995-09-10 01:00:24 +00:00
Todd C. Miller
cc1ab5b5b6
fixed a typo that caused commands with no tty on fd 0 but a tty
...
on fd 1 to erroneously have "none" as their tty
1995-09-09 00:51:49 +00:00
Todd C. Miller
33de10d52d
now only strip '/dev/' off of a tty if it starts with '/dev/'
1995-09-03 18:12:24 +00:00
Todd C. Miller
589f1d6263
moved tty stuff into sudo.c
1995-09-02 02:25:17 +00:00
Todd C. Miller
eaf845fd2c
fixed comments
1995-09-01 04:50:07 +00:00
Todd C. Miller
57e17e71d1
include netdb.h as we should
...
added a missing void cast
added SHELL_IF_NO_ARGS support
now use realloc() properly. would fail if realloc actually moved
the string instead of shrinking it
1995-09-01 04:23:19 +00:00
Todd C. Miller
eb742282be
fixed -k
...
load_interfaces() now gets called if FQDN is set
-p now works with -s
1995-09-01 02:54:48 +00:00
Todd C. Miller
b79d33a5b1
-s no longer indicates end of args
...
sped up loading on cmnd_args in load_cmnd()
1995-08-19 23:30:03 +00:00
Todd C. Miller
fee6ecbf07
fixed loading of cmnd_args (was including command name too)
1995-08-14 03:35:43 +00:00
Todd C. Miller
f82ab3e8c0
now sets cmnd_args used by log_error() and that will be used
...
by the parse to check against command args
1995-08-13 04:32:19 +00:00
Todd C. Miller
8219db9617
added -s (shell) option
...
made MODE_* masks so we can do bitwise & and | to see if multiple
flags are set.
1995-07-31 02:36:43 +00:00
Todd C. Miller
dd9a165145
rewrote clean_env() that has rm_env() builtin
1995-07-24 22:07:56 +00:00
Todd C. Miller
e70f526da5
now uses MAX_UID_T_LEN
1995-07-23 21:48:30 +00:00