How many 'start' scripts are associated with 'runlevel 1'?

profilepattie.pepper
p16.docx

Practical 16

User Password

student Pug3t$ound!

root m7.r@!N!er

Commands Used:

ls <flag> <arg1 – path/resource>

1. Draw the Linux file structure including root, etc, home, and var, with etc having the profile file and httpd directory, home having your user and the student user's home directories, and var having the log directory. Inside the /etc/httpd directory should be the conf directory, which contains the httpd.conf file. Inside both the student and your user's home directories should be the .bash_profile file (/home/student/.bash_profile and /home/<youruser>/.bash_profile). Inside the /var/log directory should be the messages file.

I can do this one

2. What is the absolute path of the student user's .bash_profile from question 1?

3. If we are in the /home/student folder, what is the relative path of the student user's .bash_profile file from question 1?

4. If we are in /home/<youruser>, what is the relative path of the student user's .bash_profile file from question 1?

5. What is the command to 'list' 'show' or 'print to standard output' all the files in the student user's home directory?

6. What is the command to print the list of currently running processes and check to see if the Apache web server (whose service name in CentOS/RHEL is httpd) is running?

7. We are attempting to disable a user. We have opened the /etc/shadow file in vi and put an x into the password field, which will not allow the user to log into the system. When we move into command mode and press :wq the system errors that the file is read-only. What do we need to do to apply the desired change to our /etc/shadow file?