Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

chroot

How does ChrootDirectory and a user’s home directory work together?

August 10, 2022 by Magenaut

I need to create an SFTP only user on CentOS 7. I’ve read how to do it from various sources. The setup needs to only support a single user with SFTP only access to a single folder.

Categories Q&A, Unix & Linux Tags chroot, sshd Leave a comment

How to perform chroot with Linux namespaces?

August 10, 2022 by Magenaut

After reading about Linux namespaces I was under the impression that they are, amongst a lot of other features, an alternative to chroot. For example, in this article:

Categories Q&A, Unix & Linux Tags chroot, namespace Leave a comment

How to achieve the effect of chroot in userspace in Linux (without being root)?

August 8, 2022 by Magenaut

The goal is to install and run programs in a displaced (relocated) distro (whose / must not coincide with the global /) inside a host Linux system. The programs are not adapted for using a different / .

Categories Q&A, Unix & Linux Tags chroot, jails, not-root-user, virtualization Leave a comment

Is there a linux vfs tool that allows bind a directory in different location (like mount –bind) in user space?

August 8, 2022 by Magenaut

For a user process, I want to mount a directory in other location but in user space without root privilieges. Something like mount –bind /origin /dest, but with a vfs wrapper. Like a usermode fine-tuned chroot.

Categories Q&A, Unix & Linux Tags chroot, linux, mount, not-root-user Leave a comment

Debian unstable chroot security issues

August 8, 2022 by Magenaut

This page describes how you can use the debootstrap utility to install a base Debian unstable/sid system on an existing Linux machine. The new install is accessible using chroot.

Categories Q&A, Unix & Linux Tags chroot, debian, install, linux, security Leave a comment

deleting a ‘file’ under /proc or /dev

August 8, 2022 by Magenaut

I am using a cowdancer/debootstrap setup to generate a chroot.

Categories Q&A, Unix & Linux Tags chroot, proc, rm Leave a comment

How to create a FTP user with specific /dir/ access only on a Centos / linux installation

August 8, 2022 by Magenaut

So I’m on a VPS – CentOS Linux installation. I have vsFTPd on the server.
I currently have SFTP access to the server via my root user, but am now trying to create a new user with FTP access to a specific directory only on the server, I’ve done the following:

Categories Q&A, Unix & Linux Tags centos, chroot, ftp, vsftpd Leave a comment

Lightweight isolated linux environment

August 7, 2022 by Magenaut

I want an isolated (guest) Linux environment on my computer that I can mess up without worrying about the host. E.g. install a lot of stuff from source without package management, pollute environment environment variables etc., then spawn another guest environment when the old guest gets too cluttered.

Categories Q&A, Unix & Linux Tags chroot, linux, virtual-machine Leave a comment

Providing /bin and /lib inside a chroot jail

August 6, 2022 by Magenaut

I need to be able to provide the /bin and /lib directories inside a chroot jail so that programs can dynamically link properly.

Categories Q&A, Unix & Linux Tags chroot, symlink Leave a comment
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress