When You Work As Root
When You Work As Root
You have now installed Linux and the first thing you did was login as 'root'. Then you provided a password so that you and ONLY you could login to the system as 'root'. When you decide to work as root, you had better go into a phone booth first and change into a blue suit with a big 'S' on the front because 'root' is known as the 'superuser' (you can skip the red tights if you want). That's really not meant to be just a witty reference to the Man of Steel. Actually, it is much more glamorous to be 'Superman' but root is actually more like the 'janitor' of the Linux system. Root has the keys to everything. He can shut off the lights, shut off the heat, lock you out of the building; he has to clean up the system and in the end make sure everything runs. And the most important thing about being a janitor - he sees everything.
To add a new user, you can also use the command 'useradd'. Kind of a logical name, isn't it? Try this: useradd bob. You probably won't see any fireworks go off. You might not see anything. That doesn't matter. Linux has been told that there's a new user and his name's 'bob'. Now you should give yourself a password. Do this: passwd bob Linux will ask you for your password. Follow the same advice I gave previously about passwords. Also, don't use your 'root' password. Like 'one man, one vote' it's 'one user - one password'. You will be asked to repeat it.
Go to the /home directory. - typing: cd /home you can make sure you're in the /home directory by typing 'pwd'. You'll see this: /home. Now you need to type: cd bob. MS-DOS users will be familiar with that one. You can type: ls -a to see what's in the directory. We'll go into more detail with the ls command later. With the -a option, you'll see some files that begin with a '.' (period/dot). Those would normally be hidden from you if you didn't use the -a. Now you can go to work as 'bob', 'hrothgar' or whoever you happen to be.