Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-22-2005, 02:17 PM   #16
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75

Originally posted by jameson
Just because something can be done from the commandline doesn't mean it should be. I can do as much damage from the commandline as i can in x (i know theres less chance of it though, but i still can) and having to continually use su is irritating. When not using the internet i quite regularly log in as root to do things, maybe i just like to live dangerously though

If i am logged in as root, does that not mean all processes run by me are run with root priviledges also? if so then that could be why its a bad idea. you don't want some rogue process eating your hd.
If you are logged in as root, then everything in the gui environment is running with root privileges, so if someone cracks into your system they can basically do whatever they want to the whole system. Also its not just about crackers, there are more chances of making errors and hosing your system if you routinely log into your root account from the cli or from the gui, but I think if you are just using the cli for sysadmin purposes then the chances of this are drastically reduced. One thing that I have noticed from a lot of recent Linux converts is the desire to work like they did in Windows i.e. logged in as admin all the time. This is obviously a blatant disregard of one of the things that makes Linux and Unix secure i.e. not running as the admin all the time. Even if you are not connected to the web, its still better to do things the right way so that you get used to it.

As for "continually using su", I don't think this is an irritation since you don't have to do sysadmin tasks all the time. Once I setup my system, I hardly need to login as root.
Old 11-22-2005, 02:53 PM   #17
LQ Newbie
Registered: Nov 2005
Location: Murray, KY
Distribution: Ubuntu
Posts: 10

Original Poster
Rep: Reputation: 0
Good way of looking at it reddazz. I will probably not log in as root all the time. I would just like to know how to if just for my own general knowledge. This is a pretty good discussion point though.


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
changing password non-interactively fili Linux - General 3 11-05-2004 06:10 AM
Remove files non-interactively ar1 Linux - Newbie 3 06-02-2004 06:32 PM
Logging in as root. Khalinsar Linux - Newbie 22 09-15-2003 03:13 AM
Logging In as root DiabloDan Linux - Newbie 6 07-22-2003 03:00 PM
using red-carpet without logging out and logging as root. packman Linux - Software 1 12-09-2002 02:55 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:38 PM.

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