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!
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.
Best not to, just do "su" whenever necessary, a simple command like "rm -rf /" as root then you're screwed.
A normal user can pretty much do anything he needs to, in most cases you only need su when you want to install applications globally or
modify system configuration, which I suppose shouldn't be something you do very often.
I think i'd better log in as a common user.
But I have already configured the root (color schemes, mouse speed and all that). How can I make the configurations I have made on root be available for all user on the machine?
Depending on the window manager you use, the configuration files resides in different directories. These directories are usually hidden, starts with a period and stored in the home directory of the user(usually /root for root).
For kde you probably need to copy all the .kde* directories to the user's home folder, then do a chown on them, I'm not exactly sure whether kde uses other places to store them.
I've heard alot of people say do not log in as root, and some put it as eloquently as ' if i hack u on line i become the user i hacked.', but I have really yet to hear a sound argument against doing so. I guess what I'm trying to ask is, what IS so wrong with logging in as root? Besides being able to really screw up a system yourself.
Originally posted by blacksoul what IS so wrong with logging in as root? Besides being able to really screw up a system yourself.
Well, if that's not a problem for you.......
It's a security / time / convenience thing:
(in about that order)
1) Like enyawix said - if he hacks you as root, you need to reformat and reload your box (when / if you detect you're 0wn3d - root has access to all logs, so if he's discreet it may be a while before you notice). If he hacks you on a user account, he can't do much.
If someone needs root access, they have to know two passwords - one to logon as Khanlinsar and then another to su to root. Belt & braces. Root shouldn't be able to log on straightaway.
2) If you screw up as a user, you've just altered a few (user-specific) settings and lost a couple of files. It's easy to fix or simply remove the user / recreate the account.
Root is god, as far as linux is concerned. Especially when starting out, screwing up as root often means a reload of the whole OS, which is a pain. You spend several hours getting so far, tweak the settings to where you want them, and then the screwup sends you back to the start.
3) Having to "su" every time you need to change something major makes you think before you act, and possibly check the man pages "just to make sure". It takes 2 seconds to do, so it's not that big a deal.
While you're setting up the box & for occasional maintenance root is handy, but for most day-to-day stuff, you don't need root access.
If you still want to use root, at least alias "rm" to "rm -i"
Originally posted by nuhn123 what is this about sueing and logging in as root how do you log in as root im getting linux in a few days and I was wondering.
"su" -switch user. Enter it at a terminal prompt to switch from one user to the other: i.e
su defaults to root.
if I wanted to switch to Joe's account I'd enter:
frogman@mybox$: su joe
"root" is the linux superuser, same as "administrator" in Windows. If you're root you can do anything. Generally you logon as root to do system maintenance, but do everyday stuff in a normal user account (frogman).
While you're waiting for Linux, you might want to have a look here - www.tldp.org - lots of useful stuff.