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
0
votes
1 answer

OpenSSL-related linker error while building PHP 5.3.3

While trying to build PHP 5.3.3 on Debian jessie (save yourself some sanity by not asking why) with OpenSSL extension enabled, I encountered undefined reference to symbol 'X509_free@@OPENSSL_1.0.0' in the linking step of the Makefile and couldn't…
user2845840
  • 213
  • 1
  • 8
0
votes
1 answer

Segmentation fault when building centos 5 chroot

For some legacy application I decided to use chroot with CentOS 5. I did install CentOS 5 on virtual machine, then I boot virtual machine with live CD and using tar, I "copied" the files from the virtual disk to my (Linux laptop's) HDD. Then I tried…
Nick
  • 826
  • 2
  • 15
  • 42
0
votes
1 answer

mariadb in chroot gives Access denied for user 'root'@'localhost' even though password is set

I have a script that runs mariadb in a chroot, its a qemu-arm-static rasoberrypi chroot but I don't that that should change much. The script installs and then sets the password for mariadb root user, then tries to create a database as user 'pi'…
GuySoft
  • 435
  • 1
  • 4
  • 12
0
votes
1 answer

How to properly chroot when using key based authentication within openssh-server

I'm running a Debian Stretch x86_64 server, with OpenSSH_7.4p1 Debian-10+deb9u3, OpenSSL 1.0.2l 25 May 2017. I want to use chroots in combination with OpenSSH server's internal SFTP system. My current setup seems to work, unfortunately excluding…
Felix
  • 101
  • 1
  • 6
0
votes
1 answer

Chroot a user in Amazon EC2 instance

I've got an Amazon Linux AMI machine running 2016.09 version. I've recently created a user and I'm able to connect using its credentials (private key). This user is intended to be used by a third party and I want to restrict its access to its home…
joninx
  • 129
  • 10
0
votes
1 answer

vsftpd and chroot: can i share the chroot folder between two users?

I have a vsftpd installation with chroot enabled and root access disabled. Everything work flawlessy, but I need to accomplish this. When user1 log into ftps, it log in /home/user1. Same for user2, user3 and so on. I want to have user1_viewer which…
0
votes
2 answers

Chroot on subdirectory from home website (SFTP)

On a Debian apache2 server I'm trying to give access on a subdirectory of a webstie tree (Website home dir : /home/website/public_html/, access wanted only for a specific user: /home/website/public_html/boutique/modules/sftpwkmodules So main website…
Recif
  • 29
  • 1
  • 1
  • 4
0
votes
2 answers

Chroot Jailing of an user to their home with PHP CLI and everything to run Magento 2 CLi commands

Ok, so first off I'm pretty sure there's gonna be a load of "additional info" requests so please post them in the OP comments and I'll do my best to provide extra info on request! Here's the skinny, first the server : It is a Shared staging…
Blatant
  • 111
  • 1
  • 7
0
votes
2 answers

Debian - chroot ntpd Issues

I would like to configure the ntp daemon inside a chroot enviroment. The OS I am suing is Debian 9.1, kernel 3.16.0-4-686-pae The service run as: /usr/sbin/ntpd -p /var/run/ntpd.pid -i /var/chroot/ntp -u ntp:ntp -l /var/log/ntpd.log The problems I…
amprantino
  • 121
  • 6
0
votes
1 answer

ssh chroot to lxc container

I have a PC with sshd service (192.168.1.1). The PC contains two users user1 and user2. I installed lxc service and configured a container. How can I configure ssh server on 192.168.1.1 that connecting user2 will be chrooted to lxc container.
0
votes
1 answer

How to chroot accounts for using scp in Amazon Linux?

I need to setup an scp server. Suppliers will upload files to that server via scp (not sftp). While configuration was easy for sftp, I really struggle with scp. There are some instructions and how-tos for other operating systems on the web. I tried…
hey
  • 327
  • 1
  • 5
  • 14
0
votes
1 answer

How to get usernames to show in chrooted SFTP?

Under normal SFTP, I see owner and group usernames. Under chrooted SFTP (via internal-sftp in sshd_config), I see numeric user IDs for owner and group. What do I need to do to get usernames to show up?
blujay
  • 1
0
votes
1 answer

Ubuntu FTP user has access to every directory

I just created a new user on Ubuntu Server 16.04.3 LTS with useradd. I have vsftpd installed, and #chroot_local_user=YES still commented out. Yet when i connect with my user through FTP to my server, he can see and access every single folder on the…
murdoch
  • 1
  • 1
0
votes
3 answers

Restricting SSH shell access to Debian server

Still new to the whole Debian thing so bear with me. The only thing I want a user logged in via SSH. No files or directories (like /etc, /var) should be visible at that point. The only thing the user can do is to "su" to login into root and then…
Cudos
  • 539
  • 2
  • 7
  • 18
0
votes
1 answer

nginx + php-fpm chdir not working

I'm meeting a problem with getting my nginx and php-fpm working. I'm getting an error 504 when I try to access my application. I have a structure like this; data/mywebsite/ | |---revisions/ | |---shared/ | |---released/ |---web/ …