Professional Documents
Culture Documents
: 2 Hours
Learning Outcomes
By the end of this lab, students should be able to:
1. Add users, group and set permission using command line and GUI
Activity 4A
Activity Outcome: configure user, group and set permission using command line
Procedure :
NUM
1
INSTRUCTION
Create 3 new users - user001,
user002, user003
COMMAND LINE
useradd user001
useradd user002
useradd user003
groupadd group001
groupadd group002
mkdir folder1
cd folder1
touch data
ls l
3
4
5
6
7
8
9
10
1 | 34
Activity 4B
Activity Outcome: Configure user, group and set permission using GUI
Procedure
Step 1 : Adding a User to an Ubuntu Linux System
There are two methods for adding new users to a system, one way is using the graphical
User settings tool and the other is to use the adduser command-line tool. In this section
we will look at both approaches.
1.
To add a new user to your Ubuntu Linux system using the User settings tool
select System desktop menu and choose Users and Groups from the Administration
sub-menu. A dialog similar to the one shown below will appear:
2.
2 | 34
3.
To define the privileges for this new user select the Privileges tab of the New
user account dialog to display the privileges screen:
3 | 34
De-select any privileges you do not wish the new user to have. In particular you
will want to ensure the user does not have Administration privilege unless the user is a
trusted system administrator. To disable administration privileges, ensure that the
Administer the system option is deselected (the default setting). The other privileges are
usually considered to be safe for the typical user.
5.
The final screen on the Add user dialog allows Advanced settings to be defined.
These include such issues as the home directory of the user (traditionally
/home/username), the type of shell that is presented as the command line in a terminal
window (Bash is usually the default and there is no reason to change this unless you
specifically need a different shell), the group to which the user belongs and the user ID.
Use the drop down group menu to change the user's group membership to a different
group:
6.
Once the new user is configured, click on the OK button to add the new user.
Once added the new user should appear in the list of users in the settings dialog and it
should be possible to login in using the username and password specified.
4 | 34
Questions:
1.
(2 marks)
2.
(2 marks)
3.
(2 marks)
4.
(2 marks)
5.
( 2 marks)
5 | 34
6.
(2 marks)
7.
8.
9.
6 | 34