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
(telnet-server, telnet, nmap, xinetd) using yum install pachage_name.
Q1. Issue a command to synchronize your server once with time.jccc.edu. Capture the
command you used and the output using Q1.
Q2. Configure your server to synchronize (persistently) only with time.jccc.edu. Capture
your configuration using Q2.Verify your server is synchronized with time.jccc.edu using
Q2A.
Q3. Configure lpr.info to send its log messages to /var/log/final.out. Capture your
configuration using Q4.
Q4. 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 Q5. Verify the
existence of the file final.out using Q4A.
Q5. 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 Q5.
Q6. 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 Q6.
You need to show that you can login without using a password by logging out and
logging in as finals, Capture using Q6A.
Q7. Create another user called johns, set johns password to be abc123. Edit the sudoers
file so that johns can use the commands useradd and passwd without being a root user.
Capture your implementation using Q7.
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 jony1 with password
abc123. Capture the process using Q7A.
Q8. Setup the maxlogins hard limit for user johns to 1. Login as johns, try to ssh to the
localhost using johns as the user id. Capture the implementation using Q8, and capture
the ssh attempt using Q8A. 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.
Q9. Enable the server telnet on the xinetd configuration file or using individual file. You
may need to install packages (xinetd, telnet-server, telnet) and restart services. Capture
your configuration using Q9. Telnet to the dhcp ip address of your ens160 NIC. Login as
johns, capture the telnet session using Q9A. A basic telnet file which need modification is
provided below.
Q10. Configure TCP wrapper so that no one can connect to the sshd server using ssh.
Capture your implementation using Q10. Test your implementation by trying to ssh to the
localhost as user1. You should not be able to connect (if you are already logged in as
user1). Capture the ssh process using Q10A. You may want to make your implementation
as a comment after you complete this question.
Q11. Generate ssh public/private key pairs which can be used by the client johns. Capture
the command you used using Q11. Display the name and locations of these keys using
Q11A. Display the content of the private key using Q11B. Attempt to ssh to the localhost
using the user johns. Capture the result using Q11C.
Q12. Using gpg generate a key pair for the user jony1, use 1024 bits. List the key pairs
generated for user jony1. Use the pass phrase abc123. Capture the process using Q12
showing the key pair.
Q13. Create a file called message with the content Jony1 Final Exam Fall 2016.
Encrypt this file using jony1 public key. Capture the encryption process using Q13.
Display the content of the encrypted file using Q13A.
service telnet
{
disable = no
flags = REUSE
socket_type = stream
user = root
wait = no
server =/usr/sbin/in.telnetd
log_on_failure += USERID
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!