LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-18-2004, 03:55 AM   #1
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Rep: Reputation: 30
Disadvantages of using root?


Anyone know why is it not recommended to use root as daily usage?
 
Old 06-18-2004, 04:03 AM   #2
fleuh
LQ Newbie
 
Registered: May 2004
Distribution: RH9 - Suse 9.1 - Knoppix - Mepis
Posts: 18

Rep: Reputation: 0
hi

it's because when you're logged as root and doing crap, this crap is done forever.

for example, if you do a

rm -f /etc/fstab

you're going to be in troubles....

bye
 
Old 06-18-2004, 04:21 AM   #3
vrln
Member
 
Registered: Mar 2004
Location: Finland
Distribution: Gentoo
Posts: 235

Rep: Reputation: 30
root is like a "god mode" - has access to everything and can do everything. File permissions are critical for linux security. Normal users cannot install software or change system critical settings for example.

Last edited by vrln; 06-18-2004 at 04:22 AM.
 
Old 06-18-2004, 10:16 AM   #4
d00msweek
Member
 
Registered: Jan 2004
Location: Cebu City, Philippines
Distribution: Slackware 10,Gentoo 2005.1,LFS
Posts: 92

Rep: Reputation: 15
heh. Nice Question. root is is like the "god" of you system. It can do anything to your Linux System. Like, installing packages, configuring you system, DELETING "SYSTEM FILES", and stuffs like that.

It simply means that, logging in as root always is like asking for trouble. Since humans always commit mistakes, maybe you can wipe your harddisk anytime.
 
Old 06-18-2004, 10:28 AM   #5
SBing
Member
 
Registered: Mar 2004
Posts: 519

Rep: Reputation: 35
Also, say you want to play a network game with friends (bzflag for example), you log in as root, fire up the server (which is now running as root) - guess what happens when somebody exploits your server - full root access to your machine :/

Had you been running the bzflag under your own user account it'd be that little bit better since the attacker really doesn't have access to that much ;)

At least that's what I think :)

Steve
 
Old 06-18-2004, 05:04 PM   #6
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 83
Running as root is always risky because root has full privileges to perform any actions whatsoever on your system. If you accidentally make a typo when you are executing a command, you could very easily destroy your entire system, with no chance of recovery except to do a full reinstall. Therefore, it's a poor choice, and that's why you should use root only in specific situations that explicitly require it (such as when you are installing new packages). Otherwise, just run as a regular user.

Another LQ'er put it this way: Running as root is like putting on a giant robot suit that comes with a bunch of laser rockets. At first, it's pretty cool to run around being all-powerful, but one day you might end up accidentally crushing something that you didn't intend to, and unfortunately if you're root there's no such thing as a "do over". Therefore, you want to put on that giant robot suit only when really necessary, and to be very careful while you've got it on. -- J.W.
 
Old 06-18-2004, 07:01 PM   #7
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
There's no real point or advantage to run as root. You can do most tasks as a normal user which gives you an added level or security you could only dream of back in the win9x days...

You'll only need root when you need to do the risky stuff - like installing software :-)
 
Old 06-18-2004, 08:21 PM   #8
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
So root is more dangerous than "Administrator" if you're not careful eh?
 
Old 06-18-2004, 11:16 PM   #9
SBing
Member
 
Registered: Mar 2004
Posts: 519

Rep: Reputation: 35
Quote:
Originally posted by subaruwrx
So root is more dangerous than "Administrator" if you're not careful eh? :D
:D, I'd say they're about the same, but running most things on Windows can be dangerous as Administrator. It's one of my pet hates about windows, why have a default user with unlimited privs? It makes more sense to have one extra step in the installation process (su) to prevent scripts being run by accident which install stuff :)

Still, it makes it easier for average computer users to install stuff...whether or not that's a good thing I don't know :P

:)

Steve
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Source vs Binary Disadvantages & Advantages of each! RobNyc Linux - General 1 03-18-2005 11:27 PM
Advantages and disadvantages of installing Gentoo GNU/Linux using Stage 1 blood_omen Linux - General 8 01-27-2005 09:37 PM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 05:14 PM
Linux PPC disadvantages whall3372 Linux - General 7 01-14-2004 01:14 PM
disadvantages of LFS moeminhtun Linux From Scratch 20 03-12-2003 01:54 AM


All times are GMT -5. The time now is 12:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration