Sponsored Content
Full Discussion: Why does a fakechroot exist?
Top Forums UNIX for Beginners Questions & Answers Why does a fakechroot exist? Post 303020002 by Don Cragun on Wednesday 11th of July 2018 11:24:29 PM
Old 07-12-2018
I'm confused by a lot of the discussion in this thread. The chroot utility does not in any way, shape, or form change the system's root directory.

The chroot utility (and the underlying chroot() system call) starts a new process with the root directory for that process (and any descendants of that process) set to the directory specified on the command line in that chroot utility invocation.

The root directory of any processes that were running before chroot was invoked (and any descendants of those processes) continue to run with their original root directory.

From what I see in the manual pages, it appears that fakechroot is only available on Debian Linux systems. It also seems that fakechroot does not actually change the root directory of the process it starts, but the library used by the linker that fakechroot uses to link the process it starts fakes the behavior used to run the process as though it had been chrooted in some cases while ignoring chroot behavior in other cases.

I believe the chroot utility and system call are available on all recent UNIX, Linux, and BSD systems.
These 2 Users Gave Thanks to Don Cragun For This Post:
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

does it exist in linux?

Is there a jumpstart equivalent tool in the linux environment? (1 Reply)
Discussion started by: pbonilla
1 Replies

2. UNIX for Dummies Questions & Answers

su: user x does not exist

somehow my user names and groups on one of our machines are changed to numbers 700, 701, etc. thus, i can only ssh into this machine as root. is there a way to migrate the user names and groups to this machine? thanks! (3 Replies)
Discussion started by: user23
3 Replies

3. UNIX for Dummies Questions & Answers

testing if files exist

I am trying to test arguments to see if they are files in any directory. I have : but it's not working (7 Replies)
Discussion started by: skooly5
7 Replies

4. Shell Programming and Scripting

Group Exist Scripting

Hey People, I've got a question! How can i write a function in a script which is looking for if a group exist and if not, that the group "users" is the standard group..I know that i have to use "grep" und "if-else"..I will be very happy for answers ;) Greetz Ali (2 Replies)
Discussion started by: AliC
2 Replies

5. Shell Programming and Scripting

Find out whether files exist.

I have the following data stored in a file. 1 /home/file13 /home/file2 2 /home/file41 /home/file654 3 /home/file61 /home/file45 4 /home/file81 /home/file43 ... I want to print the first column provided the files represented by the second and third column exist. How to do that? (3 Replies)
Discussion started by: kevintse
3 Replies

6. Shell Programming and Scripting

if pid exist ?

Hi I need help to whit a script that start a program if a nother program is started first . I thought something like this . if then start program 2 Thanks (4 Replies)
Discussion started by: pelle
4 Replies

7. UNIX for Dummies Questions & Answers

Does ${%name} exist in csh?

I have this code in tcsh and would like to know whether the syntax below will work in csh. if( "${%rsl}" == 0 ) then echo "rsl is empty" endif ---------- Post updated at 06:38 AM ---------- Previous update was at 05:53 AM ---------- It does not seem so. Perhaps the best thing is to... (2 Replies)
Discussion started by: kristinu
2 Replies

8. Shell Programming and Scripting

Help: Backfile if backup does not exist

I am trying to work on a script that will first check to see if a backup of a file exists, and if it does it will prompt the user to ask if he/she wants it replace. Of course, if the user says no then the file should be skipped. Here is the code I have written. Does it look as if it is working... (1 Reply)
Discussion started by: xshellscriptx
1 Replies

9. Homework & Coursework Questions

Group Doesn't Exist

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: I'm able to create a group but when I'm trying to delete the group it keeps stating Group Doesn't Exist. I know... (2 Replies)
Discussion started by: GoBoyGo
2 Replies
named-checkconf(1)					      General Commands Manual						named-checkconf(1)

NAME
named-checkconf - named configuration file syntax checking tool SYNOPSIS
directory] [configfile] DESCRIPTION
is a tool to check the syntax, but not the semantics, of the configuration file for Options When loading a zone file, read the journal if it exists. Change root to directory so that directives in the configuration file are processed as if run by a similarly rooted (see chroot(2)). Print the version of the program and exit. Perform a check on the loading of the master zone files found in the configuration file. Operands configfile The configuration file to be checked. The default is RETURN VALUE
sets the exit status. Success. Errors were detected. AUTHOR
was developed by the Internet Systems Consortium (ISC). FILES
Default configuration file. SEE ALSO
named(1M), chroot(2). Requests for Comments (RFC): 1035, available online at available online at available from the Internet Systems Consortium at BIND 9.3 named-checkconf(1)
All times are GMT -4. The time now is 05:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy