OpenBSD CVS

CVS log for src/usr.bin/su/su.1


[BACK] Up to [local] / src / usr.bin / su

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.38 / (download) - annotate - [select for diffs], Thu Dec 22 19:53:23 2022 UTC (16 months, 3 weeks ago) by kn
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, HEAD
Changes since 1.37: +4 -6 lines
Diff to previous 1.37 (colored)

Denote multiple arguments with 'arg ...' not 'args'

A few programs used the plural in their synopsis which doesn't read as
clear as the obvious triple-dot notation.

mdoc(7) .Ar defaults to "file ..." if no arguments are given and consistent
use of 'arg ...' matches that behaviour.

Cleanup a few markups of the same argument so the text keeps reading
naturally;  omit unhelpful parts like 'if optional arguments are given,
they are passed along' for tools like time(1) and timeout(1) that obviously
execute commands with whatever arguments where given -- just like doas(1)
which doesn't mention arguments in its DESCRIPTION in the first place.

For expr(1) the difference between 'expressions' and 'expression ...' is
crucial, as arguments must be passed as individual words.

Feedback millert jmc schwarze deraadt
OK jmc

Revision 1.37 / (download) - annotate - [select for diffs], Wed Jul 8 16:05:27 2020 UTC (3 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.36: +3 -5 lines
Diff to previous 1.36 (colored)

Clarify that csh's -f flag is not just about .cshrc.
We don't need to be too specific about this in su(1), leave the
details for csh(1).  OK jca@

Revision 1.36 / (download) - annotate - [select for diffs], Wed Jul 8 10:35:06 2020 UTC (3 years, 10 months ago) by jca
Branch: MAIN
Changes since 1.35: +7 -2 lines
Diff to previous 1.35 (colored)

Teach su -l -f how to start a regular shell for non-csh shells

su -l does nice things like reset the environment and change the home
directory, but it also always starts the user's shell as a login shell
(argv[0] == '-').  This is a problem for su -l consumers like rc.d,
where e.g. /root/.profile is read by the shell before starting a daemon
as root. This tends to blow up if the admin introduces side effects to
/root/.profile (or /etc/profile).

csh supports an -f flag to skip reading .cshrc and .login, and su
already has special support for it.  Similarly, teach su -l -f how to
start a regular shell (not a login shell) for non-csh shells.

Discussion started by robert@ during p2k19 and revived by ajacoutot@,
help and ok kn@ millert@

Revision 1.35 / (download) - annotate - [select for diffs], Fri Jul 12 12:39:10 2019 UTC (4 years, 10 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.34: +2 -7 lines
Diff to previous 1.34 (colored)

Delete a sentence about the prompt that has nothing to do with su(1).
It depends on the shell, is done by the shell if at all, is documented
in the ksh(1) manual, and who knows what other shells may or may not do.
Suggested by deraadt@.

Revision 1.34 / (download) - annotate - [select for diffs], Thu Jun 27 18:10:06 2019 UTC (4 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.33: +63 -56 lines
Diff to previous 1.33 (colored)

Partial rewrite of the explanation of environment handling to avoid:
- making statements then taking them back
- different order of explanation for different options
- gratuitous variations of wordings
- misplacing talk about real and effective IDs below ENVIRONMENT
- omitting some relevant variables from the ENVIRONMENT section
"reads OK" jmc@

Revision 1.33 / (download) - annotate - [select for diffs], Thu Jun 13 12:59:51 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.32: +4 -4 lines
Diff to previous 1.32 (colored)

su(I) goes back all the way to v1:
https://www.tuhs.org/Archive/Distributions/Research/Dennis_v1/man13.pdf
It wasn't in v0 PDP-7 UNIX though:
https://www.tuhs.org/Archive/Distributions/Research/McIlroy_v0/UnixEditionZero.txt

Revision 1.32 / (download) - annotate - [select for diffs], Wed Jun 12 08:29:17 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.31: +7 -2 lines
Diff to previous 1.31 (colored)

when "login" is not specified, "root" is used;
omission reported by Nan Xiao <xiaonan830818 at gmail dot com> on misc@

Revision 1.31 / (download) - annotate - [select for diffs], Thu Jul 30 08:03:49 2015 UTC (8 years, 9 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.30: +4 -4 lines
Diff to previous 1.30 (colored)

switch references from sudo to doas;
ok deraadt

Revision 1.30 / (download) - annotate - [select for diffs], Thu Apr 24 14:14:08 2014 UTC (10 years ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.29: +4 -9 lines
Diff to previous 1.29 (colored)

remove kerberos reference, and knock some fairly useless Xr out;

Revision 1.29 / (download) - annotate - [select for diffs], Tue Apr 22 12:53:48 2014 UTC (10 years ago) by henning
Branch: MAIN
Changes since 1.28: +0 -23 lines
Diff to previous 1.28 (colored)

no more kerb, ok kettenis

Revision 1.28 / (download) - annotate - [select for diffs], Fri Dec 10 19:32:21 2010 UTC (13 years, 5 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

It is user/root not user.root for kerberos 5.

Revision 1.27 / (download) - annotate - [select for diffs], Fri Dec 10 19:29:52 2010 UTC (13 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.26: +15 -8 lines
Diff to previous 1.26 (colored)

Try to make this a little less kerberos-centric and remove a BUGS
entry now that we have the -s option.  OK jmc@

Revision 1.26 / (download) - annotate - [select for diffs], Thu Dec 9 22:34:04 2010 UTC (13 years, 5 months ago) by sobrado
Branch: MAIN
Changes since 1.25: +4 -2 lines
Diff to previous 1.25 (colored)

.Bk/.Ek is required now to keep the output generated from each macro
input line together on one single output line.

ok jmc@ and millert@, who also noticed the ugly break.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Dec 9 15:45:30 2010 UTC (13 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.24: +9 -2 lines
Diff to previous 1.24 (colored)

Add support for "-s shell" to su(1).  This can be used by the superuser
to run a different shell than what the password database contains.
Based on a diff from robert@.  OK robert@ deraadt@

Revision 1.24 / (download) - annotate - [select for diffs], Thu May 31 19:20:17 2007 UTC (16 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

convert to new .Dd format;

Revision 1.23 / (download) - annotate - [select for diffs], Mon Apr 18 21:23:24 2005 UTC (19 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.22: +17 -14 lines
Diff to previous 1.22 (colored)

use a standard EXAMPLES format;
also there's no need for a list in here;

Revision 1.22 / (download) - annotate - [select for diffs], Mon Apr 18 21:13:36 2005 UTC (19 years, 1 month ago) by jmc
Branch: MAIN
Changes since 1.21: +11 -1 lines
Diff to previous 1.21 (colored)

add an example using both -c login_class and -c shell_arg;

requested by stuart henderson (pr #4178);
ok millert@ deraadt@ beck@

Revision 1.21 / (download) - annotate - [select for diffs], Sat Jan 22 16:29:40 2005 UTC (19 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.20: +5 -5 lines
Diff to previous 1.20 (colored)

put -K in the right place;
-a and -c take args;

Revision 1.20 / (download) - annotate - [select for diffs], Fri Jul 25 09:37:45 2003 UTC (20 years, 9 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.19: +2 -3 lines
Diff to previous 1.19 (colored)

remove obsolete kerberos references;
ok hin@

Revision 1.19 / (download) - annotate - [select for diffs], Tue Jun 10 09:12:12 2003 UTC (20 years, 11 months ago) by jmc
Branch: MAIN
Changes since 1.18: +20 -20 lines
Diff to previous 1.18 (colored)

- section reorder
- COMPATIBILITY merge
- macro cleanup
- kill whitespace at EOL
- new sentence, new line

ssh pages ok markus@

Revision 1.18 / (download) - annotate - [select for diffs], Tue Jun 3 02:56:17 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.17: +2 -6 lines
Diff to previous 1.17 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Nov 14 02:57:28 2002 UTC (21 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.16: +5 -5 lines
Diff to previous 1.16 (colored)

use $ or # before commands in examples

Revision 1.16 / (download) - annotate - [select for diffs], Wed Oct 16 01:06:32 2002 UTC (21 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.15: +12 -2 lines
Diff to previous 1.15 (colored)

Add a new flag, -L, to cause su(1) to loop asking for a login/password
repeatedly until the user authenticates or interrupts things.
This will be used to make login(1) no longer setuid.

Revision 1.15 / (download) - annotate - [select for diffs], Wed Mar 27 20:29:38 2002 UTC (22 years, 1 month ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.14: +5 -2 lines
Diff to previous 1.14 (colored)

We uyse 'krb4', not 'kerberos' for the authentication type.  Also
provide an example for -a usage.  Closes PR 2423.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Feb 17 23:59:20 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.13: +5 -1 lines
Diff to previous 1.13 (colored)

mention that '-' is the deprecated form of '-l'

Revision 1.13 / (download) - annotate - [select for diffs], Sun Aug 26 19:11:45 2001 UTC (22 years, 8 months ago) by heko
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.12: +2 -1 lines
Diff to previous 1.12 (colored)

su(1) see also: sudo(8) - users coming fron other UNIX environments may
be using su for purposes where sudo would serve better.
Suggested by <allenwc@home.com>.
Ok millert@

Revision 1.12 / (download) - annotate - [select for diffs], Tue May 29 21:40:36 2001 UTC (22 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.11: +41 -22 lines
Diff to previous 1.11 (colored)

add support for BSD authentication

Revision 1.11 / (download) - annotate - [select for diffs], Tue May 1 17:58:04 2001 UTC (23 years ago) by aaron
Branch: MAIN
Changes since 1.10: +1 -3 lines
Diff to previous 1.10 (colored)

Remove completely redundant introductory sentences in ENVIRONMENT sections.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Aug 20 18:42:41 2000 UTC (23 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.9: +7 -1 lines
Diff to previous 1.9 (colored)

Add calls to setusercontext() and login_get*().  We basically call
setusercontext() in most places where previously we did a setlogin().
Add default login.conf file and put root in the "daemon" login class.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Mar 11 21:40:03 2000 UTC (24 years, 2 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.8: +19 -17 lines
Diff to previous 1.8 (colored)

Various cleanups and standardizations.

Revision 1.8 / (download) - annotate - [select for diffs], Sat Jun 5 01:21:41 1999 UTC (24 years, 11 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.7: +30 -30 lines
Diff to previous 1.7 (colored)

- remove trailing white space
- remove arguments from .Os macros
- remove arguments from .Nm macros, where appropriate
- some more Dq/Sq/Ql insanity
- still lots to do in the usr.bin tree... :/

Revision 1.7 / (download) - annotate - [select for diffs], Sun Sep 27 16:57:54 1998 UTC (25 years, 7 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.6: +8 -8 lines
Diff to previous 1.6 (colored)

usr.bin/ man page cleanups, n-s

Revision 1.6 / (download) - annotate - [select for diffs], Thu Sep 4 08:16:22 1997 UTC (26 years, 8 months ago) by provos
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.5: +10 -2 lines
Diff to previous 1.5 (colored)

clarify usage of wheel group; twp@tezcat.com

Revision 1.5 / (download) - annotate - [select for diffs], Sat Oct 26 03:19:30 1996 UTC (27 years, 6 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.4: +13 -4 lines
Diff to previous 1.4 (colored)

Now sets $LOGNAME as per POSIX.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Oct 12 20:40:38 1996 UTC (27 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.3: +31 -3 lines
Diff to previous 1.3 (colored)

su.c: minor cleanup, some from FreeBSD
su.1: Examples from FreeBSD + minor nits fixed.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jun 26 05:39:34 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored)

rcsid

Revision 1.2 / (download) - annotate - [select for diffs], Sun Jan 7 09:51:21 1996 UTC (28 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +7 -3 lines
Diff to previous 1.1 (colored)

more traditional semantics. if wheel group has no listed users, anyone
can su to root. default wheel group lists "root" as a user, thus
defaulting to a secure envirment. from arnej@pvv.unit.no; netbsd pr#1894

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:46:09 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:46:09 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.