Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
root or sudo?
I was wondering if people here prefer using the "root user" account or if you prefer "sudo" ?
Personally, I prefer "root" over "sudo" because if you can't trust yourself to know which user account you are running under, well maybe you should get someone else to administer your machine(s). And I like the old fashioned approach!
I know that the "root user" account is disabled by default in at least some distro's (like the *buntu's etc), but it can be quite easily re-enabled. Does anyone actually do that for another question?
Sudo for me. That way I am more aware of what I'm doing when I'm actually root - I can't stay hyper focused and vigilant the whole day and the potential damage I can do is less when I'm running as a non-root user. To add to that, running some GUI apps as root, such as the browser, can be a huge security problem.
The way I see it is that command-line server distros are best run as root, desktop distros as an ordinary user using sudo when required.
Sudo is safer if you limit the commands the user you run sudo under can run. This can be inconvenient but nobody said security was convenient, lol. Most distros that disable root have ALL:ALL in etc/sudoers anyway so really what sudo gains you in that regard is an audit trail. If you use the root user, you have no idea who ran a given command in a multi-user environment, especially if folks login directly as root. If you run sudo, there is a log kept of who ran what. If you religiously su to root, then this is also logged so you can see who su'd ad at what time. That's better than nothing.
Sudo for me except when I need to do a sequence of root operations. Then it's quicker just to become root for the duration using su.
Wouldn't "sudo su" work for that, if you have a distro that doesn't use a root password? I suspect that all your distros do what you want them to, though!
Personally, I use whatever the distro wants me to. If, for example, you enable the use of a root password on a distro that uses sudo, you can find yourself instinctively using it when a GUI tool asks for a password and that won't do.
I always have a root password. As far as I know, it's only the *buntus that don't support root logins natively.
@BrianL: I thought I had no problem remembering both my passwords until I broke my right shoulder in February and had to spend a week in hospital. When I got home, I found that my rather complicated root password was actually stored in "muscle memory" and not in my head. Typing with the left hand, I couldn't reconstruct it. Fortunately I had given myself full sudo rights so I got by!
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,493
Rep:
Another vote for sudo as a general user, quick & easy for the odd command that needs it, like mounting/unmounting drives, (I don't like having them automatically mounted) - but if I need to work as root, then I'll switch to root.
I use sudo with no passwd, and su at times, I detest distro's that decided to take control of are lives in dedicating that root account is not needed. who are they to dictate such rules?
I use sudo with no passwd, and su at times, I detest distro's that decided to take control of are lives in dedicating that root account is not needed. who are they to dictate such rules?
"Control of our lives"?
There are rules all throughout Linux - file attributes, access rights, password requirements, all intended to make Linux more secure. "Power users" can easily tweak Linux, and that includes giving root a password for those distros who make the root password empty and locked by default (and these distros are not "dictators", they're just trying to improve security for the normal user).
I use sudo with no passwd, and su at times, I detest distro's that decided to take control of are lives in dedicating that root account is not needed. who are they to dictate such rules?
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Original Poster
Rep:
Quote:
Originally Posted by sevendogsbsd
Flame bait if I ever saw it...
While it's like everything else here it's open to interpretation, personally I didn't see it like that. BW-userx is still on-topic. As long as it's about the thread topic (which I must say all posts so far have been) and no rules have been broken, then it's fine by me.
I must say while I didn't intend on responding this soon, some great comments so far! Thanks guys!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.