Linux Basics (tutorial) #2

Discuss everything about Linux here!

Moderator: Community Moderator

Post Reply
User avatar
MrNiitriiX
Premium Uploader
Premium Uploader
Posts: 2197
Joined: 19 Apr 2010, 14:52
Location: between space and time
Has thanked: 24 times
Been thanked: 164 times

Linux Basics (tutorial) #2

Post by MrNiitriiX »

How is the Root User Different Than Others?
The Root User

In any Unix system, the root user is called a superuser because it has powers far beyond those of mortal users (and it's not even affected by kryptonite).
As root, you can access files and change the system in ways other users cannot. But you can also wipe out your entire hard drive in just ten keystrokes.

Unless you plan to install new software or tweak your system, you should log in to Linux as a user other than root.

Ex Nihilo: Adding New Users

In the Linux universe, new users do not evolve--they are created by a benevolent superuser. To add a new user account, log in to the root account and enter a command like the one shown here. There's no limit to the number of new users you can add.

adduser hermie

After using the adduser command, you must assign a password to the new account before it can be used. Use this command to set the password:

passwd hermie

. . . and enter the initial password for hermie when prompted.

LINKS TO THE OTHER TUTORIALS


Leason 1: Living in a shell
Leason 2: Root and Other Users
Leason 3: Virtual Consoles
Leason 4: Logoff and Shutdown
Leason 5: Choosing a Shell
Leason 6: The Command Prompt
Leason 7: Wildcards
Leason 8: Command History and Editing
Leason 9: Aliases
Leason 10: Redirection
Leason 11: Pipelines
Leason 12: Processes
Leason 13: Stopping a Program
Leason 14: Environment Variables
Leason 15: Help!
Last edited by MrNiitriiX on 31 Jul 2010, 13:05, edited 1 time in total.
"Injustice anywhere is a threat to justice everywhere." - Martin Luther King
Image
Upload List
Post Reply

Return to “Everything Linux”