3 ms·
How is booting from a CD not being "root"?
by lahdekorpi 10y ago
How is booting from a CD not being "root"?
- ChristianBundy 10y agoExactly. Physical access is root access.
- pjc50 10y agoBooting from a CD is outside the OS permissions system. The parent poster is talking about making the CD image.
- therein 10y agoWhy should creating an ISO need root? It shouldn't be any different than creating a tarball or a zip file.
- pjc50 10y agoIt shouldn't. However, many of the tools assume the ability to e.g. mount filesystem images as part of the process. Which does require root.
- deathanatos 10y agoAs pjc50 notes, it shouldn't; absolutely nothing about creating either ISOs or hard disk images requires root, in theory — it's just a file, after all. But in practice, tools like losetup and mount both require it. The part I found novel in the article was the mtools package, which I didn't know about. Linux has made progress here, such as FUSE for mounting in user space. But FUSE doesn't support file systems that the OS inherently supports, for example. My understanding is that you need to write a FUSE driver for, e.g., ext2, even though Linux is perfectly capable of mounting ext2 as root. Block devices and partition tables present another hassle. I suspect ISOs are more easily done simply because non-root users have more need to create them: UI applications for making ISOs readily exist, but I can't think of any common applications that deal with disk images that don't already have root.