Commit Graph

404 Commits

Author SHA1 Message Date
Todd C. Miller
7ffee3b997 getprpwuid is broken in HP-UX 10.20 at least (it sleeps for 2 minutes if the
shadow files don't exist).
1998-10-21 23:50:10 +00:00
Todd C. Miller
156c3b069c call initprivs() if we have it for getprpwuid later on 1998-10-19 18:31:31 +00:00
Todd C. Miller
5bfb481ca7 no more options.h 1998-10-15 05:41:26 +00:00
Todd C. Miller
a40aca2b10 kill sys/time.h 1998-10-15 05:32:30 +00:00
Todd C. Miller
9d6cd6f216 UMASK -> SUDO_UMASK. 1998-09-24 15:40:39 +00:00
Todd C. Miller
1c66c857e4 new shadow password scheme. Always include shadow support if the
platform supports it and the user did not disable it via configure
1998-09-21 04:00:56 +00:00
Todd C. Miller
0ef9f25d7e updated version 1998-09-17 16:27:15 +00:00
Todd C. Miller
6ded52e066 set NewArgv[0] to user_shell, not basename(user_shell) 1998-09-13 19:32:48 +00:00
Todd C. Miller
e68f156aca add RUNAS_DEFAULT 1998-09-08 00:42:02 +00:00
Todd C. Miller
2e6a9074e6 use HAVE_SET_AUTH_PARAMETERS 1998-09-07 16:43:05 +00:00
Todd C. Miller
ca0a28b03f Sudo should prompt for a password before telling the user that
a command could not be found.
1998-09-07 03:48:43 +00:00
Todd C. Miller
12477fd6e6 updated version 1998-04-06 03:35:50 +00:00
Todd C. Miller
7f4e5240cf typo 1998-04-06 03:21:42 +00:00
Todd C. Miller
c27d678ff7 MAX* + 1 -> MAX* 1998-04-06 03:15:39 +00:00
Todd C. Miller
e37e1e56b6 updated version 1998-03-31 05:05:49 +00:00
Todd C. Miller
533fbe0711 change size computation of NewArgv for UNICOS 1998-03-28 00:27:03 +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
25ed56fba2 close fd's <=2 not <=3 and move that chunk of code up 1998-02-06 00:19:24 +00:00
Todd C. Miller
7d5c340f98 do an initgroups() before running a command, unless the target user
is root.
1998-01-23 00:28:00 +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
8de870a706 in check_sudoers, cache the sudoers file handle in sudoers_fp so
we don't have to open it again in the parse.  This may help
with weird solaris problems where EAGAIN sometime occurrs.
1998-01-21 05:03:46 +00:00
Todd C. Miller
7b3bc67b01 newer irix uses _RLDN32_* envariables for 32-bit binaries so ignore _RLD* instead of _RLD_* 1998-01-13 17:58:40 +00:00
Todd C. Miller
166789a1dd ++version 1998-01-13 04:48:42 +00:00
Todd C. Miller
07e09b16f2 Don't set the tty variable to NULL when we lack a tty, leave it as
"unknown".
1997-12-21 23:17:48 +00:00
Todd C. Miller
4b4e2b7929 define tty global to an initial value to avoid dumping core in logging
functions when passwd file is unavailable.
1997-11-23 06:53:37 +00:00
Todd C. Miller
ff05eaccfa do the set_perms(PERM_USER, sudo_mode) after we have gotten the passwd entry 1997-11-23 06:51:49 +00:00
Todd C. Miller
b0192afc35 correct error message if mode/owner wrong and not statable by owner
but is statable by root.
1996-12-12 04:10:19 +00:00
Todd C. Miller
5e723efe75 ++version 1996-11-14 02:37:56 +00:00
Todd C. Miller
b317dc70ac Can now deal with SUDOERS_UID == 0 and SUDOERS_MODE == 0400 1996-11-11 01:32:33 +00:00
Todd C. Miller
f0379ffce9 added -H flag 1996-10-07 04:53:47 +00:00
Todd C. Miller
6a230806a8 courtesan 1996-09-08 00:21:42 +00:00
Todd C. Miller
ff9b449929 added $SUDO_PROMPT support 1996-09-06 04:12:58 +00:00
Todd C. Miller
d189849b44 ++version 1996-08-30 00:37:04 +00:00
Todd C. Miller
944fb1c5ff added SHELL_SETS_HOME 1996-08-27 15:36:48 +00:00
Todd C. Miller
56405a97e6 added runas_homedir 1996-08-25 17:27:36 +00:00
Todd C. Miller
10d3642497 sets $HOME to pw_dir of runas user 1996-08-18 00:37:00 +00:00
Todd C. Miller
35825133a7 ++version 1996-08-17 23:25:40 +00:00
Todd C. Miller
7c3b772076 *** empty log message *** 1996-08-17 22:34:04 +00:00
Todd C. Miller
6da9b067a1 remove $ENV and $BASH_ENV (dangerous in ksh, posix sh, and bash) 1996-08-17 17:22:13 +00:00
Todd C. Miller
085fbf8222 don't yell too loudly at non-sudoers if they do "sudo -l" 1996-08-15 19:47:01 +00:00
Todd C. Miller
236019c889 now uses list_matches() 1996-08-09 22:06:53 +00:00
Todd C. Miller
e7999949e4 use SHADOW_TYPE instead of HAVE_C2_SECURITY 1996-07-26 03:46:42 +00:00
Todd C. Miller
bd641284ae now sets cmnd_args global 1996-07-22 18:30:51 +00:00
Todd C. Miller
633b6d2c35 fixed backwards compatibility with sudo 1.4 sudoers mode
for root readable/writable filesystems
1996-07-08 02:30:25 +00:00
Todd C. Miller
0ac88016c4 now set uid to 1 instead of nobody for PERM_SUDOERS since nobody
is not always set to a valid uid.
1996-06-25 23:32:09 +00:00
Todd C. Miller
ea3da19711 Fixed NFS-mounted sudoers file under solaris both uid *and* gid
were being set to -2.  Now beat NFS to the punch and set uid
to "nobody" ourselves, preserving group 0 to read sudoers.
1996-06-25 22:02:42 +00:00
Todd C. Miller
2f7e9de285 fixed 2 compiler warnings 1996-06-20 04:20:13 +00:00