VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » IT - Software » IT, programs, coding
Linux Tip - Understanding Chroot - Episode 2 - Rob Braxman Tech

Linux Tip - Understanding Chroot - Episode 2 - Rob Braxman Tech

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
Linux Tip - Understanding Chroot - Episode 2 - Rob Braxman Tech This is a tutorial on using Linux which is a new regular series. The current episode will teach you about the chroot command and how this is used in many phone operating systems. It also will explain the difference between a chroot and a virtual machine. A chroot is a heavily used feature in any OS currently working on mobile like Android and even Linux Phones. So this has very heavy practical value for those interested in how Phone OS's work. -I'm using Ubuntu 18. 04 as my computer. My computer is a brand new Star-labtop
Date: 2022-03-20

Comments and reviews: 7


Thank you so much! Definitely the best intro tutorial I've seen about chroot. I've watched it twice, and now I understand how to set up SFTP (or even SSH) access for users, but not give those users access to the entire system. BTW - I'm using arch, and I had to also copy across my /usr directory. The size of the jail becomes quite large (relatively speaking):
$ du -sh. /-
338M. /bin
4. 3G. /lib
4. 3G. /lib64
7. 5G. /usr
Probably because I have a lot of things installed.

reply

Hey Rob,
Great stuff. Just wanted to check can we restrict a new user to be in the jailed environment and how would i do that? also is this like a virtual environment where i can play with stuff like installing stuff and if doesn't work out i can delete the folder and everything is gone? Its like a container from what i understand right but with using the same kernel as we are using on our system.
Looking forward for your thoughts on this.

reply

4: 50 You dont' need to copy the /bin /lib /lib64 directories.
You can either mount --bind or cp -alf (to create hard links since symbolic links won't work.
# mount --bind /bin /chroot/bin
# mount --bind /lib /chroot/lib
or
# cp -alf /bin /chroot/bin
# cp -alf /lib /chroot/lib

reply

I don't have a source for this off the top of my head, but I've heard youtubers say more than once that a numbered series generally performed worse than a series without.
They say just -SeriesName- + -Topic- will work better.

reply

was having a hard time understanding the topic when I was reading about it else where. Your video was very clear and helped me understand chroot way better. Thank you for your video!
reply

Thanks! chroot is a very interesting! If I remember correctly, the concept is borrowed from FreeBSD jails. a powerful and logical implementation on secure containers.
reply

I'm using WSL. I got -/bin/bash: error while loading shared libraries: libreadline. so. 8: cannot open shared object file: No such file or directory. -
reply
Add a review, comment






Other channel videos