[go: up one dir, main page]

File: fakechroot.1

package info (click to toggle)
fakechroot 2.19-3.2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,124 kB
  • sloc: ansic: 6,875; sh: 5,995; makefile: 348; perl: 169; java: 5
file content (469 lines) | stat: -rw-r--r-- 17,927 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
.\" Automatically generated by Pod::Man 4.07 (Pod::Simple 3.32)
.\"
.\" Standard preamble:
.\" ========================================================================
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Vb \" Begin verbatim text
.ft CW
.nf
.ne \\$1
..
.de Ve \" End verbatim text
.ft R
.fi
..
.\" Set up some character translations and predefined strings.  \*(-- will
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
.\" double quote, and \*(R" will give a right double quote.  \*(C+ will
.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and
.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,
.\" nothing in troff, for use with C<>.
.tr \(*W-
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
.ie n \{\
.    ds -- \(*W-
.    ds PI pi
.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
.    ds L" ""
.    ds R" ""
.    ds C` ""
.    ds C' ""
'br\}
.el\{\
.    ds -- \|\(em\|
.    ds PI \(*p
.    ds L" ``
.    ds R" ''
.    ds C`
.    ds C'
'br\}
.\"
.\" Escape single quotes in literal strings from groff's Unicode transform.
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\"
.\" If the F register is >0, we'll generate index entries on stderr for
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
.\" entries marked with X<> in POD.  Of course, you'll have to process the
.\" output yourself in some meaningful fashion.
.\"
.\" Avoid warning from groff about undefined register 'F'.
.de IX
..
.if !\nF .nr F 0
.if \nF>0 \{\
.    de IX
.    tm Index:\\$1\t\\n%\t"\\$2"
..
.    if !\nF==2 \{\
.        nr % 0
.        nr F 2
.    \}
.\}
.\"
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
.\" Fear.  Run.  Save yourself.  No user-serviceable parts.
.    \" fudge factors for nroff and troff
.if n \{\
.    ds #H 0
.    ds #V .8m
.    ds #F .3m
.    ds #[ \f1
.    ds #] \fP
.\}
.if t \{\
.    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
.    ds #V .6m
.    ds #F 0
.    ds #[ \&
.    ds #] \&
.\}
.    \" simple accents for nroff and troff
.if n \{\
.    ds ' \&
.    ds ` \&
.    ds ^ \&
.    ds , \&
.    ds ~ ~
.    ds /
.\}
.if t \{\
.    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
.    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
.    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
.    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
.    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
.    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
.\}
.    \" troff and (daisy-wheel) nroff accents
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
.ds ae a\h'-(\w'a'u*4/10)'e
.ds Ae A\h'-(\w'A'u*4/10)'E
.    \" corrections for vroff
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
.    \" for low resolution devices (crt and lpr)
.if \n(.H>23 .if \n(.V>19 \
\{\
.    ds : e
.    ds 8 ss
.    ds o a
.    ds d- d\h'-1'\(ga
.    ds D- D\h'-1'\(hy
.    ds th \o'bp'
.    ds Th \o'LP'
.    ds ae ae
.    ds Ae AE
.\}
.rm #[ #] #H #V #F C
.\" ========================================================================
.\"
.IX Title "FAKECHROOT 1"
.TH FAKECHROOT 1 "17 Nov 2016" "fakechroot" " "
.\" For nroff, turn off justification.  Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
.nh
.SH "NAME"
fakechroot \- gives a fake chroot environment
.SH "SYNOPSIS"
.IX Header "SYNOPSIS"
\&\fBfakechroot\fR
[\fB\-s\fR|\fB\-\-use\-system\-libs\fR]
[\fB\-l\fR|\fB\-\-lib\fR\ \fIlibrary\fR]
[\fB\-d\fR|\fB\-\-elfloader\fR\ \fIldso\fR]
[\fB\-e\fR|\fB\-\-environment\fR\ \fItype\fR]
[\fB\-c\fR|\fB\-\-config\-dir\fR\ \fIdirectory\fR]
[\fB\-b\fR|\fB\-\-bindir\fR\ \fIdirectory\fR]
[\fB\-\-\fR]
[\fIcommand\fR]
.PP
\&\fBfakechroot\fR
\&\fB\-h\fR|\fB\-\-help\fR
.PP
\&\fBfakechroot\fR
\&\fB\-v\fR|\fB\-\-version\fR
.SH "DESCRIPTION"
.IX Header "DESCRIPTION"
fakechroot runs a command in an environment where is additional possibility to
use \fIchroot\fR\|(8) command without root privileges. This is useful for allowing
users to create own chrooted environment with possibility to install another
packages without need for root privileges.
.PP
fakechroot replaces some C library functions (\fIchroot\fR\|(2), \fIopen\fR\|(2), etc.)
by ones that simulate the effect of being called with root privileges.
.PP
These wrapper functions are provided as a shared library \fIlibfakechroot.so\fR
which is loaded through the \f(CW\*(C`LD_PRELOAD\*(C'\fR mechanism of the dynamic loader.
(See \fIld.so\fR\|(8))
.PP
In fake chroot you can install i.e. Debian bootstrap with \fIdebootstrap\fR\|(8)
command. In such environment you can run i.e. \fIapt\-get\fR\|(8) command to install
another packages. You don't need a special privileges and you can run it on
common user's account.
.SH "OPTIONS"
.IX Header "OPTIONS"
.IP "\fB\-l\fR \fIlibrary\fR|\fB\-\-lib\fR \fIlibrary\fR" 4
.IX Item "-l library|--lib library"
Specify an alternative wrapper library. The default is \fIlibfakechroot.so\fR
.IP "\fB\-d\fR \fIldso\fR|\fB\-\-elfloader\fR \fIldso\fR" 4
.IX Item "-d ldso|--elfloader ldso"
Specify an alternative dynamic linker. This dynamic linker will be invoked
directly.
.IP "\fB\-s\fR|\fB\-\-use\-system\-libs\fR" 4
.IX Item "-s|--use-system-libs"
Use system libraries before chroot's libraries. This might be a workaround if
system dynamic linker cannot load \fIlibc.so\fR from fake chroot.
.Sp
Try this setting if you noticed following errors:
.Sp
.Vb 4
\& $ fakechroot /usr/sbin/chroot /tmp/sarge /bin/true
\& /bin/true: relocation error: /srv/sarge/lib/tls/libc.so.6: symbol _dl
\& _starting_up, version GLIBC_PRIVATE not defined in file ld\-linux.so.2
\&  with link time reference
\&
\& $ fakechroot /usr/sbin/chroot /tmp/centos4 /bin/true
\& Segmentation fault
.Ve
.IP "\fB\-e\fR|\fB\-\-environment\fR \fItype\fR" 4
.IX Item "-e|--environment type"
Load additional configuration with environment. This configuration file
is a shell script which is executed before calling \fIcommand\fR. The
script can set additional environment variables, like i.e.:
\&\f(CW\*(C`FAKECHROOT_EXCLUDE_PATH\*(C'\fR, \f(CW\*(C`FAKECHROOT_CMD_SUBST\*(C'\fR or \f(CW\*(C`LD_LIBRARY_PATH\*(C'\fR.
.Sp
The environment type is guessed based on command name with optional extension
removed (e.g. running \fIgettext.sh\fR loads \f(CW\*(C`gettext\*(C'\fR environment file). If
\&\fIcommand\fR argument is \fIfakeroot\fR\|(1) this argument is omitted and next argument
is taken as environment type.
.Sp
The configuration file name is \fI\fItype\fI.env\fR and is searched at
\&\fI\f(CI$HOME\fI/.fakechroot\fR and \fI/etc/fakechroot\fR directories.
.Sp
The default environment type is \fBdefault\fR and its configuration file name is
\&\f(CW\*(C`default.env\*(C'\fR.
.Sp
The special environment \fBnone\fR means that no environment settings are loaded
at all.
.IP "\fB\-c\fR|\fB\-\-config\-dir\fR \fIdirectory\fR" 4
.IX Item "-c|--config-dir directory"
Specify a directory which contains additional configuration for fakechroot. The
default directory are \f(CW\*(C`$HOME/.fakechroot\*(C'\fR and \f(CW\*(C`/etc/fakechroot\*(C'\fR.
.IP "\fB\-b\fR|\fB\-\-bindir\fR \fIdirectory\fR" 4
.IX Item "-b|--bindir directory"
Specify a directory which contains the replacement executables
shipped with fakechroot.
Those are script files with the extension \f(CW\*(C`.fakechroot\*(C'\fR.
By default they are distributed over the
\&\f(CW\*(C`bin\*(C'\fR and \f(CW\*(C`sbin\*(C'\fR directories in fakechroot's install prefix,
but sometimes a fixed location at build time is not feasible.
.IP "[\fB\-\-\fR] \fIcommand\fR" 4
.IX Item "[--] command"
Any command you want to be run as fakechroot. Use '\fB\-\-\fR' if in the command
you have other options that may confuse fakechroot's option parsing.
.IP "\fB\-h\fR" 4
.IX Item "-h"
Display help.
.IP "\fB\-v\fR" 4
.IX Item "-v"
Display version.
.SH "EXAMPLES"
.IX Header "EXAMPLES"
An example session with fakechroot:
.PP
.Vb 2
\&  $ id
\&  uid=1000(dexter) gid=1000(dexter) groups=1000(dexter)
\&
\&  $ fakechroot fakeroot debootstrap sid /tmp/sid
\&  I: Retrieving Release 
\&  I: Retrieving Release.gpg 
\&  I: Checking Release signature
\&  ...
\&  I: Base system installed successfully.
\&
\&  $ fakechroot fakeroot chroot /tmp/sid apt\-get install \-q hello
\&  Reading package lists...
\&  Building dependency tree...
\&  Reading state information...
\&  The following NEW packages will be installed:
\&    hello
\&  0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
\&  Need to get 57.4 kB of archives.
\&  After this operation, 558 kB of additional disk space will be used.
\&  Get:1 http://ftp.us.debian.org/debian/ sid/main hello amd64 2.8\-4 [57.4 kB]
\&  Fetched 57.4 kB in 0s (127 kB/s)
\&  Selecting previously unselected package hello.
\&  (Reading database ... 24594 files and directories currently installed.)
\&  Unpacking hello (from .../archives/hello_2.8\-4_amd64.deb) ...
\&  Processing triggers for man\-db ...
\&  Processing triggers for install\-info ...
\&  Setting up hello (2.8\-4) ...
\&
\&  $ fakechroot chroot /tmp/sid hello
\&  Hello, world!
.Ve
.SH "FAKEROOT"
.IX Header "FAKEROOT"
\&\fIfakeroot\fR\|(1) is a complementary tool which emulates root environment. fakeroot
and fakechroot might wrap the same C library functions, i.e. \fImknod\fR\|(2)
function. It is important to start fake environment in proper order. fakeroot
should be started inside fakechroot:
.PP
.Vb 1
\&  $ fakechroot fakeroot chroot /tmp/sid /bin/mknod /tmp/device c 1 2
.Ve
.SH "SECURITY ASPECTS"
.IX Header "SECURITY ASPECTS"
fakechroot is a regular, non-setuid program. It does not enhance a user's
privileges.
.PP
fakechroot should not be used as a tool for enhancing system security i.e. by
separating (sandboxing) applications. It is very easy to escape from a fake
chroot environment.
.PP
fakechroot should not be run with real root privileges. It might decrease the
security of the system because the fakechroot provides own version of core
functions with behavior depended on some environment variables.
.SH "FILES"
.IX Header "FILES"
.IP "\fIlibfakechroot.so\fR" 4
.IX Item "libfakechroot.so"
The shared library containing the wrapper functions.
.SH "ENVIRONMENT"
.IX Header "ENVIRONMENT"
.IP "\fB\s-1FAKECHROOT\s0\fR" 4
.IX Item "FAKECHROOT"
The value is true for fake chroot environment.
.IP "\fB\s-1FAKECHROOT_VERSION\s0\fR" 4
.IX Item "FAKECHROOT_VERSION"
The version number of the current fakechroot library.
.IP "\fB\s-1FAKECHROOT_BASE\s0\fR" 4
.IX Item "FAKECHROOT_BASE"
The root directory of fake chroot environment.
.IP "\fB\s-1FAKECHROOT_DETECT\s0\fR" 4
.IX Item "FAKECHROOT_DETECT"
If this variable is set then \f(CW\*(C`fakechroot \f(CIversion\f(CW\*(C'\fR string is printed to
standard output and the current process is terminated with status taken from
this variable. It can be a method to check if fakechroot is preloaded
correctly.
.Sp
.Vb 1
\&  $ case "\`FAKECHROOT_DETECT=1 /bin/echo\`" in fakechroot*) echo LOADED;; esac
.Ve
.IP "\fB\s-1FAKECHROOT_DEBUG\s0\fR" 4
.IX Item "FAKECHROOT_DEBUG"
The fakechroot library will dump some debugging info if this variable is set.
.IP "\fB\s-1FAKECHROOT_AF_UNIX_PATH\s0\fR" 4
.IX Item "FAKECHROOT_AF_UNIX_PATH"
The root directory for unix sockets. The default value is the same as
\&\f(CW\*(C`FAKECHROOT_BASE\*(C'\fR and it can be set separately if the \f(CW\*(C`FAKECHROOT_BASE\*(C'\fR is
too long and the unix socket path could exceed the limit of \fB108\fR bytes.
.IP "\fB\s-1FAKECHROOT_EXCLUDE_PATH\s0\fR" 4
.IX Item "FAKECHROOT_EXCLUDE_PATH"
The list of directories which are excluded from being chrooted. The elements
of list are separated with colon.
.Sp
The \fI/dev\fR, \fI/proc\fR and \fI/sys\fR directories are excluded by default if this
environment variable is not set.
.Sp
This list has to contain at most 100 elements.
.IP "\fB\s-1FAKECHROOT_ELFLOADER\s0\fR" 4
.IX Item "FAKECHROOT_ELFLOADER"
A path to another dynamic linker (i.e. \fI/lib/ld\-linux.so.2\fR for i386
architecture, \fI/lib64/ld\-linux\-x86\-64.so.2\fR for x86_64 architecture).
.Sp
This dynamic linker will be invoked directly. The dynamic linker don't allow
to change \f(CW\*(C`argv[0]\*(C'\fR besides the file name of the executable file, so some
application won't work correctly, i.e. \fIbusybox\fR\|(1).
.IP "\fB\s-1FAKECHROOT_CMD_SUBST\s0\fR" 4
.IX Item "FAKECHROOT_CMD_SUBST"
A list of command substitutions. If a program tries to execute one of
the commands given (path relative to the chroot, trailing dot is removed) then
the substitute command runs instead (path to substitute command is not
chrooted).
.Sp
The substituted command inherits \f(CW\*(C`FAKECHROOT_*\*(C'\fR variables but the original
\&\f(CW\*(C`FAKECHROOT_BASE\*(C'\fR variable which is saved as \f(CW\*(C`FAKECHROOT_BASE_ORIG\*(C'\fR. It
means that substituted command runs outside fakechroot environment. Also
original command name is saved as \f(CW\*(C`FAKECHROOT_CMD_ORIG\*(C'\fR.
.Sp
For example:
.Sp
.Vb 1
\&  export FAKECHROOT_CMD_SUBST=/usr/bin/mkfifo=/bin/true
.Ve
.Sp
will substitute \f(CW\*(C`/bin/true\*(C'\fR for \f(CW\*(C`/usr/bin/mkfifo\*(C'\fR and will make possible to
install sysvinit binary package.
.Sp
Give as many substitute commands as you want, separated by \f(CW\*(C`:\*(C'\fR
(colon) characters.
.Sp
It is suggested to substitute at least:
.RS 4
.IP "\(bu" 2
\&\f(CW\*(C`/bin/mount=/bin/true\*(C'\fR
.IP "\(bu" 2
\&\f(CW\*(C`/sbin/insserv=/bin/true\*(C'\fR
.IP "\(bu" 2
\&\f(CW\*(C`/sbin/ldconfig=/bin/ldconfig\*(C'\fR
.IP "\(bu" 2
\&\f(CW\*(C`/usr/bin/env=/usr/bin/env.fakechroot\*(C'\fR
.IP "\(bu" 2
\&\f(CW\*(C`/usr/bin/ischroot=/bin/true\*(C'\fR
.IP "\(bu" 2
\&\f(CW\*(C`/usr/bin/ldd=/usr/bin/ldd.fakechroot\*(C'\fR
.IP "\(bu" 2
\&\f(CW\*(C`/usr/bin/mkfifo=/bin/true\*(C'\fR
.RE
.RS 4
.Sp
to make \fIdebootstrap\fR\|(8) working correctly.
.Sp
To prevent some looping, the command substitution is done only if
\&\f(CW\*(C`FAKECHROOT_CMD_ORIG\*(C'\fR variable is not set currently.
.RE
.IP "\fB\s-1LD_LIBRARY_PATH\s0\fR, \fB\s-1LD_PRELOAD\s0\fR" 4
.IX Item "LD_LIBRARY_PATH, LD_PRELOAD"
Fakechroot is implemented by wrapping system calls. This is accomplished by
setting \f(CW\*(C`LD_PRELOAD=libfakechroot.so\*(C'\fR. If this library can't be found by
dynamic linker, the \fI/etc/ld.so.conf\fR file or \f(CW\*(C`LD_LIBRARY_PATH\*(C'\fR variable
have to be modified.
.SH "LIMITATIONS"
.IX Header "LIMITATIONS"
.IP "\(bu" 4
\&\fI/lib/ld\-linux.so.2\fR and \fI/lib64/ld\-linux\-x86\-64.so.2\fR are always loaded
from real environment. This path is hardcoded by linker for all binaries.
You can set the \f(CW\*(C`FAKECHROOT_ELFLOADER\*(C'\fR environment variable or use
\&\f(CW\*(C`\-\-elfloader\*(C'\fR option.
.IP "\(bu" 4
Every command executed within fakechroot needs to be linked to the same
version of the dynamic linker from real environment. If the libraries in
chroot are not compatible, try to use \f(CW\*(C`\-\-use\-system\-libs\*(C'\fR option.
.IP "\(bu" 4
You can provide symlinks to the outside. The symlink have to be created
before chroot is called. It can be useful for accessing the real \fI/proc\fR
and \fI/dev\fR directory. You can also set the \f(CW\*(C`FAKECHROOT_EXCLUDE_PATH\*(C'\fR
environment variable:
.Sp
.Vb 1
\&  $ export FAKECHROOT_EXCLUDE_PATH=/tmp:/proc:/dev:/sys:/var/run:/home
.Ve
.IP "\(bu" 4
Statically linked binaries doesn't work, especially \fIldconfig\fR\|(8), so you have
to wrap this command with dummy version and set the proper
\&\f(CW\*(C`FAKECHROOT_CMD_SUBST\*(C'\fR environment variable.
.IP "\(bu" 4
\&\fIldd\fR\|(1) also doesn't work. You have to use \f(CW\*(C`alias
ldd=\*(AqLD_TRACE_LOADED_OBJECTS=1\*(Aq\*(C'\fR or to use a wrapper instead. The wrapper is
installed as \fIldd.fakechroot\fR and can be used with \f(CW\*(C`FAKECHROOT_CMD_SUBST\*(C'\fR
environment variable.
.IP "\(bu" 4
The full screen applications hangs up if \fI/dev/tty\fR file is not a real
device. Link \fI/dev/tty\fR file or whole \fI/dev\fR directory to the real one or
remove it from fake chroot environment with \f(CW\*(C`FAKECHROOT_EXCLUDE_PATH\*(C'\fR
variable.
.IP "\(bu" 4
\&\fIlckpwdf\fR\|(3) and \fIulckpwdf\fR\|(3) are ignored so \fIpasswd\fR\|(1) command should work
.IP "\(bu" 4
Your real uid should exist in \fI/etc/passwd\fR. Create it with adduser \-\-uid
\&\fIrealuid\fR \fIrealuser\fR inside fake chroot environment.
.IP "\(bu" 4
\&\fIdebuild\fR\|(1) cleans environment. Use \-\-preserve\-env option to prevent this
behavior.
.IP "\(bu" 4
\&\fIrpmbuild\fR\|(8) uses own \fIglob\fR\|(3) implementation which breaks fakechroot so
buildroot directory have to be the same inside and outside fakechroot.
.SH "SEE ALSO"
.IX Header "SEE ALSO"
\&\fIfakeroot\fR\|(1), \fIdebuild\fR\|(1), \fIdebootstrap\fR\|(8), \fIrinse\fR\|(8),
http://fakechroot.alioth.debian.org/
.SH "BUGS"
.IX Header "BUGS"
If you find the bug or want to implement new features, please report it at
<https://github.com/fakechroot/fakechroot/issues>
.SH "AUTHORS"
.IX Header "AUTHORS"
Copyright (c) 2003\-2016 Piotr Roszatycki <dexter@debian.org>
.PP
Copyright (c) 2007 Mark Eichin <eichin@metacarta.com>
.PP
Copyright (c) 2006, 2007 Alexander Shishkin <virtuoso@slind.org>
.PP
Copyright (c) 2006, 2007 Lionel Tricon <lionel.tricon@free.fr>
.SH "COPYING"
.IX Header "COPYING"
fakechroot is distributed under the \s-1GNU\s0 Lesser General Public License (\s-1LGPL
2.1\s0 or greater).