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.

413 questions
6
votes
1 answer

Why did the postfix default change to non-chroot processes?

With compatibility_level=2 in recent postfix versions, the default for the postfix daemons changed from chroot to non-chroot. While the page describes that it changed and what you can do to continue using chroot or stop using it, there are no…
allo
  • 1,620
  • 2
  • 22
  • 39
6
votes
1 answer

sftp server chroot initial directory

I have configured an sftp server with chroot and it works fine, the only thing that is bothering me is the initial landing directory, since the sftp user does not have write permissions in the landing folder he has to go to a folder named after his…
6
votes
5 answers

vsftpd: refusing to run with writable root inside chroot

I want to setup a anonymous only ftp server (able to upload files). Here is my config…
WoooHaaaa
  • 1,605
  • 4
  • 15
  • 13
6
votes
2 answers

SFTP post upload hook

How would I run a script after a file has been successfully uploaded over (a chrooted) SFTP? I have this working on standard FTP connection using PureFTP http://linux.die.net/man/8/pure-uploadscript I'm running Debian Squeeze
Petah
  • 650
  • 2
  • 13
  • 24
6
votes
2 answers

How do I unmount a bound /proc in a "dead" chroot?

I built a debootstrap chroot and bound /proc to it, i.e. sudo mount -o bind /proc /proc When I found I no longer needed it, I quite stupidly rm -r 'd it. Of course, rm refused to remove /proc. Now umount says that /proc is in use and…
Brian
  • 303
  • 1
  • 4
  • 8
5
votes
3 answers

postfix/smtp: fatal: unknown service: smtp/tcp – but /var/spool/postfix/etc/services exists

I am running a Debian GNU/Linux 8.7 box with Postfix 2.11.3-1 as MTA. All of a sudden, that is, with no change to the MTA setup, mails stopped being delivered, and the following error started showing up in /var/log/mail.err: root@schroeder:~# tail…
Odin Kroeger
  • 51
  • 1
  • 5
5
votes
1 answer

PHP unable to mail() in chroot though I can use sendmail inside chroot

I'm building a php-fpm chroot, and am on one of my last steps before calling this a success. The php-fpm chroot is working like a charm. Also, I have mini_sendmail installed into the chroot (in place of stock sendmail) and can confirm that it can…
David W
  • 3,453
  • 5
  • 36
  • 62
5
votes
1 answer

Configuring Chroot for SFTP Users

I am trying to configure a SFTP server for some automated backups. I configured an Ubuntu 14.04 server and have had partial success. The idea I'm looking to do is this: A user will be created for each particular system to be backed up. SFTP…
imlepid
  • 175
  • 1
  • 3
  • 10
5
votes
4 answers

Is there a chroot build script somewhere?

I am about to develop a little script to gather information for a chroot-jail. In my case this looks (at the first glance) pretty simple: The application has a clean rpm-install and did install almost all files into a sub-directory of /opt. My idea…
Nils
  • 7,695
  • 3
  • 34
  • 73
5
votes
2 answers

chrooting user causes "connection closed" message when using sftp

First off I am a linux newbie so please don't assume much knowledge. I am using CentOS 5.8 (final) and using OpenSSH version 5.8p1. I have made a user playwithbits and I am attempting to chroot them to the directory…
George Reith
  • 673
  • 2
  • 12
  • 22
5
votes
2 answers

setlocale error with chroot

I have created a chroot jail and when I log in I get a bash warning bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) I tried to google the error, but wasn't able to find a solution
samwell
  • 339
  • 1
  • 6
  • 13
5
votes
1 answer

VSFTPD - Change User Home Directory

I need to update a ftp user's home directory. Could I run the userdel command then re-add the user without losing the directory the user was attached to? Or is there another way to change the user's directory? I'm not using a chroot_list…
Spencer
  • 213
  • 3
  • 5
5
votes
2 answers

What is the secure way to isolate ftp server users on unix?

I've read documentation for various ftp daemons and various long threads about the security implications of using a chroot environment for an ftp server when giving users write access. If you read the vsftpd documentation, in particular, it implies…
djs
  • 200
  • 1
  • 6
4
votes
1 answer

Bind mount - different results on CentOS 6 and CentOS 7

I'm mounting couple of directories (bind mount) in a chroot environment, but they behave differently on CentOS 6 and 7 - exactly the same commands. Example: I have my chroot env in /chroot/base. Then I mount it on every user: mount --bind…
plamer
  • 205
  • 2
  • 10
4
votes
3 answers

yum/rpm Failed to initialize NSS library in chroot

I am performing a yum update from CentOS 7.4 to CentOS 7.5, when nspr and nss soft-softoken receive the updates, I am left with the following error: yum update nspr error: Failed to initialize NSS library There was a problem importing one of the…
Arlion
  • 608
  • 1
  • 5
  • 17
1 2
3
27 28