You are on page 1of 3

Name of Activity: Laboratory Activity # 4

Name of Student: Jehanah D. Mudar


Course Title: System and Network Administration 1
Year/Course/Section: 3-BSCpE-B
Due Date: November 13, 2022
Title of your Activity: Introduction to users

1. Run a command that displays only your currently logged on user name.

In the first code when you run a command “whoami” it displays the user
that you are currently using.

2. Display a list of all logged on users.

This is the step two where it will display of all the list of all logged on users but in my case there is
only one user that display.
3. Display a list of all logged on users including the command they are running at this very
moment.

4. Display your user’s name and your unique user identification (userid).

5. Use su to switch to another user account (unless you are root, you will need the password of
the other account). And get back to the previous account.

In this step when you only use su to switch to another user account, it still indicates the last user
that you use.

6. Now use su – to switch to another user and notice the difference.

In this case, when you use the su- the difference is that when you switch to the other user
account, the last account you used will not show up in the next root.
7. Try to create a new user account (when using your normal user account). This should fail.
(Details on adding user accounts are explained in the next chapter.)

8. Now try the same, but with sudo before your command.

You might also like