summaryrefslogtreecommitdiff
path: root/usr.bin/su/su.1
AgeCommit message (Collapse)Author
2023-03-24PR misc/57287 from Nan Xiaokre
While it has always been assumed that everyone "just knew" that a simple "su' meant "su root" perhaps the man page really should make that explicit. Do that (using slightly different wording than suggested in the PR).
2019-09-01Remove superfluous Ns.wiz
2019-09-01su was in v1sevan
https://www.bell-labs.com/usr/dmr/www/man13.pdf
2017-05-18Correct the man page referenceabhinav
2014-09-19Sort sections. From Henning Petersen in PR 49222.wiz
2012-11-21Note that 'su -l' does not update utmp and related databases.pgoyette
2009-05-18Sort options.wiz
2007-10-27bump date.christos
2007-10-27uncomment the group handling documentation.christos
2007-10-17From Anon Ymous:christos
- general cleanup [e-funcs, lint fixes, exit values, more error checking] - add the ability to change the primary group group as login:group, or :group *disabled*, until it is discussed. - remove krb4 code since there is no more krb4 code in the tree. - also make the old su behave like the pam su: su to the same user, does not ask for a password. - split out shared code into a separate file.
2005-12-15Give a general description what this command does before going intohubertf
all the details.
2005-07-05Set LOGNAME in the new environment (in addition to USER);kleink
fixes PR bin/30670 from Pavel Cahyna.
2005-06-19Use groff macros instead of troff ones.wiz
2005-06-19Drop trailing whitespace.wiz
2005-04-05Update with pam descriptions.christos
XXX: needs more work. 1. code needs to be added in pam_group.so to handle indirect groups and documented. 2. the indirect group description outside before the customization section does not work with pam, but could be made to work once [1] is implemented.
2005-02-28Fix unmatched .El warning.christos
2005-02-01Add commented out notes on how we support the special compilation optionschristos
under pam.
2004-04-27Remove a leftover line apparently from rev. 1.17; also from Juha Hyttinenkleink
in PR bin/25347.
2004-04-27Fix typo (SU_INDIRECT_GROOP -> SU_INDIRECT_GROUP). PR#25347 fromcjep
Juha Hyttinen.
2003-09-17Hey, wiz! Doesn't this need a comma?atatat
2003-08-23Comma and Pp police. Bump date for last.wiz
2003-08-20Normalize the program's compilation options so they are all of the form SU_christos
and document them.
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-04-27Drop trailing space.wiz
2003-04-27Implement the `-d' option, which behaves as `-l' but does not change thejmmv
current directory. Idea suggested by dsl@ in source-changes.
2003-04-24Bump date for last.wiz
2003-04-20PR/5803: Gregg A. Woods: su doesn't support it's "-f" option for sh and/or kshchristos
fixed by unsetenv("ENV") when -f is set and the shell is not csh.
2003-02-25.Nm does not need a dummy argument ("") before punctuation orwiz
for correct formatting of the SYNOPSIS any longer.
2003-02-21Add missing dot to the `-' option. Ok'ed by wiz.jmmv
2003-01-19Add EXIT STATUS section.jmmv
2002-10-13New sentence, new line; drop trailing whitespace.wiz
2002-10-05Make example clearer, that the -c _after_ the login is passed to the shell.hubertf
Addresses PR 18538 by reed@reedmedia.net
2001-12-08Sort sections, sort SEE ALSO, use .Pp instead of empty lines.wiz
2001-04-04kerberos(1) -> (8). Sort SEE ALSO.wiz
2001-03-08Correct the HISTORY section, per PR 11192 and Robert Elz.fair
2001-01-10If SU_INDIRECT_GROUP is defined (it is by default), then su willsjg
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.
2000-05-10Add some examples of usage. Modelled after what is in Solaris manpage,jdolecek
though no text has been actually copied from there (for legal reasons).
2000-02-11Set SU_FROM environment variable. This can be used to determine a 'su -'abs
shell from a real login shell (but only if you care).
2000-01-14Implement login_cap capability lookup.mjl
1999-09-27Mention "-" is the same as "-l". Closes PR/8499 by Matthew Aldous.mjl
1999-05-02Bring $PATH information in sync with _PATH_DEFPATH.kleink
1997-10-19WARNSify, fix .Nm usage, deprecate register, getopt returns -1 not EOFlukem
1997-07-02As per discussion with mrg, back out parts of previous change.lukem
The appropriate entry in /etc/group as returned by getgrnam() is used to determine if 'su root' may be permitted, rather than checking if membership exists in the result of getgroups(). The following changes were made regarding the behaviour of the special group for 'su root' * allow for definition of SUGROUP (defaults to "wheel") to override group name. * use getgrnam(SUGROUP) instead of getgrgid(0). * only scan getgrnam(SUGROUP)->gr_mem when checking for group membership. * be more specific as to why 'su root' failed NOTE: If a user's primary group is SUGROUP, and they're not a member of SUGROUP in /etc/group, they will not be able to su.
1997-06-27* Notify of impending password or account expiry (check againstlukem
_PASSWORD_WARNDAYS from <pwd.h>). For non-root users, enforce expiry when it happens. From Simon Gerraty <sjg@zen.void.oz.au> in [bin/935]. * Check for group 0 in process's current group membership (as returned by getgroups(2)), instead of just looking at the entry for wheel in /etc/group. Based on code by Dan Caresone <dan@oink.geek.com.au> in [bin/792], and also solves [bin/2466]. * Clean up to pass -Wall
1997-03-08alternate -> alternative, per PR 2643mouse
1997-01-31Document the recent change in group wheel semantics. Also, it wasn'tghudson
previously documented that anyone could su to root if group 0 didn't exist.
1997-01-20Add list of bugs: relies only on /etc/group for group membership,cjs
sets policy in code.
1997-01-09Sync to 4.4BSD-Lite2tls
1994-09-05Document usage of additional arguments after login name, as suggested bymycroft
Peter da Silva (slightly edited).
1994-05-24add skey supportderaadt