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.

Filter by
Sorted by
Tagged with
0
votes
1answer
16 views

Does chroot make effect on bootable usb-pendrive?

Let's suppose I put my Linux usb-pendrive inside my PC. I start the system and the I use chroot to apply same changes to the system. What happen if I reboot the usb-pendrive? Are the changes I made ...
0
votes
1answer
33 views

Mistakenly added user 'ubuntu' to a chroot group and cant login to server anymore

Ok, So I have an ubuntu server setup with SFTP chroot. So, any user added to the group 'sftpusers' will be only able to use sftp commands on the server, today while testing rsync, i didnt think and ...
0
votes
0answers
53 views

Isolated Debian system using chroot for school

I am trying to set up a school system. I want the system behind a whitelist implemented in iptables. I want to run a full Debian GNOME distro. I want students to be able to install software with apt ...
0
votes
0answers
160 views

vsftpd can't login except if not chroot(ed)

I am trying to setup my vsftpd server to give users access to certain parts of the homepage. Specifically they have access to one directory in the "user" subdomain. I give you examples with 2 users. ...
1
vote
1answer
764 views

Can't access internet or ping default gateway from a FreeBSD 12 jail

I am new to FreeBSD jails, everything (such as ssh to jail from any host in network) works fine except I can't access internet or ping default gateway from a FreeBSD 12 jail, please help me to resolve ...
1
vote
0answers
99 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
342 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
1answer
42 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
169 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
171 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
1k 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
366 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
564 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
113 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
34 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
1k 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
265 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
69 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
462 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
143 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
1k 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
2k 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
933 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
591 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
165 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
3answers
5k 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
443 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 ...
9
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 ...