Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
On my home system, and one of the computers in my work place, I login and use the root account as if it were well pritty much My login account. In the workplace I can understand that it is a good idea to not do this becuase it can lead to a compramise in security if you left the computer on without logging out or a number of other things.... But for my home machine I cannot really se anything wrong with it.
So in general I was just wondering how many people on their personal machines just log in as root all the time? and also what are somne good reasons for/against this practice?
It's not just the damage to your data or system, it's the security of the whole internet. Look at all the zombified boxes that have been used in the past to attack websites and infrastructure. If somebody slips you a nasty, and you run it as root, it gets full control of you system, and can be used to do whatever that somebody wants.
Yes exactly. By not running as root you are forcing the important operations on your computer (delete important files, start/stop some services, etc) to be done once you use a password for it. In that way there's no way a virus can do that harm. It would need your password.
And well it actually makes you be more organized. Because in that way you store some things in different places depending ont he permissions, etc.
However, some things in my fstab like my CD unit, I allow every user in my computer to mount it and umount it at will. But I do like how things are done otherwise.
As already said, the most important thing is protect yourself of little mistakes of the day to day. I have a customer where mainly all administration routines are automatized. Each customer open his/her session, works and nobody cares about temp files, disk space and etc. However, sometimes, for any hardware or software glitch, anybody has to execute some administrative function like as remove some lock file which was left for some reason. When the most experienced user went to vacation, he passed his cook book to another person. That days. 1994, the home for root in the system V was "/" (root, of course). So, that person got the cook book, opened a root session and entered
rm /usr/printers/ *
, closed the session and went to his normal affairs. A half hour late I was called because the system was hang. That time, installation were done from qic tape. There was no cds, etc. I spent two days to bring the system back. Today the things are faster and more comfortable but, your lost data is lost.
This kind of mistake on root make us miserable, as any user you will just see one or many messages alerting you it can't obey you.
Other issue is familiarity. If you always can do all on your main system without acknowledge because you are root, when you go to another system, you will feel yourself as a "fish out of water" because all you frequently does will be denied to you. All the instructions you give to somebody won't work because they probably don't work normally as root.
To talk about security, is to be redundant! No one user instead of root can do great harm to your system.
Ehhh yeah I am seeing that running as root might not be such a good idea I guess IT cannot be that much harder to make myself an account but honeslyt I like having total and comeplete control over my computer, the idea of having to type a password every time I change permissions of a file or delete a file is kind of well distasteful to me. Although on the other hand the Idea that it's generally more organized to make another account does make alot of sense.
You won't need to enter a password each time you want to change permissions or delete a file. Most of the files you will be working with you will own... so you can do what you want to them. Now... if you want to delete a library in /usr/lib or something... then you will need to enter a password.
Don't be confused. You still have complete control over your machine. You are just segregating that power into the areas where you need it and the ones you don't.