Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [chroot-jail]

A chroot jail is the common expression used to describe a section of a file system that is sectioned off for a particular user.

1
vote
0answers
28 views

RedHat: chroot user to subfolder with a different user chroot'd to the parent folder

I have a RedHat server with SFTP enabled and a few accounts, this server is currently being accessed by an application to read the user's respective files, they do not have Write access. The server is ...
0
votes
2answers
34 views

Ubuntu sftp chroot jail path not being read?

I've encountered a problem, that I've been messing around since hours now, not understand what is happening. I have read tons of guides on this, which should be a 2 minute setup task on Ubuntu, and I ...
0
votes
0answers
184 views

How to get Jails in FreeNAS 9.2 to have addresses given by DHCP?

I'm running FreeNAS 9.2.1.7-RELEASE-x64 and have some jails in it. Currently, the jails get their IPv4 addresses manually, which is done through the GUI's jail configuration dialog. I recently set ...
0
votes
0answers
26 views

After setting up chroot the files do not show the User and Group

I have a little problem in that I have set up a directory to be chrooted by a group and this is working fine. My problem is that when I go to test using WinSCP the files show the ownership as the PID ...
0
votes
1answer
33 views

chroot an user to more than one directory in different locations

I would like to know how I can constraint a user to only be able to access and have RWX permissions to directories like /etc/httpd, /etc/php and /var/www/html as well as its own home directory. Also ...
1
vote
0answers
112 views

Jailkit on a Mac: “ERROR: <jaildir> is not owned by root:root!” / “ERROR: jail directory <jaildir> is not safe”

I'm trying to create a jailed user for limited SSH access on my Mac. I have been, for the most part, following the directions in this Ubuntu StackExchange answer. However, I'm getting stuck: # ...
2
votes
1answer
79 views

need clarifications on chroot command

I am trying to understand chroot. I am trying to run just "ls" command in chroot environment. So i copied "ls" and "bash" and its dependencies(as shown by ldd) to corresponding bin, lib, lib64 ...
1
vote
1answer
585 views

/bin/bash (chrooted) no longer works

Previously all our web customers were setup to access their SFTP using the shell /bin/bash(chrooted). As of 1-17-17 it was working for everyone. The following monday 1-20-17 it was not. This issue is ...
0
votes
1answer
135 views

How to find whether system uses systemd in chroot?

I was using the following command to check whether system uses systemd if [[ 1 == pidof systemd ]]; then But this fails in chroot since proc is not mounted. sh-4.2# pidof systemd sh-4.2# ps Error, ...
1
vote
2answers
267 views

How to Access `/dev` From Inside a `chroot` Jail?

     How can one access /dev from within a chroot jail? I'd like to know how to do this on OS X v10.11.5 'El Capitan,' in particular. I've already tried to create an ...
0
votes
1answer
90 views

How to enable shortcuts (copy-paste) inside chrooted java app?

I instaled java-based app Lotus Notes inside ubuntu 12 chroot on debian host systems. I run it with enabled xhost+ on based system How to enable Ctrl+C, Ctrl+V shortcuts inside Lotus Notes. The ...
1
vote
0answers
29 views

Does Freenas require each plugin to be under a jail?

I know that Jails are like VMs running under Freenas. And I have Plex and Transmission installed using the Plugin feature on Freenas. Question is: Can I have it that both of these apps installed in ...
3
votes
1answer
838 views

Freebsd 10.2 - multiple interfaces in the jail

My old freebsd 8.0 has the following configuration (in the /etc/rc.conf) for the xx jail: jail_xx_hostname="xx.example.com" jail_xx_rootdir="/jails/xx" #networking setup jail_xx_ip="sis0|1.2.3.4,re0|...
0
votes
1answer
213 views

how can I jail user in a directory in ubuntu?

I have installed vsftpd in ubuntu. I have created a user in name of ftpadmin by command sudo useradd ftpadmin and I have set its password too, I also have created a home directory for it using ...
2
votes
0answers
44 views

1 chroot sftp user that is able to traverse all other chroot sftp users files/folders

I have a chroot environment that I have setup on CentOS 6. We have users for all of our trading partners and I would like to create an internal user for another department that can sftp in and only ...
1
vote
2answers
2k views

Chroot ssh user to home folder results in Connection refused

I'm trying to give someone ssh access to a (Ubuntu 14.04) server I've got, but I want to limit them to their own home folder. So I'm trying to follow this tutorial. I first created a user (sudo ...
0
votes
1answer
218 views

Wrong ownership when SFTP files

I have successfully setup jailed SFTP access using ChrootDirectory. Match Group sftponly ChrootDirectory %h X11Forwarding no AllowTCPForwarding no ForceCommand internal-sftp I ...
0
votes
1answer
124 views

Cannot jail ssh account using ChrootDirectory

I am trying to jail my accounts into their home directory. I tried to do: Match group accounts X11Forwarding no AllowTcpForwarding no ForceCommand internal-sftp ChrootDirectory %h ...
1
vote
1answer
800 views

Using sftp ChrootDirectory while giving other users write access to the same directory

I need to allow an untrusted user SFTP access to a particular directory under his webserver root. I don't want him to access any other parts of the system (including the rest of the web), so I thought ...
1
vote
1answer
1k views

Create shared folder for VSFTP jailed users in Linux

I have a thing I want to do. I have set up a VSFTP server, and put its users in "jail", so they cannot look anywhere else except for their home directory. However, now I want to do something more. ...
0
votes
1answer
872 views

CentOs vsftpd - Users not being jailed

I have 3 users created and I have installed and configured (or so I thought) VSFTP to jail users to their own home directory but it's not working they can browse right to the route folders. What am I ...
2
votes
1answer
557 views

copied chroot jail directory cant be chrooted

I am developing a package so when users login through ssh they are forwarded to a chroot jail. The jail directory is created via makejail program on building process. But when the jail package copy ...
6
votes
2answers
5k views

Jail user to home directory while still allowing permission to create and delete files/folders

I'm trying to give a client SFTP access to the root directory of their site on my server (Ubuntu 10.10) so they can manager their website themselves. While I have been successful in jailing a user to ...
1
vote
0answers
161 views

Limiting users/groups to certain ports through SSH, and chroot jail if necessary

I have a private linux box (Ubuntu 10.04) which is running various applications, many of which I access remotely using local forwarding. Now I would like to provide access to a third party, however I ...
5
votes
2answers
4k views

FreeBSD Jails in Mac OS X

I was wondering if FreeBSD Jails are available on Mac OS X or perhaps an equivalent?
0
votes
1answer
440 views

Normal permissions for running mysql

I'm trying to run mysqld inside chroot environment. Herez the situation. When I run mysqld as root, I can connect to my databases. But when I run mysql using init.d scripts, mysql gives me an error. ...
1
vote
2answers
5k views

Failed to su after making a chroot jail

On a 64 bit CentOS host I am using script make_chroot_jail.sh to put a user in a jail, not permitting it to see anything expect it's home at /home/jail/home/user1. I did it typing this: sudo ./...
3
votes
2answers
1k views

chroot for unsecure programs execution

I have never set-up a chroot-jailed environment before and I am afraid I need some help to do it well. To explain shortly what this is all about: I have a webserver to which users send python scripts ...
11
votes
1answer
1k views

How to “jail” Java applications in OS X?

Is it possible to "jail" Java applications? My bank has an applet that requests "unrestricted access" to my computer. That makes me feels very uneasy. There should be a way to tell the java ...
8
votes
4answers
2k views

Is it safer to use a chroot jails, a jail shell or a combination?

A friend of mine has a xandros-based Acer netbook, and has been looking to get some remote administration and help from me while she is travelling around the world. I've set up an account on her ...