It is in the test file named ‘/etc/passwd’ that Linux usually keeps its user account details, including the one-way encrypted passwords. However, this file can be accessed with the help of different tools, which might throw security issues.
To minimize this risk, we will make use of the shadow password format that saves the account details in a regular file /etc/passwd as in the traditional method but with the password stored as a single ‘x’ character, i.e., it is not the original password that is actually stored in this file. Meanwhile, a second file /etc/shadow will have the encrypted password, along with the other relevant information, such as the account/password expiration date, etc. Most importantly, the latter file is readable only by the root account, and thus it minimizes the security risk.
Posted Date:- 2021-08-26 07:17:22
What is the use of ‘tac’ command?
How to print the content of line 5 to 10 from one file to another?
Explain the usage of ‘head’ and ‘tail’ commands.
What is the purpose of the ‘touch’ command?
What is the significance of file extensions like .txt, .png, etc in Linux?
What are the different file ownerships in Linux?
In Linux, how do you stop a running process?
Explain the /proc file system?
List out some Linux distributors?
How are shadow passwords given in Linux?
What is the name and path of the main system log?
How will you setup Password Aging in Linux?
Can we terminate an ongoing process in LINUX?
Are there any Environmental variables in LINUX?
How are drives represented in LINUX?
How can we refer to the parallel ports in LINUX?
What is the size of a Swap Partition in LINUX?
What are absolute and relative paths?
What are the advantages of the GNU project?
Explain various file permissions in Linux?
How to delete a non-empty directory?
Mention some Linux file content commands?
What is the role of the cp command in Linux?
How can we lock the user account in Linux?
Please explain how to enable curl on Ubuntu LAMP stack and root logging in Ubuntu?
Can you tell what does a nameless directory represents in Linux?
Tell us how you will execute more than one command or program from a single command line entry.
What are the contents of /usr/local?
How to check the OS version in Linux?
How to download the file using CLI?
What is the procedure to set the umask permanently for a user?
What is the difference between the home directory and the working directory?
What is the root account in Linux?
How to print the current working directory in Linux?
Why should you avoid Telnet to administer a Linux system remotely?
What are the three standard streams in Linux?
How to check first few and last few lines of any linux file?
What is the role of case sensitivity in affecting the way commands are used?
How can you enhance the security of the password file in Linux?