Sponsored Content
Operating Systems Linux Red Hat restrict access of a user to two directories only Post 302185541 by jim mcnamara on Tuesday 15th of April 2008 08:33:50 AM
Old 04-15-2008
For the user test to be able to run some utilities he may need read access to some files perhaps in /etc or /lib.

Your best bet is to chroot this user - put the user in chroot jail, creates links in his home directory to /tmp1 & /tmp2. This is what is often done with ftp accounts to lock them into completely known file trees
 

10 More Discussions You Might Find Interesting

1. HP-UX

How to restrict a user group to access the kernel

Hi, Please any one can help me to know that how we can restrict a user group to access the kernel at all. (0 Replies)
Discussion started by: harishankar
0 Replies

2. UNIX for Advanced & Expert Users

Restrict FTP access to a single directory for only one user.

Hi All, It will be very great if you can help me in this issue. Thanks in advance. I need to enable FTP on a solaris9 server. I need to create a new user some "xxxxxx" and he can only FTP the files to and from between /tftpboot directory and network devices. Other users should not... (8 Replies)
Discussion started by: santhoshkumar_d
8 Replies

3. UNIX for Dummies Questions & Answers

Restrict user access to their home dir

Hi! i'm using FreeBSD 6.2 and hosting my pc to frens in particular of sensitive information being saved to the PC, i would like to know is it possible for me to restrict user access to their /home dir. only? and also, i wanted to restrict them listing files under /etc thanks all! (10 Replies)
Discussion started by: rdns
10 Replies

4. UNIX for Advanced & Expert Users

Restrict Access to the folder

Hi I have requirement to create 3 new users on my server but to restrict their access to a set of particular folders. /export/home/kapil/shared, /export/home/kapil/shared/Folder1 /export/home/kapil/shared/Folder2 These folders should be accessible to all the 3 users and to me too.... (1 Reply)
Discussion started by: kapilk
1 Replies

5. UNIX for Dummies Questions & Answers

Restrict user access.

Hi All, How can we restrict a particular user access to a particular shell in solaris 10. Thanks in Advance. (5 Replies)
Discussion started by: rama krishna
5 Replies

6. Red Hat

Restrict user access

Hi there I have an application user on my system that wants accesses to these file systems as such: rwx: /SAPO /SAPS12 /R3_888 /R3_888B /R3_888F /R3_888R r: /usr/sap these are the existing FS permissions:ownerships: # ls -ld /SAPO (9 Replies)
Discussion started by: hedkandi
9 Replies

7. UNIX for Dummies Questions & Answers

Rsync on Cygwin - Restrict user to several directories

Hi, I'm using rsync on cygwin (winXP) to sync our files between several laptops and XP (acting as a file server) For simplicity I use the same user account with different certificates over SSH. Now my question is; If a user understands the logic and modifies the rsync command, he can easily... (0 Replies)
Discussion started by: cemo
0 Replies

8. Shell Programming and Scripting

Allow FTP user to access multiple directories

Hi Experts, I am in urgent need of your suggestions. I have below two users in my system: xyz:x:101:101:XYZ System Account:/export/home/xyz:/bin/bash abc:x:2009:10:ftp user only:/export/home/abc:/bin/false Where "xyz" is the crucial one and "abc" is only introduced for FTPing the... (2 Replies)
Discussion started by: sugarcane
2 Replies

9. UNIX for Dummies Questions & Answers

Restrict access

I'm trying to use squid to restrict elinks' access to certain websites(only http traffic). I have tried some configs in squid.conf but no luck. Hope someone has a bit of time to explain me how can you make these config's :) ---------- Post updated at 05:40 PM ---------- Previous update was at... (1 Reply)
Discussion started by: Birnbacher
1 Replies

10. Shell Programming and Scripting

Generate list of directories that a user has access to

I manage an AIX OS 7.1 system on IBM Power 770. I want to find out which directories/folders a particular user has read/write access to. How can I cleanly create a list of all directories on the system that a user has access to.. Does this make sense? Thanks in Advance, NEWB:rolleyes: (3 Replies)
Discussion started by: code911
3 Replies
JAILER(5)							File Formats Manual							 JAILER(5)

NAME
jailer.conf - configuration file of jailer SYNOPSIS
jailer.conf DESCRIPTION
jailer is a script for creating chrooted environments for Debian packages. jailer.conf is the configuration file for jailer.conf Every configuration definition has to start and end with a jail identifier, which should be unique and be in brackets. <apache> For example, an Apache chroot identifier should look like this: </apache> The identifier use needs to be closed. The configuration for the chroot instance is defined inside these identifiers. The following lines can be used to describe the con- figuration: Root: /var/chroot/apache This line describes the PATH of the chrooted enviroment. Conf: This line describes the PATH or PATH/filename which should be copied over to the chrooted environment. For example Conf: /etc/apache/* , which uses a wild card. Debs: This line contains the name of those Debian packages which should be installed into the chrooted environment. Junk-Debs: This line contains those deb packages which should not be installed into the chrooted environment. Junk: This line contains those files or directories which should not be installed. For example /lib/* means all files and links under /lib should not be installed, while /lib/libconsole.so.0.0.0 means a file which should not to be installed. Extra: This line contains those files or directories which should be installed into the chrooted environment. For example: /var/run will install that a directory which is needed for the chrooted service. WARNING
Do not configure your daemon inside your jail, because updatejail script will wipe out all the data inside the jail. If you would want to change any settings inside the jail, make the changes in the original location and then run updatejail . This makes it possible to place a jail even to a ramdisk. SEE ALSO
updatejail(8) jailer.conf(5), dpkg(8) AUTHOR
This manual page was written by Peter Holtzl <peter.holtzl@balabit.hu>. December 4, 2001 JAILER(5)
All times are GMT -4. The time now is 11:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy