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.
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.
Personally I think that if you really want to run as root you can, it's your system.
It is a terrible idea to suggest others generally do it though.
You lose the parachute of a regular user not being able to run everything as regards trojans as well as unintended errors.
If you put a little into learning that you do not need to run as root to be able to do everything you want VIA su, and still keep the protection of the filesystem permissions on your side you will be happier.
I can't think of any particular instances, but there have been plenty of times when I've made a typo at the command prompt or some such, and got a bunch of permission errors: "Whew, it's a good thing I wasn't root when I did that."
Running as root all the time seems to me to remove a lot of the security advantages of using Linux. Viruses and the like become a serious threat again, and the possibility of making a catastrophic mistake is back on par with Windows... do it if you like though, it's your box
(but this is biased because I have used ms for a long time)
Well, a lot of times in linux you have to think simple. just like you create iptable rules to drop all, but allow some...you are not planning for the expected event. By not running as root, you are limiting yourself to the probability of the unexpected happening. A really simple example, is that if you're connected to any network, the chance of getting permanently knocked off is running as root. and stuff (even automated stuff) can go berzerks - so the question is why? Again, its only a matter of time...so give yourself all the permissions you need but no more. Is it so hard to type 'su -' once in a while?
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,801
Rep:
Re: Suggestions on how to learn Linux?
Quote:
Originally posted by frontier1 Other than this forum and me trying to learn on my own, is there a good way to learn Linux maybe a good course or online tutorial?
I always found that the best way to learn a new OS is to force yourself to use for some project. It can't be time critical because you're going to be slow in getting things done at first. I probably learned UNIX faster once I decided that, although my PC could dual boot (at the time is was a 16MHz 386, a whopping 2MB of memory, a 42MB disk, and running Win3.11 and the UNIX-alike Coherent), I made it a rule to not use Windows. (Just like now but for different reasons!) I was working on translating a lot of FORTRAN code into C at work (on VMS) and decided that I could be doing the same thing for a UNIX environment as well. That made me learn the editor inside and out, the compiler, make, debugger, etc. It was a great experience.
If you're looking for a book (or two), I had found Matt Welsh's ``Running Linux'' (he's got two collaborators in the latest edition) was pretty friendly and readable when I first started running Linux. For the sheer volume of information, the ``Unleashed'' books weren't too bad.
Personal recommendations: 'Running Linux' by Matt Welsh et al (O'Reilly): fabulous for users of all levels. LIkewise 'Linux in a nutshell' from the same publisher: ALL the commands you'll ever need, and more! but it's a large-ish nutshell...
Also 'The LInux cookbook' by Michael Stutz: Debian based but anyone nervous of the CLI *has to* read this - you'll relax a little, it isn't so scary; and if a pointy-clicky type like me can say that, you know it's good!
regarding running as root...well I know a lot of 'ordinary joes and jills' who are afraid they'll break their computer if they make a typo.
They can't of course. They're all using windoze (the ones who aren't using electric typewriters ) But yeah, in linux if you habitually run as root you can do exactly that:
# rm -rf / (filename) it's the space after the / that does it...
Running Linux by O'Reilly
Linux In A Nutshell by O'Reilly
Understanding The Linux Kernel by O'Reilly
Shell Programming In 24 Hrs (yeah right) SAMS teach yourself book
If you're into learning another *NIX that is WAY simple, check out the book below. Concepts from here can be taken to Linux and other OS's. BTW it explains MINIX inside and out.
Operating Systems Design and Implementation by Tannenbaum
My story on why I never run as root.
I was logged in as root and wanted to delete my user's $HOME/bin directory. I was in $HOME and typed from the command line rm -rf /bin instead of rm -rf bin/ BIG DIFFERENCE!!! HUGE!!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.