3 ms·
> You can, although the instructions published actually result in you still being root (and using password authentication, erk) Huh? Maybe this was true on al
by waddlesplash 8y ago
> You can, although the instructions published actually result in you still being root (and using password authentication, erk)
Huh? Maybe this was true on alpha4 (I have no idea), it certainly isn't true now.
> even if you go out of your way to become a genuinely non-root user, you can still read, modify and replace system files for example.
Root can't even replace system files anymore due to packagefs; but in general, there was a massive refactoring and cleanup of the VFS layer between alpha4 and beta1 which means filesystem permissions are actually enforced now.
- tialaramex 8y ago> Huh? Maybe this was true on alpha4 (I have no idea), it certainly isn't true now. I followed these instructions on a live Haiku Beta ISO: https://www.haiku-os.org/guides/daily-tasks/netservices/ https://www.haiku-os.org/guides/daily-tasks/netservices/ Following these instructions resulted in me connecting to the Haiku machine as root (named "user" but with user ID zero and thus root rights). I was able to "kill" processes run by the desktop user and so on. > Root can't even replace system files anymore due to packagefs While packagefs prevents a naive user from being able to modify their system files, it actually makes it easier for an attacker because you can just add a package to modify things or remove one that's in your way. Even after creating a separate non-root user and logging in to that rather than the root equivalent user, I was able to continue manipulating the system in this way without trouble, at first removing documentation in the desktop user's language and then gradually replacing software with my own.
- waddlesplash 8y ago> Following these instructions resulted in me connecting to the Haiku machine as root (named "user" but with user ID zero and thus root rights). I was able to "kill" processes run by the desktop user and so on. Well ... yes, because you set the sshd to allow root login, and then logged in as the root user. This is the intended behavior, yes? You can leave that option off, `adduser`, and then log in as the new user instead. > Even after creating a separate non-root user and logging in to that rather than the root equivalent user, I was able to continue manipulating the system in this way without trouble, at first removing documentation in the desktop user's language and then gradually replacing software with my own. Hmm, well, that is a bug then; last I tried I thought this was impossible. Perhaps the directory permissions on /system/packages are incorrect.