Question: Note: You may need to stop, start, or restart services associated with each question ( sshd , rsyslog, xinetd, ntpd ) . You also need
Note: You may need to stop, start, or restart services associated with each
question sshd rsyslog, xinetd, ntpd You also need to install packages
telnetserver, telnet, nmap, xinetd using yum install pachagename.
Q Issue a command to synchronize your server once with time.jcccedu. Capture the
command you used and the output using Q
Q Configure your server to synchronize persistently only with time.jcccedu. Capture
your configuration using QVerify your server is synchronized with time.jcccedu using
QA
Q Configure lprinfo to send its log messages to varlogfinalout. Capture your
configuration using Q
Q Test your configuration using the logger utility with the content Testing lpr info
Capture your testing command and the output of the file final.txt using Q Verify the
existence of the file final.out using QA
Q Issue a command to display all files in your directory whose SUID and SGID both
are set are set. Capture the command and the output using Q
Q Create a user called finals, use a utility or edit the appropriate file so that user finals
does not need a password to log into the GUI. Capture the method you used using Q
You need to show that you can login without using a password by logging out and
logging in as finals, Capture using QA
Q Create another user called johns, set johns password to be abc Edit the sudoers
file so that johns can use the commands useradd and passwd without being a root user.
Capture your implementation using Q
Test your implementation by logging out and logging in as johns, without being a root,
use useradd and the passwd command to create a user called jony with password
abc Capture the process using QA
Q Setup the maxlogins hard limit for user johns to Login as johns, try to ssh to the
localhost using johns as the user id Capture the implementation using Q and capture
the ssh attempt using QA You should not be able to complete the log in process. You
may need to make your implementation as comment after you finish this Question.
Q Enable the server telnet on the xinetd configuration file or using individual file. You
may need to install packages xinetd telnetserver, telnet and restart services. Capture
your configuration using Q Telnet to the dhcp ip address of your ens NIC. Login as
johns, capture the telnet session using QA A basic telnet file which need modification is
provided below.
Q Configure TCP wrapper so that no one can connect to the sshd server using ssh
Capture your implementation using Q Test your implementation by trying to ssh to the
localhost as user You should not be able to connect if you are already logged in as
user Capture the ssh process using QA You may want to make your implementation
as a comment after you complete this question.
Q Generate ssh publicprivate key pairs which can be used by the client johns. Capture
the command you used using Q Display the name and locations of these keys using
QA Display the content of the private key using QB Attempt to ssh to the localhost
using the user johns. Capture the result using QC
Q Using gpg generate a key pair for the user jony use bits. List the key pairs
generated for user jony Use the pass phrase abc Capture the process using Q
showing the key pair.
Q Create a file called message with the content Jony Final Exam Fall
Encrypt this file using jony public key. Capture the encryption process using Q
Display the content of the encrypted file using QA
service telnet
disable no
flags REUSE
sockettype stream
user root
wait no
server usrsbinintelnetd
logonfailure USERID
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
