Todd C. Miller
d1c145f41f
Fix an uninitialized variable and some cleanup. Now works (tested)
1999-07-11 10:43:42 +00:00
Todd C. Miller
c9e9f07ac3
SIA support for digital unix
1999-07-11 09:37:19 +00:00
Todd C. Miller
14854258ab
don't use prompt global, it will go away
1999-07-11 09:33:01 +00:00
Todd C. Miller
2d8417f59d
correct copyright years
1999-07-11 09:32:52 +00:00
Todd C. Miller
169d85ac9e
New authentication API and methods
1999-07-11 00:32:11 +00:00
Todd C. Miller
d22fe7a98d
regen
1999-07-08 10:46:46 +00:00
Todd C. Miller
63209c1348
only save an entry if user_matches && host_matches, even if the stack is empty (fix for previous commit)
1999-07-08 10:46:28 +00:00
Todd C. Miller
5ab9fa82e1
regen
1999-07-08 10:35:58 +00:00
Todd C. Miller
fb54a0311a
1) Always save an entry on the stack if it is empty. This fixes the
...
-l and -v flags that were broken by earlier parser changes.
2) In a Runas list, don't negate FALSE -> TRUE since that would make !foo
match any time the user specified a runas user (via -u) other than foo.
1999-07-08 10:35:28 +00:00
Todd C. Miller
feb78be26e
interfaces and num_interfaces are now auto, not extern
1999-07-08 09:45:16 +00:00
Todd C. Miller
b7a4a6c787
use a static global to keep stae about empty passwords
1999-07-07 18:09:00 +00:00
Todd C. Miller
cc68b825cc
make PASSWORD_NOT_CORRECT logging consistent with other modules
1999-07-07 18:08:22 +00:00
Todd C. Miller
1b023dc9dd
PAM prompt code was wrong, looks like we have to kludge it after all.
1999-07-05 20:53:54 +00:00
Todd C. Miller
3bdb3e41ca
In the PAM code, when a user hits return at the first password prompt, exit without a warning just like the normal auth code
1999-07-05 20:35:30 +00:00
Todd C. Miller
0f648f1069
kludge around cross-compiler false positives
1999-07-05 20:15:44 +00:00
Todd C. Miller
69a00325ec
New (correct) PAM code
...
Tgetpass now takes an echo flag for use with PAM_PROMPT_ECHO_ON
Block SIGINT and SIGTSTP during auth
remove a useless umask setting
Change error from BAD_ALLOCATION -> BAD_AUTH_INIT (for use with sia/PAM)
Some cosmetic changes to auth.c for consistency
1999-07-05 20:14:21 +00:00
Todd C. Miller
20002b5fe2
Some -Wall and kill some trailing spaces
1999-07-05 20:11:50 +00:00
Todd C. Miller
82353107e2
define -D__EXTENSIONS__ for solaris so we get crypt() proto
1999-07-05 20:10:21 +00:00
Todd C. Miller
34fa2fc237
add Dynix 4.4.4
1999-06-22 13:42:30 +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
a11c148681
typos
1999-06-22 10:38:39 +00:00
Todd C. Miller
b3cd9b1f96
mention why DONT_LEAK_PATH_INFO is not the default
1999-06-14 23:47:56 +00:00
Todd C. Miller
1eab167a30
Fix open(2) return value checking, was NULL for fopen, should be -1 for open
1999-06-03 16:34:10 +00:00
Todd C. Miller
c4cb29099d
regen
1999-06-03 16:06:20 +00:00
Todd C. Miller
45700fb7b7
better wording for solaris pam notice
1999-06-03 16:06:02 +00:00
Todd C. Miller
8b8db7ea0e
document recent changes
1999-06-03 15:52:40 +00:00
Todd C. Miller
f5c60e6df6
Update shadow password section
1999-06-03 15:52:18 +00:00
Todd C. Miller
7d768c1cec
move authentication code from check.c to auth.c
1999-06-03 15:51:44 +00:00
Todd C. Miller
406056d7e5
move authentication code to auth.c
1999-06-03 15:51:07 +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
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
6b91a87a9f
set $LOGNAME when we set $USER
1999-05-03 16:00:32 +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
276ea3cbe1
use modern paths and give examples for some of the new parser features
1999-04-15 05:12:46 +00:00
Todd C. Miller
16fdb0a5c5
fix comment
1999-04-10 17:03:32 +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
8e8fbc251e
catch case where cmnd_safe is not set (this should not be possible)
1999-04-10 04:37:35 +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
0ef9c81f16
notes on updating from an earlier release
1999-04-08 23:56:13 +00:00
Todd C. Miller
f1891c8796
updated
1999-04-08 00:20:03 +00:00
Todd C. Miller
622b7a1d97
You can now specifiy a host list instead of just a host or alias.
...
Ie: user = host1,host2,ALIAS,!host3 my_command
now works.
1999-04-07 23:18:52 +00:00
Todd C. Miller
3a8971f654
Quiet -Wall
1999-04-07 06:59:59 +00:00
Todd C. Miller
91e31132dd
Move the push from the beginning of cmndspec to the end. This means we
...
no longer have to do a push at the end of privilege, just reset some values.
1999-04-07 06:50:47 +00:00
Todd C. Miller
2d8c7c0812
runas-lists and NOPASSWD/PASSWD modifiers are now sticky and you can use "!" most everywhere
1999-04-07 00:24:36 +00:00
Todd C. Miller
0d2e2e9f3c
modernize paths and update su example based on sample.sudoers one
1999-04-06 18:12:08 +00:00
Todd C. Miller
5d78a954e7
New runas semantics
1999-04-06 18:06:12 +00:00
Todd C. Miller
0d67007d1b
In estrdup(), do the malloc ourselves so we don't need to rely on the
...
system strdup(3) which may or may not exist. There is now no need to
provide strdup() for those w/o it. Also, the prototype for estrdup()
was wrong, it returns char * and its param is const.
1999-04-06 17:55:01 +00:00
Todd C. Miller
29523f3494
$Sudo tag
1999-04-06 17:40:49 +00:00