LinuxQuestions.org
Visit Jeremy's Blog.
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
 
LinkBack Search this Thread
Old 10-09-2004, 12:08 PM   #1
breezewax
Member
 
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, 12:29 PM   #2
secesh
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, 03:41 PM   #3
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,769
Blog Entries: 1

Rep: Reputation: 410Reputation: 410Reputation: 410Reputation: 410Reputation: 410
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, 03:55 PM   #4
wapcaplet
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, 05:00 PM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,527

Rep: Reputation: 147Reputation: 147
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.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running a mixed system: Bad? How bad? haertig Debian 5 11-09-2005 01:54 PM
Running KPPP as Root = Bad Idea? Hawklad Debian 8 09-23-2004 06:57 PM
Bad root shell Tyraziel Linux - General 2 04-08-2004 10:08 AM
is running root bad??? zetsui Linux - Security 1 06-23-2003 02:30 AM
Is root really that bad? Crickit Linux - Software 25 04-18-2003 11:33 AM


All times are GMT -5. The time now is 03:15 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration