A technician is attempting to log in to a Linux server as root but cannot remember the administrator password. Which of the following is the LEAST destructive method of resetting the administrator password?
A.
Boot using a Linux live CD and mount the hard disk to /mnt. Change to the /mnt/etc directory. Edit the passwd file found in that directory.
B.
Reinstall the OS in overlay mode. Reset the root password from the install GUI screen.
C.
Adjust the GRUB boot parameters to boot into single-user mode. Run passwd from the command prompt.
D.
Boot using a Linux live CD and mount the hard disk to /mnt. SCP the /etc directory from a known accessible server to /mnt/etc.
A. While editing the passwd file could reset the root password, it's prone to error and could potentially corrupt the system if not done correctly.
B. Reinstalling the OS in overlay mode is unnecessary and involves reinstalling the entire operating system, which is very destructive and time-consuming for just resetting a password.
***C. Booting into single-user mode via GRUB and using the passwd command to reset the password is a standard method for resetting passwords on Linux systems.
D. Using SCP to copy the /etc directory from a known accessible server to the mounted hard disk could overwrite crucial system files and potentially cause system instability or corruption.
Among the options provided, the least destructive method to reset the administrator password without losing data or altering major system configurations is:
C. Adjust the GRUB boot parameters to boot into single-user mode. Run passwd from the command prompt.
Single-user mode allows you to log in to the system as the root user without requiring a password. Once in single-user mode, the passwd command can be used to change the root password.
The least destructive method of resetting the administrator password would be option C, adjusting the GRUB boot parameters to boot into single-user mode and running passwd from the command prompt. This method allows the technician to reset the root password without making any changes to the system's configuration files or reinstalling the operating system.
Option A involves editing the system's passwd file, which could potentially cause issues with user accounts and permissions.
Option B involves reinstalling the OS, which is a very destructive method and would result in data loss and a complete reset of the system.
Option D involves copying system configuration files from another server, which could potentially introduce new problems and is not a recommended method for resetting the root password.
upvoted 1 times
...
This section is not available anymore. Please use the main Exam Page.SK0-005 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
surfuganda
11 months agoKraken84
1 year, 3 months agogingasaurusrex
1 year, 10 months ago