What is the output of the command ls -l for a file with permissions -rwxr-x--x?
Specifically, what does the permission string rwxr-x--x mean for the file owner, group, and others?
Remember the order of permissions is read (r), write (w), and execute (x) for owner, group, and others.
The permission string -rwxr-x--x means:
- Owner:
rwx= read, write, execute - Group:
r-x= read, no write, execute - Others:
--x= no read, no write, execute only
Which of the following statements about the sudo command in Linux is correct?
Think about how sudo helps users perform tasks requiring higher privileges.
sudo lets authorized users run commands as root or another user after entering their password. It does not grant permanent root access or change file ownership.
Given the following iptables rule, what is its effect?
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
Consider the chain INPUT and the target ACCEPT.
The rule appends (-A) to the INPUT chain a rule to accept TCP packets destined for port 22, which is the default SSH port.
Which of the following best describes the difference between password-based and key-based SSH authentication?
Think about how SSH keys work compared to passwords.
Password-based authentication requires the user to enter a password. Key-based authentication uses a pair of cryptographic keys (private and public) to authenticate automatically without typing a password.
Which of the following actions would most effectively reduce the risk of unauthorized root access on a Linux server?
Consider the principle of least privilege and secure remote access.
Disabling root login over SSH prevents direct root access remotely. Using sudo allows controlled, logged administrative access, reducing risk.