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
1
vote
2 answers

Chrooted ssh user cannot ssh into server : broken pipe

I just tried the following to add a new user, chroot the user and give him access to the folder /home/me/public_html via sftp and ssh : ##the following command are done by root or a sudo user useradd ##add password for new user passwd…
rhand
  • 264
  • 2
  • 5
  • 23
1
vote
0 answers

ChrootDirectory for SFTP user in virtual host directory with write permissions and SuPHP

I am trying to give a SFTP user (user2) writeable access to a virtual host directory (website) in /var/www/mywebsite under Ubuntu 12.04. I have setup sshd_config to use Chrooting so that this user (user2) can only access this website directory.…
Chrysippus
  • 21
  • 2
1
vote
2 answers

SFTP Chroot Ubuntu 10.10

I'm trying to give an SFTP only access to his home directory to a user. This is the /etc/passwd line for the user: bob:x:1003:1003::/home/bob:/bin/false I edited the /etc/ssh/sshd_config file like that: #Subsystem sftp…
bicccio
  • 111
  • 3
1
vote
1 answer

Chroot with SSH connections doesn't work

I have found How can I chroot ssh connections? and a lot of different blog articles and similar (http://undeadly.org/cgi?action=article&sid=20080220110039, https://unix.stackexchange.com/q/14398/57364, etc). I am using the internal sftp subsystem…
CSchulz
  • 243
  • 3
  • 20
1
vote
2 answers

Chrooted SFTP user - Write permission denied even for owner

On CentOS release 6.5 (Final) I created a restricted user test1 useradd -s /bin/false test1 and configured ssd_config as following Subsystem sftp internal-sftp Match User test1 ChrootDirectory %h ForceCommand internal-sftp …
chaplean
  • 13
  • 1
  • 1
  • 5
1
vote
0 answers

Pure-FTPD: chroot doesn't chroot

On a Debian Wheezy machine, I've installed Pure-FTPD. As I wanted the users to be chrooted into their home directories, I took a look at the virtualchroot functionality. After a bit of configuration, I am now at the point where I think the PureFTPD…
Dabu
  • 359
  • 1
  • 5
  • 23
1
vote
1 answer

SSH : Restrict sftp to a directory without jailing shell

For a user group I'd like to: Restrict SFTP access to a given directory Use a custom shell for TTY which takes care of only exposing what needs to be exposed from the system but that still need access to the entire root file system So ultimately…
1
vote
1 answer

FTP users can't see any files when chrooted

On a Debian Wheezy 64bit, I create a new user for a customer to place files into a directory. After the user is created, I take away his interactive login by replacing /bin/bash with /bin/false in /etc/passwd. Then I add him to /etc/ftpchroot, so…
Dabu
  • 359
  • 1
  • 5
  • 23
1
vote
1 answer

Chroot issue, broken pipe

I need to give access to a developer to our server vía ssh. I hosted his web on /home/miuser and some other web applications in /home/... I have this config in my Subsystem sftp internal-sftp Match User miuser ChrootDirectory…
ikerib
  • 97
  • 1
  • 1
  • 7
1
vote
2 answers

force group assignment in chrooted sftp environment

I've got the following setting: There are several users /home/user1, /home/user2, and so on. Additionally there is a user /home/sftp-all. The folder /home/sftp-all/shared is mounted in every other users /home directory, e.g. /home/user1/shared. All…
paterpeng
  • 13
  • 3
1
vote
1 answer

lock ftp user in home directory

I have read, researched, tested, and still cannot seem to get this working correctly. I am running VSFTPD on Debian. With a test account configured to point the user's home directory to a mount point which actually resides on a NAS share, for…
Dov
  • 11
  • 2
1
vote
0 answers

Built in chroot jail RHEL 5 returns No such file or directory

I need to create a chroot jail on my RHEL5 production server to allow a specific user to work with the less right possible, but with GIT. Here is my system configuration : RHEL 5 : Release 5.10 OpenSSH : OpenSSH_6.4p1, OpenSSL 0.9.8e-fips-rhel5…
decanatb
  • 11
  • 3
1
vote
1 answer

reseting password not working in KVM guest

I lost the root password for a guest system. I mounted the guest system and changed it to single user mode. Then I used virsh console to access the guest system, which was now in single user mode, and used a command echo "root":"123456" | chpasswd…
Purres
  • 239
  • 1
  • 4
  • 18
1
vote
2 answers

Easiest way to keep users in their home directory on a web server

I was wondering what would be the easiest and most secured way on a web server to prevent users from browsing directories other than their home folder. I have a mutualised web server with several users and they all have a public_html directory.…
mimipc
  • 1,947
  • 3
  • 19
  • 27
1
vote
1 answer

Chrooting a ftp user to a particular directory

I would like to chroot a user to their home directory on a debian linux server. Im using vsftpd server. I've done it with a user before, and now cant remember how to do it. I've limited ssh access to the root user so the chrooted user cant…
madphp
  • 379
  • 3
  • 12