A developer is unable to access a Linux server via SSH. Given the following output:
SSH server configuration (/etc/ssh/sshd_config):
PermitRootLogin no
PubkeyAuthentication yes
PasswordAuthentication yes
GSSAPIAuthentication yes
X11Forwarding no
User Information (/etc/passwd):
developer:x:1000:1000:comptia:/home/developer:/bin/bash
User Shadow File (/etc/shadow):
developer:!!::0:99999:7:::
Which of the following explains why the developer is unable to log in to the server?
The reason the developer cannot log in is because their account is locked. This is indicated by the '!!' in the /etc/shadow file:
developer:!!::0:99999:7:::
The '!!' in the password field means the account is locked, and the user cannot authenticate using a password.
To unlock the account, the administrator must reset the password:
passwd developer
OR, if SSH key authentication is used, the administrator can remove the lock without setting a password:
usermod -U developer
Why the other options are incorrect?
A . The developer's private key has been deleted from the server. Incorrect, because the login attempt is failing before key authentication even starts.
C . The developer's public key is in the wrong location. Incorrect, because the SSH configuration (PubkeyAuthentication yes) allows key-based authentication, but the user is still unable to log in. The issue is with the account lock.
D . SSH has been disabled for user log-in. Incorrect, because PasswordAuthentication yes confirms SSH is enabled for users (except root).
CompTIA Linux+ Official Documentation
Linux User Management -- Red Hat
A systems administrator created a user cron to run a scheduled database backup cronjob on the server at 1 a.m. every day. The following is the cronjob syntax:
0 1 * * * /bin/sh backup.sh
The backups, however, are not being created. When checking the crontab file, the administrator sees the following error:
/var/spool/cron/crontab/cron: Permission denied
Which of the following will permit the cronjob to execute?
The error indicates that the cron user does not have permission to run the cronjob. Creating a cron.allow file and adding the user cron to it will allow that user to run cronjobs. The cron.allow file is a security feature that controls which users are allowed to use cron.
A Linux administrator is creating a primary partition on the replacement hard drive for an application server. Which of the following commands should the administrator issue to verify the device name of this partition?
The commandsudo fdisk -lshould be issued to verify the device name of the partition. Thesudocommand allows the administrator to run commands as the superuser or another user. Thefdiskcommand is a tool for manipulating disk partitions on Linux systems. The-loption lists the partitions on all disks or a specific disk. The commandsudo fdisk -lwill show the device names, sizes, types, and other information of the partitions on all disks. The administrator can identify the device name of the partition by looking at the output. This is the correct command to use to accomplish the task. The other options are incorrect because they either do not list the partitions (sudo fdisk /dev/sdaorsudo fdisk -h) or do not exist (sudo fdisk -s /dev/sda).Reference:CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 10: Managing Storage, page 317.
A systems administrator is working on an SFTP server configuration. Which of the following commands will best enable the connectivity to that service from the 10.10.0.0/24 network?
Step-by-Step Comprehensive Detailed
Command
A: This command explicitly allows traffic from the 10.10.0.0/24 network to port 22 (SSH/SFTP).
Why Other Options are Incorrect:
B: Does not specify the source network.
C: Does not specify the port.
D: Syntax is invalid for ufw.
CompTIA Linux+ Study Guide: Firewall Management
man ufw
Which of the following Git commands would send committed changes to a remote repository?
Comprehensive and Detailed Step-by-Step
git push origin master pushes committed changes to the remote repository.
git stash temporarily saves changes but does not push them.
git commit -a commits changes but does not send them to the remote repository.
git add . stages changes but does not commit or push them.
Blair
9 days agoJonell
2 months agoMaddie
3 months agoTrina
4 months agoMicheline
5 months agoAlona
5 months agoLanie
6 months agoVeronica
6 months agoLashon
6 months agoViki
7 months agoNenita
7 months agoNoe
7 months agoMyong
8 months agoFlo
8 months agoCristy
8 months agoOmega
9 months agoLore
9 months agoGarry
9 months agoLynette
9 months agoKrissy
9 months agoMiriam
10 months agoVeda
10 months agoRickie
11 months agoQueen
12 months agoLeota
12 months agoYolando
12 months agoMatilda
12 months agoLynette
1 years agoFabiola
1 years agoValentine
1 years agomeezo
1 years agohekeho
1 years agoMark james
1 years agotokyo
1 years agoarmstrong
1 years ago