lewmur wrote:ShiftPlusOne wrote:Another answer might be that if it were safe for you to do so, you wouldn't need to ask how it's done. Because 1) you'd know how, and 2) you wouldn't want to
I know ahead of time that I'm encouraging flame attacks for saying this, but I think the "danger" of logging in as "root" are highly exagerated. Would I recommend it for someone using their Pi for online commerce and/or banking? Of course not.
But if someone is using their Pi for "coding" and/or GPIO developement, and is seldom "online" with it, there is no real danger in being rooted. Face it, there are distros, such as "Puppy", which by default boot into "root". When was the last time you heard of a Puppy device being exploited? In fact, I have asked on many forums for someone to document a case of ANYONES *personal* Linux box being exploited. In the ten years I've been using Linux, I have never heard of a *documented* case.
If you home linux box was exploited, chances are you wouldn't know about it anyway. But that's not my main concern.
Have you ever entered a command slightly wrong and then had unintended consequences as a result? When I first got started, I sure have and I know many other have as well.
One of the reasons linux is more secure is that simply running a command as a user is unlikely to do real damage, unless there is an exploit built in that will get superuser access. If logging in as root becomes more of a standard practice, it makes things less secure for everyone, by making linux a more interesting target. But yes, if it's offline or just on a local network and you don't have any personal files on it, it's not a big deal. It just comes down to increasing the chances of you eventually messing up your system and it's just bad practice. Knowing how to use permissions in linux is one of the most central things beginners should learn as many errors arise from not understanding why you can't access certain things and running as root is a very messy workaround.
I agree that it's not THAT big of a deal in this case, but surely it's not something to encourage.