Chap10HandsOnProjects

docx

School

Brigham Young University, Idaho *

*We aren’t endorsed by this school

Course

352

Subject

Computer Science

Date

Dec 6, 2023

Type

docx

Pages

3

Uploaded by calebhatchcontact

Report
CIT 352 Chapter 10 Name: Type your responses in red to help TA grade your assignment. Complete all Projects by executing every step in each project. For those steps listed below, follow the specified instruction. Project 10-1 Step 10 How long will they remain in the queue and why? Until printer1 is enabled Project 10-2 Step 4 Why aren’t the two other print jobs (from Project 10-1 exercise) in the printer1 queue shown? They were cancelled Project 10-3 Step 2 What is the file type? A log config file Which daemon on Ubuntu Server 14 Linux uses his file? rsyslogd What is its purpose? Storing logs Project 10-4 Step 9 Note: Newer versions of Fedora have removed this file. If you get a "No such file or directory" error, use this as the contents of the file when doing this step: [user1@localhost ~]$ cat /etc/cron.daily/logrotate #!/bin/sh /usr/sbin/logrotate /etc/logrotate.conf EXITVALUE=$? if [ $EXITVALUE != 0 ]; then /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]" fi exit $EXITVALUE Step 10 How often are log files rotated? Every 4 weeks How many copies of old log files are kept by default? All Project 10-5 Step 5 Who is the owner and group owner of this file? root 1
Who has permission to read this file? No one does Then, why are you able to read this file? By default, no one can read or write in the file. Root is the only one who can read the file Project 10-6 Step 11: Fill the table below regarding /etc/shadow file fields Field Command to change Meaning 1st Usermod -l User’s unique identifier 2nd passwd Key for the user to log in 3rd The same as above Date of last password change 4th Chage -m Minimum days until a password change can occur 5th Chage -M Maximum days until a password change is required 6th Chage -W Number of days until the system will warn the user that their password is going to expire 7th Chage -l Number of days after the password has expired until the account is disabled 8th Chage -E When the account will expire 9th No command Reserved Project 10-7 Step 13: After all the steps were executed in Step 13, do the following. Login as bozo with an incorrect password What error message did you receive? The sign in prompt again What can you say about the security of blocking user login by changing the user shell to an invalid shell? It protects the system from an unauthenticated user Project 10-8 Step 5 What does -m option do? It’s a flag to state that a home directory is to be created What does -u option do? It’s a flag to state a new UID Project 10-9 Step 10: After all the steps were executed in Step 10, do the following. Exit from the current BASH shell Create an empty file called file3 Who is the group owner of file3? bozoette 2
How can you terminate the temporal change in the primary group owner effected by newgrp command? Run newgrp again with no added options At Step 11, skip the first exit command as you have done it through this exercise Command Reference (List all new commands you learned in this chapter) Id Groupdel Chage Chsh Usermod 3
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help