08-12-2010
i have succeeded in creating a chroot jail
chroot /testccs ..it works
clientsyslogng:/ # chroot /testccs
bash-3.1# ls
Now can you please explain to me how to attach a user login to it
For example testuser when he logs in ..he should login into /test (home directory)
4 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello everybody!
I'm Fabian from Germany near Hannover.
I bought SuSE 7.1 before 3 days .
I want use SuSE as a PHPserver!
(My english is very bad)
Now my question:
Is SuSE or Rad Hat better for this problem? On my system is always run SuSE 7.1 now, but I think Rad Hat is better for this... (4 Replies)
Discussion started by: Fabian
4 Replies
2. UNIX for Dummies Questions & Answers
I've had Linux when I was young, on one of our first computers and learned it pretty quickly... However, I've been working on Windows for about 7 years now and just made the switch back to Linux, Mandrake 9.1. So I have some problem with creating new user accounts. I could create one, but once I... (3 Replies)
Discussion started by: Arendo
3 Replies
3. Shell Programming and Scripting
I wonder whether someone can help me with what I'm trying to achieve
Basically, the objective is one script to create new user on more than 70 linux hosts if required.
Everything works apart from the highlighted part. It gave me an output
passwd: Unknown user name ''. when try to set... (35 Replies)
Discussion started by: fugeulu
35 Replies
4. UNIX for Advanced & Expert Users
Hi Experts,
Need your support
Redhat 6.5
I want to create a user with all(read, write, execute) privileges except that user should not be able to create any new user from his login
to perform any task. (10 Replies)
Discussion started by: as7951
10 Replies
LEARN ABOUT DEBIAN
explain_chroot_or_die
explain_chroot_or_die(3) Library Functions Manual explain_chroot_or_die(3)
NAME
explain_chroot_or_die - change root directory and report errors
SYNOPSIS
#include <libexplain/chroot.h>
void explain_chroot_or_die(const char *pathname);
int explain_chroot_on_error(const char *pathname))
DESCRIPTION
The explain_chroot_or_die function is used to call the chroot(2) system call. On failure an explanation will be printed to stderr, obtained
from the explain_chroot(3) function, and then the process terminates by calling exit(EXIT_FAILURE).
The explain_chroot_on_error function is used to call the chroot(2) system call. On failure an explanation will be printed to stderr,
obtained from the explain_chroot(3) function, but still returns to the caller.
pathname
The pathname, exactly as to be passed to the chroot(2) system call.
RETURN VALUE
The explain_chroot_or_die function only returns on success, see chroot(2) for more information. On failure, prints an explanation and
exits, it does not return.
The explain_chroot_on_error function always returns the value return by the wrapped chroot(2) system call.
EXAMPLE
The explain_chroot_or_die function is intended to be used in a fashion similar to the following example:
explain_chroot_or_die(pathname);
SEE ALSO
chroot(2)
change root directory
explain_chroot(3)
explain chroot(2) errors
exit(2) terminate the calling process
COPYRIGHT
libexplain version 0.52
Copyright (C) 2009 Peter Miller
explain_chroot_or_die(3)