LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-17-2017, 07:52 PM   #1
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Using your computer as root


https://forums.gentoo.org/viewtopic-...ighlight-.html
 
Old 03-17-2017, 08:42 PM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Running anything as super user so casually is just bad... all those years of Windows defaulting the first user as an administrator...
 
Old 03-17-2017, 10:22 PM   #3
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Original Poster
Rep: Reputation: Disabled
Even on these forums every now and then some smartass declares "it is my computer, I do what I want". Well, that's the thing, run it as root and it won't be yours any more.

This guy is not joking!
 
Old 03-17-2017, 10:29 PM   #4
agillator
Member
 
Registered: Aug 2016
Distribution: Mint 19.1
Posts: 419

Rep: Reputation: Disabled
If you run as root, remember that it is easy to completely destroy everything so there is no useful or recoverable data available. Then you have no choice but to reinstall. Of course most people who have the attitude that 'it is their computer . . .' or that using sudo is too much trouble also do not bother with backups. But, it is your computer, you can do what you wish. Just remember, there are only two groups of people: those who have and those who will. That is a promise.
 
Old 03-18-2017, 02:52 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Emerson View Post
good, we need more posts like this, where opinion (don't be root) becomes fact.
the relevant bit is here i think: https://forums.gentoo.org/viewtopic-...a55a7d#8044600
 
1 members found this post helpful.
Old 03-18-2017, 02:54 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Emerson View Post
Anyone who is prone to listen to advice like this...
Quote:
Stop being a sissy. Every time you sudo a command, you deserve to have your man card taken away.
...deserves what is coming to them in the long run.

btw, i've seen this before and whether that guy is serious or not, don't gratify him with clicks. i did, again. my bad.

Last edited by ondoho; 03-18-2017 at 02:56 AM.
 
Old 03-18-2017, 03:01 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Yawnnn ....

Several times a day I need to do things that require root. No, don't even start - the kernel enforces this for what I need to do.
And no, sudo doesn't cut it.

Sometimes you just need to do what you need to do - despite all the platitudes.
 
1 members found this post helpful.
Old 03-18-2017, 03:07 AM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
^ granted, the thread title is less than descriptive and very likely to start a looong rant once again - but did you even look at the forum posts in post #1?
 
Old 03-18-2017, 10:00 AM   #9
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Original Poster
Rep: Reputation: Disabled
@ondaho
First, not to run the computer as root is not an opinion. It is more than that, it is a golden rule of *nix.
@syg00
Second, this is not about logging in as root for system management.
 
1 members found this post helpful.
Old 03-18-2017, 10:51 AM   #10
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Why are you people who disapprove of running as root so adamant that other people cannot have a root account? I am one of the smartasses that insist on having a root account available on my computers. So every time I install a new distribution which does not provide for root accounts I have to change enough control files to set up a root account that I can log into in addition to my various user accounts. It was totally unnecessary for the distributions to remove the ability to create a root account from their installers.

------------------------------
Steve Stites
 
Old 03-18-2017, 11:41 AM   #11
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Original Poster
Rep: Reputation: Disabled
Code:
sudo -i
This will effectively log you into root, even if the account has login disabled. What else do you need?
 
1 members found this post helpful.
Old 03-18-2017, 12:58 PM   #12
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
if one was never suppose to be "root" user then they'd have never invented it in the first place.

Therefore it has its place within the OS so yeah why not use it?

Ubuntutututu don't root so phah to Ubuntutututu MO of course.

I actually logged in as root for a week using it as a reg user just to test that theory that is out there (in here too) it is Bad to use root. and I never not one time ran into problems.

Last edited by BW-userx; 03-18-2017 at 01:02 PM.
 
2 members found this post helpful.
Old 03-18-2017, 01:08 PM   #13
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
Quote:
Originally Posted by BW-userx View Post
if one was never suppose to be "root" user then they'd have never invented it in the first place.
This logic is not really acceptable. Root is a special user with special rights. You are allowed to be root on your own system but that does not mean you must use that.
You need to think about it as a tool. You will use it only if you need that tool to solve something. You won't use that tool just for fun.
 
Old 03-18-2017, 01:11 PM   #14
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by pan64 View Post
This logic is not really acceptable.
that is your option.

Quote:
Originally Posted by pan64 View Post
Root is a special user with special rights. You are allowed to be root on your own system but that does not mean you must use that.
You need to think about it as a tool. You will use it only if you need that tool to solve something. You won't use that tool just for fun.
this logic is not out of wack. Read it again then think about it really hard. what is is actually saying?
Quote:
if one was never suppose to be "root" user then they'd have never invented it in the first place.
come on think about it, read it again not read into it.


here let me help you read a sentence of what is says not what you think it says. it simply states that

root account was invented for a reason, then you got a ask yourself "what is the reason it was invented?" not give yourself an answer before asking that question.

now answer that question.
that validates my logical statement


if one was never suppose to be "root" user then they'd have never invented it in the first place.

Last edited by BW-userx; 03-18-2017 at 01:27 PM.
 
Old 03-18-2017, 01:22 PM   #15
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by Emerson View Post
Code:
sudo -i
This will effectively log you into root, even if the account has login disabled. What else do you need?
That is only a small part of what I need.

I would like to see the installer offer to create a root account, a superuser account, and from zero to many ordinary user accounts. The installer will check to make sure that you have either a root account or a superuser account or both. The installer will check to make sure you have a superuser account or at least one ordinary user account or both.

I do this every time I install a Linux system. When the installers started creating superuser accounts for me I considered that a good idea. When the installers started not configuring a root account that became a great inconvenience. At one time one of the installers (I forget which one) would install a root account and many user accounts. Most installers have regressed since then.

--------------------
Steve Stites

Last edited by jailbait; 03-18-2017 at 06:01 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Root cause of computer freezing deity_me Linux - Hardware 13 10-20-2010 11:03 PM
Auto login as root as soon when computer boots up linux_newb Linux - Server 1 01-26-2010 03:39 AM
how can i as the root know what is the last account logged in this computer Muhammed Linux - Software 3 08-17-2007 07:33 AM
How can I shutdown the computer without being root? Shagrath239 Slackware 13 02-19-2005 05:53 PM
Can 'root' harm the computer? LinuxSeeker Linux - General 17 03-01-2004 07:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration