Debian Codegraph @

doc/ko/lxc-usernsexec.sgml.in

raw
1 <!-- SPDX-License-Identifier: LGPL-2.1+ -->
2
3 <!DOCTYPE refentry PUBLIC @docdtd@ [
4
5 <!ENTITY commonoptions SYSTEM "@builddir@/common_options.sgml">
6 <!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
7 ]>
8
9 <refentry>
10
11 <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
12
13 <refmeta>
14 <refentrytitle>lxc-usernsexec</refentrytitle>
15 <manvolnum>1</manvolnum>
16 </refmeta>
17
18 <refnamediv>
19 <refname>lxc-usernsexec</refname>
20
21 <refpurpose>
22 <!--
23 Run a task as root in a new user namespace.
24 -->
25 새로운 사용자 네임스페이스에서 root로 태스크를 실행
26 </refpurpose>
27 </refnamediv>
28
29 <refsynopsisdiv>
30 <cmdsynopsis>
31 <command>lxc-usernsexec</command>
32 <arg choice="opt">-m <replaceable>uid-map</replaceable></arg>
33 <arg choice="req">-- command</arg>
34 </cmdsynopsis>
35 </refsynopsisdiv>
36
37 <refsect1>
38 <title><!-- Description -->설명</title>
39
40 <para>
41 <!--
42 <command>lxc-usernsexec</command> can be used to run a task as root
43 in a new user namespace.
44 -->
45 <command>lxc-usernsexec</command>는 새로운 사용자 네임스페이스에서 루트로 태스크를 실행한다.
46 </para>
47
48 </refsect1>
49
50 <refsect1>
51
52 <title><!-- Options -->옵션</title>
53
54 <variablelist>
55
56 <varlistentry>
57 <term>
58 <option>-m <replaceable>uid-map</replaceable></option>
59 </term>
60 <listitem>
61 <para>
62 <!--
63 The uid map to use in the user namespace. Each map consists of
64 four colon-separate values. First a character 'u', 'g' or 'b' to
65 specify whether this map pertains to user ids, group ids, or
66 both; next the first userid in the user namespace; next the
67 first userid as seen on the host; and finally the number of
68 ids to be mapped.
69 -->
70 사용자 네임스페이스에서 사용될 uid 맵. 각각의 맵은 4개의 콜론(:)으로 구분된 값들로 구성되어 있다. 첫 번째는 'u', 'g', 'b' 문자로 각각 UID, GID, 또는 UID 및 GID 를 가리킨다. 그 다음은 사용자 네임스페이스 내에서의 UID, 그다음은 호스트의 UID, 그리고 마지막으로 매핑할 ID의 수를 지정한다.
71 </para>
72 <para>
73 <!--
74 More than one map can be specified. If no map is
75 specified, then by default the full uid and gid ranges granted
76 by /etc/subuid and /etc/subgid will be mapped to the
77 uids and gids starting at 0 in the container.
78 -->
79 맵은 1개 이상도 지정가능하다. 만약 맵이 지정되지 않았다면, 기본값은 /etc/subuid와 /etc/subgid에서 허용된 모든 범위의 uid, gid가 컨테이너 내에서 0번부터 매핑된다.
80 </para>
81 <para>
82 <!--
83 Note that <replaceable>lxc-usernsexec</replaceable> always tries
84 to setuid and setgid to 0 in the namespace. Therefore uid 0 in
85 the namespace must be mapped.
86 -->
87 <replaceable>lxc-usernsexec</replaceable>는 언제나 0번 setuid와 setgid를 시도한 다는 것에 주의해야 한다. 그러므로 네임스페이스 내에서 uid 0은 매핑이 되어있어야 한다.
88 </para>
89 </listitem>
90 </varlistentry>
91
92
93 </variablelist>
94
95 </refsect1>
96
97 <refsect1>
98 <title><!-- Examples -->예제</title>
99 <para>
100 <!--
101 To spawn a shell with the full allotted subuids mapped into
102 the container, use
103 <programlisting>
104 lxc-usernsexec
105 </programlisting>
106 To run a different shell than <replaceable>/bin/sh</replaceable>, use
107 <programlisting>
108 lxc-usernsexec &#045;&#045; /bin/bash
109 </programlisting>
110 -->
111 할당된 모든 subuid를 컨테이너에 매핑해서 쉘을 실행하려면,
112 <programlisting>
113 lxc-usernsexec
114 </programlisting>
115 를 사용하면 된다.
116 <replaceable>/bin/sh</replaceable>대신 다른 쉘을 실행하려면,
117 <programlisting>
118 lxc-usernsexec -- /bin/bash
119 </programlisting>
120 를 사용하면 된다.
121 </para>
122 <para>
123 <!--
124 If your user id is 1000, root in a container is mapped to 190000, and
125 you wish to chown a file you own to root in the container, you can use:
126 <programlisting>
127 lxc-usernsexec -m b:0:1000:1 -m b:1:190000:1 &#045;&#045; /bin/chown 1:1 $file
128 </programlisting>
129 This maps your userid to root in the user namespace, and 190000 to uid 1.
130 Since root in the user namespace is privileged over all userids mapped
131 into the namespace, you are allowed to change the file ownership, which
132 you could not do on the host using a simple chown.
133 -->
134 만약 현재 UID가 1000이고, 컨테이너의 root가 190000으로 매핑되어 있으며, 현재 사용자가 소유하고 있는 파일을 컨테이너의 root가 소유하도록 하려면, 아래처럼 하면 된다.
135 <programlisting>
136 lxc-usernsexec -m b:0:1000:1 -m b:1:190000:1 -- /bin/chown 1:1 $file
137 </programlisting>
138 이것은 현재 UID를 사용자 네임스페이스 내에서 root로 하고, 190000을 uid 1로 매핑한다.
139 사용자 네임스페이스의 root는 네임스페이스의 모든 UID에 권한이 있기 때문에, 호스트에서 chown을 사용할 수 없더라도 파일의 소유자를 변경할 수 있다.
140 </para>
141 </refsect1>
142
143 &seealso;
144
145 </refentry>
146
147 <!-- Keep this comment at the end of the file
148 Local variables:
149 mode: sgml
150 sgml-omittag:t
151 sgml-shorttag:t
152 sgml-minimize-attributes:nil
153 sgml-always-quote-attributes:t
154 sgml-indent-step:2
155 sgml-indent-data:t
156 sgml-parent-document:nil
157 sgml-default-dtd-file:nil
158 sgml-exposed-tags:nil
159 sgml-local-catalogs:nil
160 sgml-local-ecat-files:nil
161 End:
162 -->