LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-14-2001, 02:54 AM   #1
lokiz
LQ Newbie
 
Registered: Jun 2001
Posts: 2

Rep: Reputation: 0

i have a RH 7.1,the latest WU-FTP.How do i chroot a user for ftp? this is driving me crazy,i haved tried for to set it up for a while and i'm still not capable to chroot.Plz help me...
 
Old 06-14-2001, 06:44 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
From the man pages and you are logged as root when trying this option?

SYNOPSIS

#include <unistd.h> int chroot(const char * path );

DESCRIPTION

chroot changes the root directory to that specified in path . This directory will be used for path names beginning with /. The root directory is inherited by all children of the
current process.

Only the super-user may change the root directory.

Note that this call does not change the current working directory, so that `.' can be outside the tree rooted at `/'.

RETURN VALUE

On success, zero is returned. On error, -1 is returned, and errno is set appropriately.

ERRORS

Depending on the file system, other errors can be returned. The more general errors are listed below:

EPERM
The effective UID is not zero.

EFAULT
path points outside your accessible address space.

ENAMETOOLONG
path is too long.

ENOENT
The file does not exist.

ENOMEM
Insufficient kernel memory was available.

ENOTDIR
A component of path is not a directory.

EACCES
Search permission is denied on a component of the path prefix.

ELOOP
Too many symbolic links were encountered in resolving path .

EIO
An I/O error occurred.

CONFORMING TO

SVr4, SVID, 4.4BSD, X/OPEN. This function is not part of POSIX.1. SVr4 documents additional EINTR, ENOLINK and EMULTIHOP error conditions. X/OPEN
does not document EIO, ENOMEM or EFAULT error conditions. This interface is marked as legacy by X/OPEN.
 
Old 06-14-2001, 09:58 AM   #3
lokiz
LQ Newbie
 
Registered: Jun 2001
Posts: 2

Original Poster
Rep: Reputation: 0
Yep, I familiar with this stuff but that don’t help;(
Can you please show me the example, step by step, how I chroot user for wu-ftpd?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
chroot problem rjkfsm Linux - Software 1 07-19-2005 10:46 AM
chroot problem bruse Linux - Security 3 07-04-2005 06:57 AM
Chroot problem PhuckFonix Linux - Newbie 3 05-02-2005 09:15 PM
problem with chroot ef_ Linux - Security 6 10-14-2004 06:46 AM
I have a problem with chroot. vintermann Linux - Software 2 01-31-2004 07:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration