Questions tagged [chroot]
A chroot on Unix operating systems is an operation that changes the apparent root directory for the current running process and its children.
418 questions
0
votes
1
answer
128
views
Error with Nano editor interface in chroot jail
Normal Nano interface:
My error:
There are all dependencies from ldd /usr/bin/nano output in chroot jail:
tree lib lib64
lib
`-- x86_64-linux-gnu
|-- libacl.so.1
|-- libc.so.6
|-- ...
0
votes
1
answer
74
views
BIND DNS in ubuntu [closed]
I am implementing two Internal BIND DNS servers on ubnutu 22.04 (forwarding and caching) to replace CISCO umbrella (paid). All internal domain traffic will be forwarded to our Domain Controller, and ...
0
votes
1
answer
156
views
how to configure interactive session on ChrootDirectory (not for sFTP)
the goal is to create something like docker but use traditional way, chroot.
I started by create a partition as ext4 and mount it on /srv/container/test and install standard linux system with pacstrap ...
1
vote
1
answer
311
views
Locking down SSH access for rsync wrapper script
I use an rsync wrapper script to synchronize or backup to/from various directories on different servers. The script invokes rsync (obviously), and in some configurations ln on the server.
Restricting ...
1
vote
3
answers
1k
views
Why it's recommended to run Postfix in a chroot jail?
I understand that chroot allows to isolate Postfix, so if an attacker gives an access to one of a Postfix program, he cannot maliciously change something outside of the chrooted directory.
Seems that ...
1
vote
1
answer
471
views
Installed Ubuntu server 23.10 using debootstrap / chroot - on boot it fails to mount the correct root partition
I'm trying to work out a process for remote installation of Ubuntu Server. I want to have someone at the other end insert a flash drive and boot up, then I will ssh in and install.
Here's the process ...
0
votes
3
answers
401
views
GNU Rush invalid uid
I'm trying to configure Rush for limited shell and scp access to a server I have. I am using Rush 2.3, fresh compiled. And the default config they have in their docs. Still, everytime I try to run a ...
0
votes
1
answer
2k
views
How to fix a corrupt server (after upgrade) with chroot in rescue-mode over ssh
First, I'm NOT trying to create a ssh-jail.
Here's the situation
I decided to upgrade my server from Debian 9 to 12. But now I'm locked out.
I went step by step : from 9 to 10, 10 to 11 and 11 to 12, ...
0
votes
1
answer
2k
views
Using internal-sftp for a single user instead of all users?
I am setting up a restricted sftp user with chroot, the standard procedure works fine for me, however I have existing users using sftp on the same server, and that's why I don't want to take a risk ...
1
vote
0
answers
702
views
Availability of CHROOT in Docker containers and clusters
Is the Linux tool chroot generally usable in a Docker container running in clusters and cloud platforms?
(background) I'm developing an application where I may need to use chroot inside a Docker ...
1
vote
1
answer
13k
views
chroot:failed to run command '/bin/bash':No such file or directory on debian 12 live
I am using the Debian 12 live environment and have created a folder:
mkdir /mnt/boot
When I execute sudo chroot/mnt/boot, the following error is reported:
chroot:failed to run command '/bin/bash':No ...
1
vote
1
answer
396
views
Pure FTP Server let's me download files from "Bind Mounted HTML" folder but will thrown 533 Error to STOR command when uploading Index.html
Yesterday I finished configuring a FTP Server using Pure-FTPd.
The method I am using is the "Virtual Users" method.
The commands below are basically what I executed it in order to make it ...
2
votes
1
answer
4k
views
Use netns to bind programs to specific IP addresses
I have an IP address on my server, say, 192.168.0.3, I want to share in a net namespace, so to run apps there which will only be able to communicate to the internet using that 192.168.0.3.
I can "...
2
votes
2
answers
4k
views
How can I set specific directory for different users in proftp?
Currently, when user A logs in proftp, he comes at his home directory /home/A, when user B logs in proftp, he comes at his home directory /home/B. I want to let user A come at /dir1 and let user B ...
1
vote
1
answer
2k
views
Can't chroot users correctly with vsftpd
I used this tutorial to install vsftp.
Everything seems to work fine except for two things:
Even though I set local_root=/home/$USER/ftp the default location
when I use any ftp-client is /home/$USER.
...