6 ms·
Nice, I remember being shown DSL and being amazed someone could make an OS that small. > DSLR's approach to security is different . It is possible to run as ro
by mcintyre1994 12y ago
Nice, I remember being shown DSL and being amazed someone could make an OS that small.
> DSLR's approach to security is different . It is possible to run as root without causing a global disaster.
Is there any more information available on how this is achieved?
- Zardoz84 12y agouLinux or picoLinux (I don't remember very well the name) -> Runs on one or two 3.5 floppies. There is a version with 3 or 4 floppies with an X-Windows included.
- FooBarWidget 12y agoWhat's a floppy? Is it as small as an SD card? </sarcasm>
- dave1010uk 12y agoI remember running a QNX demo off a single floppy on a 66MHz 486. Included a web browser, a game ,and an editor, all in 1.44MB http://toastytech.com/guis/qnxdemo.html http://toastytech.com/guis/qnxdemo.html
- staz 12y agoDo you mean muLinux (μLinux) ? http://ftp.gwdg.de/linux/mulinux/ http://ftp.gwdg.de/linux/mulinux/ http://en.wikipedia.org/wiki/MuLinux http://en.wikipedia.org/wiki/MuLinux It was one of my first distro and it was awesome. A base system than ran in one floppy and then you could optionally add and combine more floppys depending of what you wanted (X system, IDE, games, latex, etc...) It was kind of the ancestor to Live CD
- DanBC 12y agoTomsRtBt runs off a floppy - http://www.toms.net/rb/ http://www.toms.net/rb/
- userbinator 12y agoIf you're into small but very functional OSs, also take a look at MenuetOS: http://www.menuetos.net/ http://www.menuetos.net/ Not a *nix-like but has a ton of functionality in the space of a single floppy.
- Eiriksmal 12y ago> > DSLR's approach to security is different . It is possible to run as root without causing a global disaster. > Is there any more information available on how this is achieved? +1 to this remark, currently unanswered. Is the "NEVER RUN AS ROOT!" mantra from modern Linux practices, or has it been that way since the mid-90s? After nearly four years of using Fedoras, I'm getting better about remembering what operations require root privileges, but I'll still grumble every time I have to enter the root password to do something as trivial as mounting a flash drive on someone else's computer. (I can't remember, offhand, where that setting is/what it's called that lets normal users mount drives)
- userbinator 12y agoIs the "NEVER RUN AS ROOT!" mantra from modern Linux practices, or has it been that way since the mid-90s? I think that goes back all the way to Unix and its multiuser environment, where one admin's mistakes could affect everyone on the system - so people were naturally scared of root. On the other hand, on the earliest personal computer OSs, which were basically single-user (many don't even have the concept of a "user account"), that only user has full control like root but that wasn't really perceived with as much apprehension since the only thing a mistake affects is the sole user. With DSLR and all the other tiny Linux distros, I sense that the intention is these are to be used by a single user.
- Eiriksmal 12y agoAh... That is very insightful, thank you. I continually forget the days of timesharing, etc. For my entire life (born during the Tiannamen Square riots), personal computers have typically hosted one user at a time.
- aidenn0 12y agoThat statment is actually true for the entire existence of personal computers... you might even say it's the definition of a PC. However, Unix didn't start on PCs, it started on minicomputers.
- 12y ago
- keenerd 12y agoI can't speak for DSLR, but I can say why Puppy Linux runs as root without disaster. (Spent a couple of years writing utilities for them.) Basically you design the system so that root has no special powers. Imagine if all of your storage was write-once, like a CD-R. What damage could root do? Almost none. Maybe there is a union file system for /usr and /home. Disregard all changes to /usr, when you reboot a fresh /usr is extracted from disk. Stuff like /home is incrementally saved. You can re-wind to any point in history. That is how Puppy (in CD-R mode) works. About the only real threat that root poses is accidentally dd-ing over the OS boot partition. With some kernel patching you could simply hide the /dev node after the boot is done with it. Though that makes updating harder. Any threat can be neutralized, but the whole OS gets slightly more byzantine as a downside. The root/user distinction places all your faith in octal permission bits. In some ways a properly designed run-as-root system is less risky, because the safeties are baked into the OS at a much deeper level. It is the difference between a dangerous machine having physical safety interlocks and paper-thin "for your safety" policies.
- kbenson 12y ago> With some kernel patching you could simply hide the /dev node after the boot is done with it. At some point we have to make the call on diminishing returns. It will always be possible for root to bork a system (without a rewrite of many, many utilities that rely on root permissiveness), it's just a matter of how hard we can make it to do that accidentally. To be clear, I think this work is very useful and appreciated though. As someone that spends almost all of every working day in terminals on remote systems, often as root, I applaud any effort to reduce catastrophic mistakes. Every time I have to rm -rf as root there's that little after-I-hit-enter-panic, where I have to assure myself I double checked and didn't accidentally just delete /bin. The root is protected from the errant rm mistake, but there's oh so many more ways to reduce a perfectly fine system to an unbooting heap of hardware. > The root/user distinction places all your faith in octal permission bits. In some ways a properly designed run-as-root system is less risky, because the safeties are baked into the OS at a much deeper level. It is the difference between a dangerous machine having physical safety interlocks and paper-thin "for your safety" policies. Give me both. Please.
- e12e 12y ago> Nice, I remember being shown DSL and being amazed someone could make an OS that small. Obligatory mention, the QNX demo disk (1.44M floppy image with full gui): http://toastytech.com/guis/qnxdemo.html http://toastytech.com/guis/qnxdemo.html While the floppy is justifiably dead, it is a little strange to see basic installs taking up so much space these days. Thankfully the core-os type projects (os for densly populated vm servers) are helping a bit -- even if deduplication/running root from /nfs etc -- is probably a more expedient (and permanent) way to reduce footprint per vm (1 Gig divided by 1024 vms is just 1Mb per vm after all...).