Skip to main content

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
1 answer
692 views

how to chroot a python app?

I created a simple app in python flask, I would like to put it in a chroot. a very thin jail only containing the bare minimum for this app to run. This is for a school project so I need to use chroot. ...
lolozen's user avatar
  • 147
0 votes
0 answers
270 views

How to avoid chroot jail affect actual system (e.g. update system time)?

I am new to chroot. I thought chroot is a contained separated system that would avoid things happen inside chroot jail affecting the actual system outside the jail. However I just confirmed that if I ...
midnite's user avatar
  • 571
2 votes
1 answer
344 views

Use playerctl in systemd-nspawn container

When I launch a web browser in a systemd-nspawn container, playerctl commands don't work to play and pause multimedia, though they work for browsers outside of the container. Is there an environment ...
grandinero's user avatar
0 votes
0 answers
58 views

running applications with restricted view of root filesystem in linux

I am new to the domain of running Linux application in secure contexts, such as jails. I am seeking to run a desktop environment, on a Linux system, that has essentially the same capabilities as such ...
brainchild's user avatar
0 votes
1 answer
185 views

Jailkit User Cannot Execute Nextcloud OCC Commands

I have a fresh install of nextcloud 22.2.0, that I installed according to [these instructions:]1 After NC installation, I hae ZERO errors in my NC log. However, in the Overview section I have some ...
mjones's user avatar
  • 317
1 vote
3 answers
2k views

LFS chroot cannot find /usr/bin/env

I am building Linux from Scratch (guide version 10.1). Everything compiled without any errors, but I am now stuck at the step where it requires me to enter the chroot environment (section 7.4). My ...
lorinet3's user avatar
  • 125
2 votes
1 answer
1k views

What is meant by "don't run processes as root in a chroot environmentl"

I read several articles that say one should avoid running processes as root in a chroot environment since it allows the process to escape. But how should I do that? Chroot can only be evoked by root, ...
M0M0's user avatar
  • 131
1 vote
1 answer
2k views

Hide specific folders for a sftp user? Within chroot

when using vsftpd there is an option to hide files or directories that matches a certain pattern in the variable hide_files. Can something similar be achieved when using SFTP/SSH? Want I want to do is ...
Sammelschaft's user avatar
1 vote
1 answer
5k views

Could not open authorized keys Permission denied when trying to connect via SFTP

I'm trying to create a chrooted SFTP user using public key authentication, on a Centos 7 server running Plesk Obsidian. I've set it all up, but when I try to connect via SFTP I get "FATAL ERROR: ...
bbeckford's user avatar
  • 121
1 vote
1 answer
1k views

When to use sftp-server with -d option in conjunction with ChrootDirectory?

The docs for sftp-server state that the -d option is useful in conjunction with the sshd_config ChrootDirectory option. I've also seen some answers on the internet where in order to restrict users to ...
Tirafesi's user avatar
  • 175
0 votes
1 answer
1k views

Is fakechroot a security flaw? [closed]

I recently know more about fakechroot. AFAIK it seems dangerous since it escalates user privilege, even if it's in chroot. I'm aware of fakeroot but it is not the same since you can't do anything with ...
Quoc-Hao Tran's user avatar
0 votes
1 answer
216 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 ...
user840718's user avatar
  • 1,123
0 votes
1 answer
99 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 ...
LutherSmi's user avatar
1 vote
1 answer
3k 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 ...
Melan's user avatar
  • 113
1 vote
0 answers
538 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 ...
Erik's user avatar
  • 11

15 30 50 per page