April 22, 2008

Good advice

Very interesting and useful article entitled The 7 Habits of Highly Effective Linux Users. Excerpt:


If there was one habit that one should strictly abide by, it’s probably this one. Most of us come from a Windows background, and we have the notion that more power is better, so we login using our administrator accounts. Well let me tell you my friend, that this is a major reason that Windows is plagued with viruses and insecurities, half the world is currently running ‘root’ accounts!

With great power comes great responsibility, and with ‘root’ powers you should be aware of the consequences of EVERYTHING you’re doing, and even then, mistakes happen. [ed. note: That is the funniest and most horrifying Unix/Linux story ever]I remember my beginnings with SUSE Linux, there were lot of administrative tasks I needed to do but had no idea how to go about them without the GUI, so I so innocently log out and login onto the ‘root‘ GUI. The default wallpaper of the ‘root‘ GUI on SUSE were lit fuse bombs tiled beside each other. Back then, the symbolism totally flew over my head, coming from a Windows background, I wasn’t really doing anything wrong.

But what are the dangers of logging in as root?


  1. Well imagine youÂ’re on the trapeze without a safety net, frightening isnÂ’t it? Well thatÂ’s effectively what you are doing when you login as root, you can inadvertently hose your whole system
  2. You are at the risk of running malware. Any program that is started under root mode will automatically be given root privileges
  3. If there is a common security hole that hasn’t been patched yet, you could be totally “pwned”
  4. ItÂ’s common Unix convention, never run anything in root mode unless absolutely necessary. If a non-admin program asks for root access, you should be suspicious

Generally, instead of logging onto your root GUI, use any of the following techniques:


  • Use “sudo” or “su” , and kill the session when your done
  • If you donÂ’t know how to do it in the command line, use “gksu” or “kdesu”. For example, press alt+f2 and type “gksu nautilus“. Close the app as soon as you finish

Lots more good advice to peruse.

Posted by: Physics Geek at 12:08 PM | No Comments | Add Comment
Post contains 362 words, total size 3 kb.

Comments are disabled. Post is locked.
17kb generated in CPU 1.8292, elapsed 1.8817 seconds.
88 queries taking 1.0207 seconds, 205 records returned.
Powered by Minx 1.1.6c-pink.