If you can see this check that

next section prev section up prev page next page

Diagnosing user problems


Server Admin Tasks

User:
Password:

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.

Question 1: Split into 2 user groups

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.

Edit the information, and change file ownerships for jim, so that jim keeps his current user id but moves to a new group called "hoho". Hint: you will need to add the new gid to jims' entry in /etc/passwd then use the chgrp command to alter the group ownership of his files.

Tests - not attempted
Set up the scenario UNTESTED

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

Tests - not attempted
bob is untouched 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 - not attempted
Remove the scenario UNTESTED

Question 2: User bill cannot log in

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?

HINT: As this is affecting only bill, check his shell (such as .bashrc or .bash_profile) files first.

Tests - not attempted
Set up the scenario UNTESTED

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

Tests - not attempted
bill can log in UNTESTED

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

Tests - not attempted
Remove the scenario UNTESTED

Question 3: User ben cannot save his work

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). You will need to be familiar with the chmod command used to change file permissions. Try looking at http://www.dsl.org/cookbook/cookbook_toc.html for more info.

Tests - not attempted
Set up the scenario UNTESTED

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

Tests - not attempted
ben can write files UNTESTED

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

Tests - not attempted
Remove the scenario UNTESTED

Question 4: User amy cannot run ls

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

HINT: Aliases can be used to change command behaviours.

Tests - not attempted
Set up the scenario UNTESTED

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

Tests - not attempted
Amy can get ls working UNTESTED

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

Tests - not attempted
Remove the scenario UNTESTED

Question 5: User ann need web pages to work

User "ann" has a html document in /home/ann/public_html/demo.html. What should happen is that running a browser and directing it to
http://host-YOURMACHINE/~ann/demo.html
should allow her web page to be seen. Your machine's http address can be found on your VM management page (View VM web pages, near the bottom of the page).

In order for this to work, you need to:

  1. Edit the httpd.conf file in apache and remove the line "UserDir disable" (or simply comment it out by putting a hash or '#' character in front of it.
  2. Your apache server (called httpd) has to be running.
  3. The user in question must give other and group read and execute access to their home directory, their public_html directory, and the files that are in public_html.
Tests - not attempted
Set up the scenario UNTESTED

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

Tests - not attempted
Ann can see her web pages UNTESTED

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

Tests - not attempted
Remove the scenario UNTESTED


Tutlinks: intro1 intro2 wildcard permission pipe vi essential admin net fwall DNS diag Apache1 Apache2 MySQL1 MySQL2
Useful: Quiz Forums
Site Links:XMLZoo ActiveSQL ProgZoo SQLZoo