xref: /freebsd/crypto/heimdal/appl/su/su.1 (revision 6a068746777241722b2b32c5d0bc443a2a64d80b)
1*ae771770SStanislav Sedov.\" Copyright (c) 2003 - 2006 Kungliga Tekniska Högskolan
2c19800e8SDoug Rabson.\" (Royal Institute of Technology, Stockholm, Sweden).
3c19800e8SDoug Rabson.\" All rights reserved.
4c19800e8SDoug Rabson.\"
5c19800e8SDoug Rabson.\" Redistribution and use in source and binary forms, with or without
6c19800e8SDoug Rabson.\" modification, are permitted provided that the following conditions
7c19800e8SDoug Rabson.\" are met:
8c19800e8SDoug Rabson.\"
9c19800e8SDoug Rabson.\" 1. Redistributions of source code must retain the above copyright
10c19800e8SDoug Rabson.\"    notice, this list of conditions and the following disclaimer.
11c19800e8SDoug Rabson.\"
12c19800e8SDoug Rabson.\" 2. Redistributions in binary form must reproduce the above copyright
13c19800e8SDoug Rabson.\"    notice, this list of conditions and the following disclaimer in the
14c19800e8SDoug Rabson.\"    documentation and/or other materials provided with the distribution.
15c19800e8SDoug Rabson.\"
16c19800e8SDoug Rabson.\" 3. Neither the name of the Institute nor the names of its contributors
17c19800e8SDoug Rabson.\"    may be used to endorse or promote products derived from this software
18c19800e8SDoug Rabson.\"    without specific prior written permission.
19c19800e8SDoug Rabson.\"
20c19800e8SDoug Rabson.\" THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
21c19800e8SDoug Rabson.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22c19800e8SDoug Rabson.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23c19800e8SDoug Rabson.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
24c19800e8SDoug Rabson.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25c19800e8SDoug Rabson.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26c19800e8SDoug Rabson.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27c19800e8SDoug Rabson.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28c19800e8SDoug Rabson.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29c19800e8SDoug Rabson.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30c19800e8SDoug Rabson.\" SUCH DAMAGE.
31c19800e8SDoug Rabson.\"
32*ae771770SStanislav Sedov.\" $Id$
33c19800e8SDoug Rabson.\"
34c19800e8SDoug Rabson.Dd January 12, 2006
35c19800e8SDoug Rabson.Dt SU 1
36c19800e8SDoug Rabson.Os HEIMDAL
37c19800e8SDoug Rabson.Sh NAME
38c19800e8SDoug Rabson.Nm su
39c19800e8SDoug Rabson.Nd substitute user identity
40c19800e8SDoug Rabson.Sh SYNOPSIS
41c19800e8SDoug Rabson.Nm su
42*ae771770SStanislav Sedov.Op Fl K | Fl Fl no-kerberos
43c19800e8SDoug Rabson.Op Fl f
44*ae771770SStanislav Sedov.Op Fl l | Fl Fl full
45c19800e8SDoug Rabson.Op Fl m
46c19800e8SDoug Rabson.Oo Fl i Ar instance \*(Ba Xo
47*ae771770SStanislav Sedov.Fl Fl instance= Ns Ar instance
48c19800e8SDoug Rabson.Xc
49c19800e8SDoug Rabson.Oc
50c19800e8SDoug Rabson.Oo Fl c Ar command \*(Ba Xo
51*ae771770SStanislav Sedov.Fl Fl command= Ns Ar command
52c19800e8SDoug Rabson.Xc
53c19800e8SDoug Rabson.Oc
54c19800e8SDoug Rabson.Op Ar login Op Ar "shell arguments"
55c19800e8SDoug Rabson.Sh DESCRIPTION
56c19800e8SDoug Rabson.Nm su
57c19800e8SDoug Rabsonwill use Kerberos authentication provided that an instance for the
58c19800e8SDoug Rabsonuser wanting to change effective UID is present in a file named
59c19800e8SDoug Rabson.Pa .k5login
60c19800e8SDoug Rabsonin the target user id's home directory
61c19800e8SDoug Rabson.Pp
62c19800e8SDoug RabsonA special case exists where
63c19800e8SDoug Rabson.Ql root Ap s
64c19800e8SDoug Rabson.Pa ~/.k5login
65c19800e8SDoug Rabsonneeds to contain an entry for:
66c19800e8SDoug Rabson.Ql user Ns / Ns Ao instance Ac Ns @ Ns REALM
67c19800e8SDoug Rabsonfor
68c19800e8SDoug Rabson.Nm su
69c19800e8SDoug Rabsonto succed (where
70c19800e8SDoug Rabson.Aq instance
71c19800e8SDoug Rabsonis
72c19800e8SDoug Rabson.Ql root
73c19800e8SDoug Rabsonunless changed with
74c19800e8SDoug Rabson.Fl i ) .
75c19800e8SDoug Rabson.Pp
76c19800e8SDoug RabsonIn the absence of either an entry for current user in said file or
77c19800e8SDoug Rabsonother problems like missing
78c19800e8SDoug Rabson.Ql host/hostname@REALM
79c19800e8SDoug Rabsonkeys in the system's
80c19800e8SDoug Rabsonkeytab, or user typing the wrong password,
81c19800e8SDoug Rabson.Nm su
82c19800e8SDoug Rabsonwill fall back to traditional
83c19800e8SDoug Rabson.Pa /etc/passwd
84c19800e8SDoug Rabsonauthentication.
85c19800e8SDoug Rabson.Pp
86c19800e8SDoug RabsonWhen using
87c19800e8SDoug Rabson.Pa /etc/passwd
88c19800e8SDoug Rabsonauthentication,
89c19800e8SDoug Rabson.Nm su
90c19800e8SDoug Rabsonallows
91c19800e8SDoug Rabson.Ql root
92c19800e8SDoug Rabsonaccess only to members of the group
93c19800e8SDoug Rabson.Ql wheel ,
94c19800e8SDoug Rabsonor to any user (with knowledge of the
95c19800e8SDoug Rabson.Ql root
96c19800e8SDoug Rabsonpassword) if that group
97c19800e8SDoug Rabsondoes not exist, or has no members.
98c19800e8SDoug Rabson.Pp
99c19800e8SDoug RabsonThe options are as follows:
100c19800e8SDoug Rabson.Bl -item -width Ds
101c19800e8SDoug Rabson.It
102c19800e8SDoug Rabson.Fl K ,
103*ae771770SStanislav Sedov.Fl Fl no-kerberos
104c19800e8SDoug Rabsondon't use Kerberos.
105c19800e8SDoug Rabson.It
106c19800e8SDoug Rabson.Fl f
107c19800e8SDoug Rabsondon't read .cshrc.
108c19800e8SDoug Rabson.It
109c19800e8SDoug Rabson.Fl l ,
110*ae771770SStanislav Sedov.Fl Fl full
111c19800e8SDoug Rabsonsimulate full login.
112c19800e8SDoug Rabson.It
113c19800e8SDoug Rabson.Fl m
114c19800e8SDoug Rabsonleave environment unmodified.
115c19800e8SDoug Rabson.It
116c19800e8SDoug Rabson.Fl i Ar instance ,
117*ae771770SStanislav Sedov.Fl Fl instance= Ns Ar instance
118c19800e8SDoug Rabsonroot instance to use.
119c19800e8SDoug Rabson.It
120c19800e8SDoug Rabson.Fl c Ar command ,
121*ae771770SStanislav Sedov.Fl Fl command= Ns Ar command
122c19800e8SDoug Rabsoncommand to execute.
123c19800e8SDoug Rabson.El
124