Question: Please help: PART I Linu x System Administration 1. Login as root, use groupadd command to add a group called groupx where x is your
Please help:
PART I
Linux System Administration
1. Login as root, use groupadd command to add a group called groupx where x is your group number. For example,
groupadd group4 (create a group called group4)
2. Use useradd command to add an user account for you in the group, name your account using your surname plus the first letter of your first name, and use passwd command to set labuser as password. For example,
useradd -g group4 zeta (create a user called zeta in group4)
passwd zeta (change the password of user zeta)
3. Linux supports virtual terminals. Use Alt+F2 to change to another terminal and see if you can login use your username and password.
4. Use Alt+F1 to switch back to your first virtual terminal, where you logged as root. Use
who or users to check all the users who are logged in.
5. To send a message to all the users, use wall command.
6. Familiar yourself with other group and user related commands, e.g. userdel, usermod, userdel, groupdel, chgrp, groups .
7. In Linux, you can use which and whereis to locate the full path of system commands. Find out the path information of above group and user related commands.
8. Use find command to search for the location of httpd.conf, named.conf, resolv.conf, and smb.conf files. For example, following is to search a file called index.html in root directory (/) and all its sub-directories, and print the results.
find / -name index.html -print
9. To clean up the screen, type clear.
10. Daemons are processes which run all the time in the background. For example, syslogd is system log daemon, lpd is line printer daemon , httpd is http web server daemon etc. Use top program to dynamically display the system resource usage and all the running daemons. In top program, type h for help and q to quit.
11. Use ps or ps -aux to check what processes are running. Please note the every process has its own process ID number (PID), write down some examples in your log book.
12. To terminate a process, use kill command. For example, kill 901 will terminate a program whose PID number is 901. Let the top program running under one terminal, and try to find out it PID number and kill it from another virtual terminal.
13. In the case when kill command itself doesnt work, try kill -1 901 or kill -HUP 901.
14. To log out, press Ctrl + D.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
