atatat
08e63b9e97
Hey, wiz! Doesn't this need a comma?
2003-09-17 05:34:15 +00:00
lha
afad8d1f7c
libkrb depends on libdes, patch in private mail from
...
Harold Gutch logix at foobar franken de
2003-08-23 23:03:42 +00:00
wiz
ad921c5f25
Comma and Pp police. Bump date for last.
2003-08-23 22:31:24 +00:00
christos
791007d1e3
Normalize the program's compilation options so they are all of the form SU_
...
and document them.
2003-08-20 14:11:17 +00:00
agc
89aaa1bb64
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
tron
86b35822ff
Backout previous and revert su(1) to dynamic linking instead.
2003-07-24 16:18:21 +00:00
tron
b2df6d93aa
Link with "libdes" if Kerberos IV support is enabled.
2003-07-24 16:06:45 +00:00
itojun
e63468d8cc
split MKKERBEROS4 from MKKERBEROS. based on work by lha at stacken.kth.se
...
(build confirmed with both MKKERBEROS4=yes and MKKERBEROS4=no)
2003-07-23 08:01:24 +00:00
jrf
285b019fd8
This addresses PR21693. Under certain conditions, su -m will fail because
...
the pointer to /etc/shells is pointing to the second entry. This change
resets the pointer before looping through the file again. FreeBSD does
this as well. Commit approved by christos and thanks to Geoff Adams for
catching and reporting it.
2003-06-18 21:02:03 +00:00
wiz
aa64771356
Drop trailing space.
2003-04-27 11:09:29 +00:00
jmmv
ab753cc4ce
Implement the `-d' option, which behaves as `-l' but does not change the
...
current directory. Idea suggested by dsl@ in source-changes.
2003-04-27 08:46:25 +00:00
mycroft
3ba2d8197a
Only unset ENV if -f was used, AS THE CHANGE WAS DOCUMENTED.
...
I'm not convinced this is a good idea at all, but at least this fixed my usage.
2003-04-25 08:04:14 +00:00
wiz
287057db85
Bump date for last.
2003-04-24 12:19:06 +00:00
christos
c71d457343
PR/5803: Gregg A. Woods: su doesn't support it's "-f" option for sh and/or ksh
...
fixed by unsetenv("ENV") when -f is set and the shell is not csh.
2003-04-20 20:13:20 +00:00
wiz
990562bfef
.Nm does not need a dummy argument ("") before punctuation or
...
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
jmmv
7eda74b7a6
Add missing dot to the `-' option. Ok'ed by wiz.
2003-02-21 11:17:50 +00:00
jmmv
fe7d4299f5
Add EXIT STATUS section.
2003-01-19 19:15:38 +00:00
itojun
5f2d0b666f
error handling on strdup failure
2002-11-16 15:59:26 +00:00
itojun
d118467d1c
use strlcpy
2002-11-16 13:45:10 +00:00
itojun
e91a21c27c
add DPADD.
2002-10-23 01:25:35 +00:00
wiz
600dcccfab
New sentence, new line; drop trailing whitespace.
2002-10-13 00:55:17 +00:00
hubertf
6991e21be2
Make example clearer, that the -c _after_ the login is passed to the shell.
...
Addresses PR 18538 by reed@reedmedia.net
2002-10-05 14:07:04 +00:00
itojun
f51456c273
err/errx/warn/warnx do not need \n at the end
2002-06-11 06:06:18 +00:00
thorpej
9c33b55e7c
Split the notion of building Hesiod, Kerberos, S/key, and YP
...
infrastructure and using that infrastructure in programs.
* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)
* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.
As discussed on tech-toolchain.
2002-03-22 18:10:19 +00:00
wiz
3e5626e0f8
Sort sections, sort SEE ALSO, use .Pp instead of empty lines.
2001-12-08 19:17:03 +00:00
simonb
69184ba957
Revert to previous, less offensive, error message when a malloc fails.
2001-04-23 06:52:22 +00:00
wiz
53dcd3f4a2
kerberos(1) -> (8). Sort SEE ALSO.
2001-04-04 09:44:35 +00:00
fair
a672ba6fd5
Correct the HISTORY section, per PR 11192 and Robert Elz.
2001-03-08 02:59:25 +00:00
cgd
a8ec668ddf
convert to use getprogname()
2001-02-19 23:03:42 +00:00
sjg
e5aa080165
SU_INDIRECT_GROUP should not be on by default.
2001-01-11 00:54:57 +00:00
sjg
91d1372fc6
If SU_INDIRECT_GROUP is defined (it is by default), then su will
...
consider that SUGROUP and ROOTAUTH group contain the names of
users and groups. If user is not found in the list check_ingroup()
recurses on each member until either user is found or end of chain
is reached.
The above allows su's use of the wheel group to be extended to a large
number of users without necessarily putting them in group wheel, and
in a way that will work over NIS that simply extending the line length
limit in getgrent.c cannot.
2001-01-10 21:33:13 +00:00
lukem
cc029dd772
- don't use LOG_CONS
...
- by default log to LOG_AUTH (so no need to specify LOG_AUTH at each syslog())
- log all unsuccessful attempts (for whatever reason) to LOG_WARNING
- log all successful attempts to LOG_NOTICE
2001-01-10 12:30:19 +00:00
simonb
9b22175a26
Remove INSTALLFLAGS=-fschg, as per change to usr.bin/ssh/ssh/Makefile.
2000-10-18 00:24:18 +00:00
erh
d2f1d733d5
Switch to the user we're su-ing to sooner. This allows su to actually access the user's home directory in cases where root can't. (i.e. root=nobody NFS mounts). Also, avoid inadvertently raising the priority.
2000-09-09 18:13:05 +00:00
assar
aa97fc7fa5
set the correct owner on the krb5 ccache
2000-08-09 02:15:27 +00:00
assar
6d7f2da1a1
remove -lvers, it's not used
2000-08-03 22:56:29 +00:00
assar
549a4d9cdc
update build infrastructure for heimdal 0.3a
2000-08-03 04:02:29 +00:00
mycroft
98987090cb
Fix library order.
2000-07-23 22:23:14 +00:00
assar
b4c7f0f535
fix the krb5 su to ordinary user case, from Mark Davies
...
<mark@MCS.VUW.AC.NZ>
2000-07-13 08:37:10 +00:00
assar
8d33b0b319
add Kerberos5 support
2000-07-10 02:09:15 +00:00
assar
66ba16788d
repair, simplify, and improve the Kerberos part
2000-07-10 01:45:24 +00:00
thorpej
df83a2a3cd
Add MK... variables to enable/disable various aspects of building
...
crypto support into the system. See share/mk/bsd.README for more
a full description.
2000-06-23 06:01:10 +00:00
thorpej
e7d6b96938
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
...
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.
There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.
2000-06-20 06:00:24 +00:00
jdolecek
03cdaf03c9
Add some examples of usage. Modelled after what is in Solaris manpage,
...
though no text has been actually copied from there (for legal reasons).
2000-05-10 19:04:36 +00:00
abs
ddcdaa6b45
Set SU_FROM environment variable. This can be used to determine a 'su -'
...
shell from a real login shell (but only if you care).
2000-02-11 00:30:07 +00:00
mjl
8cb2edab13
Removed code that would squash root's path when suing to root,
...
restores old behaviour of su.
2000-01-25 02:19:19 +00:00
mjl
e6ac440ed4
Implement login_cap capability lookup.
2000-01-14 02:39:14 +00:00
drochner
85cbf55d16
Since our gcc doesn't warn about NULL format strings anymore, we can
...
fix the incorrect err(1, "%s", "") et al.
Closes PR bin/7592 by cgd.
1999-11-09 15:06:30 +00:00
mjl
d6634fdb48
Mention "-" is the same as "-l". Closes PR/8499 by Matthew Aldous.
1999-09-27 19:41:33 +00:00
christos
36dc48ce6e
Amazing how this worked for so long. setenv(3) expects environ(7) to be
...
a malloc'ed pointer and it tries to realloc(3) it if it had to grow it
before. su(1) gave it a pointer from the stack which caused realloc to
core dump.
1999-08-29 04:21:55 +00:00