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


  Search this Thread
Old 10-09-2004, 01:08 PM   #1
Registered: Sep 2004
Location: san diego, ca
Distribution: Slackware 10.2
Posts: 74

Rep: Reputation: 15
running as root is bad because?...

okay obviously i'm a serious noob sucker, but i'd just like to know specifically why it's so dangerous to run as root...i understand that some network services you run as root have security issues while they run, but as far as normal research/coding usage goes, how exactly could you be compromised as opposed to doing those things as "user"?

thanks for replies...sadly, most all will be enlightening
Old 10-09-2004, 01:29 PM   #2
Senior Member
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
rm -rf /

mistakes can happen, and in the above line of code, nothing will prompt you saying 'do you really want to delete your entire system?'

but let's take it in another direction: mailcious code -- what if you download something that's poorly written, or something that intentionally tries to damage your system?

by not commonly running as root, you have another level of protection to your system... i've heard people say things along the lines of: 'linux viruses -- if you manage permissions correctly, there's no such thing'
Old 10-09-2004, 04:41 PM   #3
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
I'm always slightly mystified by this question because except for the occasional bit of software installation and system maintenance, I really never need to be root. I mean, is it really so very much more convenient to be root as opposed to a regular user? If you find you need to use a few root commands a lot, just set 'em up for yourself in sudo or if you REALLY need to be root, just su to root for the task and then jump back out.
Old 10-09-2004, 04:55 PM   #4
LQ Guru
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Check out another thread on this topic, as well.
Old 10-09-2004, 06:00 PM   #5
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,580

Rep: Reputation: 191Reputation: 191
It is bad. Mistakes, software you run etc. I don't know about cases of spyware etc. using broswer bugs for Linux, but it may happen and will probably happen one day. Plus local exploits.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Running a mixed system: Bad? How bad? haertig Debian 5 11-09-2005 02:54 PM
Running KPPP as Root = Bad Idea? Hawklad Debian 8 09-23-2004 07:57 PM
Bad root shell Tyraziel Linux - General 2 04-08-2004 11:08 AM
is running root bad??? zetsui Linux - Security 1 06-23-2003 03:30 AM
Is root really that bad? Crickit Linux - Software 25 04-18-2003 12:33 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:28 AM.

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