Configuring Chrootdirectory


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Configuring Chrootdirectory
# 1  
Old 11-18-2009
Configuring Chrootdirectory

Hello,

I am running OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008

I need to chroot each user into their own directory.
How can I do so using the chrootdirectory option?
Please provide an example.

Thanks
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Configuring Auditing

Hello Solaris Team, We would like to implement some audit policy (using a log file) in Solaris 10 in order to record the following data in columns per all users: 1. Date 2. Time 3. User 4. Command executed 5. Terminal 6. IP Address Could you please help me in order to... (2 Replies)
Discussion started by: csierra
2 Replies

2. UNIX for Dummies Questions & Answers

Need help configuring SSH on HP-UX

Can someone show me the basics on configuring SSH on Unix so I can access my Unix account remotely from Windows 7. Basically, I want to fire some scripts remotely. I've already posted a thread on the Windows forum thinking my configuration was wrong on the Windows side. But the more I read the... (9 Replies)
Discussion started by: rm-r
9 Replies

3. Red Hat

configuring X on Enterprise v6.2

Hello; nerw to configuring X windows on redhat .. After a fresh install of Enterprise v6.2 w/ kde desktop pkg, noticed the follwing: 1. metacity wm is installed 2. gdm also seems to be running 3. trying to connect from Reflection fails Where can I find a how to guide ?? Thnx (1 Reply)
Discussion started by: delphys
1 Replies

4. Shell Programming and Scripting

Configuring ssmtp

Hi, I have trouble in configuring ssmtp for sending mail to gmail. I have configured the following way, plz suggest/correct me if i have done something wrong root=nagiostool@gmail.com mailhub=smtp.gmail.com:587 #RewriteDomain= # The full hostname Hostname=nagiosxi # Set this to... (1 Reply)
Discussion started by: nagios
1 Replies

5. Red Hat

configuring vsftpd

hi everybody, i am new to linux. iam using centos 6.2, and trying to configure ftp server in my local network, i have seen one fpt server how to videos tutriol but iam unable to follow i have some confussion in /etc/vsftpd/vsftpd.conf about userlist_enable and userlist_deny,... (6 Replies)
Discussion started by: paruhang
6 Replies

6. Solaris

Samba help Configuring.

I am trying to find some documentation to help me configure SAMBA on a Solaris 10 OS for File Sharing. I guess I need more help on the smb.conf file. I was able to test a small smb.conf file and testparm script works. So, I know I have installed it properly. Now looking for more guidance of the... (2 Replies)
Discussion started by: 4X4R8D
2 Replies

7. UNIX for Dummies Questions & Answers

help configuring Ajaxterm

Hello there, I installed Ajaxterm on my Ubuntu 9.04 machine, and it's running ok if I use :http://localhost:8022/ in my broswer. This is the problem , it can only be accessed localy. If I want to access it through internet from another computer, it fails. I've read the tutorials on how to... (1 Reply)
Discussion started by: wosis
1 Replies

8. UNIX for Dummies Questions & Answers

Configuring mail help

I'm trying to get my server (running SunOS 5.8) to be able to send mail. The mail administrator gave me the name of the mail server that I can use to relay the mail, but where/how do I configure this in Unix on my server? Thanks! (5 Replies)
Discussion started by: FredSmith
5 Replies

9. UNIX for Advanced & Expert Users

Configuring a modem on a P5

Hello. I'm trying to configure a modem on an IBM p570 on the serial port. This is a partition machine so i want to be able to share it with partitionned servers. On my VIOserver, what needs to be done exactly? I can see a vsa0 device but that is not the serial port i need from what i... (1 Reply)
Discussion started by: Stephan
1 Replies

10. UNIX for Advanced & Expert Users

Configuring.....

Hi Folks, I would like to learn the basics of unix administration like configuring telnet, ftp, smtp,etc.. Could u suggest me a good site for learning it??? or the methodology that has to be followed for learning it??? TIA, Nisha :) (2 Replies)
Discussion started by: Nisha
2 Replies
Login or Register to Ask a Question
chroot(2)							System Calls Manual							 chroot(2)

NAME
chroot - Changes the effective root directory SYNOPSIS
#include <unistd.h> int chroot ( const char *path ); STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: chroot(): XPG4, XPG4-UNIX Refer to the standards(5) reference page for more information about industry standards and associated tags. PARAMETERS
Points to the new effective root directory. If the path parameter refers to a symbolic link, the chroot() function sets the effective root directory to the directory pointed to by the symbolic link. DESCRIPTION
The chroot() function causes the directory named by the path parameter to become the effective root directory. The effective root directory is the starting point when searching for a file's pathname that begins with a / (slash). The current working directory is not affected by the chroot() function. The calling process must have superuser privilege in order to change the effective root directory. The calling process must also have search access to the new effective root directory. The .. (dot-dot) entry in the effective root directory is interpreted to mean the effective root directory itself. Thus, .. (dot-dot) can- not be used to access files outside the subtree rooted at the effective root directory. RETURN VALUES
Upon successful completion, a value of 0 (zero) is returned. If the chroot() function fails, a value of -1 is returned and errno is set to indicate the error. ERRORS
If the chroot() function fails, the effective root directory remains unchanged and errno may be set to one of the following values: Search permission is denied for any component of the pathname. The path parameter points outside the process' allocated address space. An I/O error occurred while reading from or writing to the file system. More than MAXSYMLINKS symbolic links are encountered while resolving path. The length of the path argument exceeds PATH_MAX or a pathname component is longer than NAME_MAX. The path parameter does not exist or points to an empty string. A component of path is not a directory. The process does not have appropriate privilege. RELATED INFORMATION
Functions: chdir(2) Commands: cd(1) Standards: standards(5) delim off chroot(2)