Tài liệu Adding Users in Linux - Pdf 90

1 - 7 IT Essentials II v2.0 - Lab 10.2.2 Copyright  2002, Cisco Systems, Inc.
Lab 10.2.2: Adding Users in Linux

Estimated Time: 20 minutes
Objective
In this lab, the student will learn how to create user accounts using the Linux Red Hat 7.X
operating system.
Equipment
The following equipment is required for this exercise:
• Computer with Linux installed
• The computer will boot to the CLI not the GUI (not to X window at startup)
Scenario
The XYZ Company has just installed a server running Linux. The company need a IT
person to log onto the server and create users.
Procedures
Until now, each workstation has acted independently from other computers. Each student
will create user accounts and these accounts will be used in later labs.
To complete the steps below, each student will need to be at the command line. If X
Window was launched at boot up, then students will need to open a terminal window.
2 - 7 IT Essentials II v2.0 - Lab 10.2.2 Copyright  2002, Cisco Systems, Inc.
Step 1: Account Planning
From the drawing below, plan out how many accounts will need to be added. Assign each computer a name, which will also identify its location. User accounts may be

Example of user accounts and host names

Computer
Name/Location
User Account/Name Password Comments
A1 studentA1 studentA1
A2 studentA2 studentA2
A3 studentA3 studentA3
A4 studentA4 studentA4
B1 instructorB1 instructorB1 Instructor,
Windows
Computer
B2 studentB2 studentB2
B3 studentB3 studentB3
B4 studentB4 studentB4
C1 instructorC1 instructorC1 Instructor,
Linux Computer
C2 studentC2 studentC2
C3 studentC3 studentC3
C4 studentC4 studentC4
D1 studentD1 studentD1
D2 studentD2 studentD2
D3 studentD3 studentD3
D4 studentD4 studentD4

Example:
Note: Part of the password for these accounts can be found in a dictionary (the word
“student”). Linux will warn against using these passwords for security reasons, but it will
accept them. All passwords must be entered twice.
Notice that in the example above, this is a two-step process. First, create the account
with the useradd command and then give the new user account a password with the
passwd command.
1. Type:
useradd studentXX
(where XX is the username from the table in step 1), and then press Enter.
2. Type:
passwd studentXX
Use the student account for the password. Linux will ask the user to enter the password
twice to check for accuracy.
3. Continue this procedure until all the users are added to the systems.


Nhờ tải bản gốc

Tài liệu, ebook tham khảo khác

Music ♫

Copyright: Tài liệu đại học © DMCA.com Protection Status