Linux - NewbieThis 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
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Besides damage to your own system, you can affect others on the network / internet. If you always use root, your computer can be used as a point of attack on others.
I'm no expert, but no, I never use root as a login... never, never, never. If I need to do something with root priviledges, I'll use su, issue the command, and exit from su.
I'm deathly afraid of developing scripts as root, especially if I want them to remove files. There's no telling what system files your script could kill while you're debugging it.
Besides that, if you're root and come across the rare linux virus, any command could get infected (ls, cp, mv, ps...) because any process you launch has write priviledges to those commands. Not using root access all the time is why linux is far less susceptible to viruses than Windows.
I did an "rm -fr /msdos" a few years back on my Linux box and wiped out my Windows 95 stuff (some might say that was a good thing), but it contained all of my expense records, etc and it was really maddening to try to recover it.
root is dangerous, since that experience I always sit on my hands first before I execute commands such as halting, rebooting, deleting, because you just never know....
I was new and fresh to linux about a year ago... I had no idea what I was doing. I completely taught myself everything I knew by trial and error. I always used root... and found out the hard way that it wasn't right. I ended up having to reinstall Mandrake 6 times completely before I stopped using root.
for me, I only have to su maybe 2 or 3 times a day anyway, my normal "work"load doesn't require me to be logged in as root. why run the risk when I'm not really gaining anything except maybe 20 seconds of typing ?
After reading this posting as a newbie I understand now why not to log on a root many thanx to all for this info
Just one question arises from this how do I export all of the setting that I have set up under Root to my User account.
Sorry if this seems a bit dumb but after working for far too long with Microsoft Bloatyware for so long I have become lazy in my ways
Its probably something so obvious that I missed it
Duhhh Microsoft made me stupid
Also if you are working in a desktop environment, browsing the internet or chatting online root is dangerous. One time I tried to use X-Chat as root and it gave and error message saying something like "Running X-Chat as root is stupid....Don't do it!"
See if you get messed with while logged in as JoeSchmoe its tuff for an attacker to get anything done because JoeSchmoe doesn't have a lot of control over the system. If they get you as root...well you'll get rooted!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.