If you can see this check that

  • Javascript is enabled

Server Admin Tasks

In this tutorial you will be asked to perform simple user administration and user problem diagnostics. In this tutorial you will encounter a number of Linux commands that you may not have seen before, use the man command on your system to find out more about any Linux command that you are unsure of.

Each questions has 3 buttons. The first button sets up the scenario, the second button tests to see if you have fixed the problem, while the last button removes the scenario from your machine ready for the next scenario.

To reset all the check buttons from a previous attempt click here

Question 1 Split into 2 user groups

Click the button below to set up the scenario.

Tests: Ready
 
Erase scenario UNTESTED
Set up the scenario UNTESTED

Two users, bob and jim, currently share the same group id. User jim is being moved to another project, and he needs to be given his own group id.

Modify the user account information so that jim keeps his current user id but moves to a new group called "hoho". You have to create that new group. Make sure his home directory and all files are changed too.

This button checks to see if you have completed the task.

Tests: Ready
 
bob is untouched UNTESTED
group hoho exists UNTESTED
jim gid moved to 'hoho' UNTESTED
bobs files are all his UNTESTED
jims files are all his new group UNTESTED

Once you have completed the task, click on this button to remove the scenario.

Tests: Ready
 
None UNTESTED

Question 2 User bill cannot log in

This button below sets up the scenario.

Tests: Ready
 
Remove the scenario UNTESTED
Set up the scenario UNTESTED

User "bill" reports that when he tries to log in, the system immediately kicks him out. He tells you that his password is "bill" (i.e. the same as his username). He accidentally left himself logged in during a lab and maybe someone did something to his account?

You should never ask for a user's password to test something about their login. Instead, you can do

  sudo -u bill -i whoami
  

This runs the "whoami" command as user "bill", but the "-i" flag says that sudo should pretend to login as the user first. This means sudo runs all the login scripts and aliases a user gets when they log in. Without "-i" it just runs the command as that user without setting up the environment like "bill" would have.

If "bill" can log in properly and run commands, this sudo command will print the string "bill". If "bill" cannot log in properly then nothing will be printed.

HINT: As this is affecting only bill, check his shell (such as .bashrc or .bash_profile) files first. You can test the fault by trying to login as bill using ssh.

This button checks to see if you have completed the task.

Tests: Ready
 
bill can log in UNTESTED

Once you have completed the task, click on this button to remove the scenario.

Tests: Ready
 
Remove the scenario UNTESTED

Question 3 User ben cannot save his work

Press the button below to set up the scenario.

Tests: Ready
 
Remove scenario UNTESTED
Set up the scenario UNTESTED

User "ben" reports that after he logs in, he is unable to create any files or directories in his home directory. He tells you that his password is "ben" (i.e. the same as his username). Fix his account appropriately so he can create files and directories again in his home. Use the "sudo su - ben" to become ben and CTRL+D to return to alice as before to check your fix.

This button checks to see if you have completed the task.

Tests: Ready
 
ben can write files UNTESTED

Once you have completed the task, click on this button to remove the scenario.

Tests: Ready
 
Remove the scenario UNTESTED

Question 4 User amy cannot run ls

The button below sets up the scenario.

Tests: Ready
 
Remove the scenario UNTESTED
Set up the scenario UNTESTED

User "amy" reports that after she logs in, the "ls" command appears to do nothing. Her password is "amy". Restore the ls command behaviour to normal.

As always something like "sudo -u amy -i ls /" would demonstrate any issues after amy logs on.

HINT: Aliases can be used to change command behaviours. If you run "alias -p" as amy using sudo (remember the -i) maybe you can see something?

This button checks to see if you have completed the task.

Tests: Ready
 
Amy can get ls working UNTESTED
Amy still has some aliases UNTESTED

Once you have completed the task, click on this button to remove the scenario.

Tests: Ready
 
Remove the scenario UNTESTED

Alma 10 introPaths | BasicShell | Search
Alma 10 tutorials:intro1 | intro2 | wildcard | permission | pipe | vi | essential | admin | net | SELinux1 | SELinux2 | fwall | DNS | diag | Apache1 | Apache2 | log | Mail
Caine 10.0Essentials | Basic | Search | Acquisition | SysIntro | grep | MBR | GPT | FAT | NTFS | FRMeta | FRTools | Browser | Mock Exam
Caine 13.0Essentials | Basic | Search | Acquisition | SysIntro | grep | MBR | GPT | FAT | NTFS | FRMeta | FRTools | Browser | Registry | Mock Exam
Kali 2020-41a | 1b | 1c | 2 | 3 | 4a | 4b | 5 | 6 | 7 | 8a | 8b | 9 | 10
Kali 2024-41a | 1b | 1c | 2 | 3 | 4a | 4b | 5 | 6 | 7 | 8a | 8b | 9 | 10
UsefulPrivacy Policy | Terms and Conditions

Linuxzoo created by Gordon Russell.
@ Copyright 2004-2026 Edinburgh Napier University