Question

Given the following records, please explain what each field means. A record from passwd file: testaccount:x:1001:1001:This...

Given the following records, please explain what each field means.

  1. A record from passwd file:

testaccount:x:1001:1001:This is a test account:/home/testaccount:/bin/bash

  1. A record from shadow file:

testaccount:$6$rRkFTUEC$VJpiBPqh8bABn8I89245f:106691:0:999999:7:::

0 0
Add a comment Improve this question Transcribed image text
Answer #1

For the given record,

testaccount:x:1001:1001:This is a test account:/home/testaccount:/bin/bash

testaccount - This is the username of the system.

x - This represent that the passwords encrypted version is stored in the shadow folder

1001 - This is the UID ( User ID), 0-999 are reserved by the administrator and 0 is given for root.

1001 -​​​​​ This is the group ID ( GID ) of the user in this system.

This is a test account - Here we have the User's information in details like name, number etc based on whatever have been stored on the system

/home/testaccount - This is the home directory of the user, it will be a absolute address Starting from root directory

/bin/bash - Absolute path of the command, most commonly it's the shell that it refers to but it doesn't necessarily has to be.

Now for the same data record, from the shadow file of the same password field.

testaccount:$6$rRkFTUEC$VJpiBPqh8bABn8I89245f:106691:0:999999:7:::

testaccount - User name on the system for the user

$6$rRkFTUEC$VJpiBPqh8bABn8I89245f - This is the encrypted password of your and the first $6$ represent that the encryption standard is SHA-512 There is a table for this in each system.

106691 - Last Password Change ( Update) and it's measured as Days since Jan 1, 1970 that password was last changed

0 - The minimum number of days required between password changes. This is usually 0 only.

999999 - The max number of days the password is valid (after that user is forced to change his/her password). This number represent that there is no limit.

7- This is the warning buffer, it's like 7 days before your password is going to expire you'll be warned about it

Rest two : : : which aren't present are the number of days after Password expiring we'll wait to disable the account. And The absolute expiration date of password.

Some of the Feild don't seems to be useful for a single personal system but are very useful in a industrial set up.

Hope it helps.

Add a comment
Know the answer?
Add Answer to:
Given the following records, please explain what each field means. A record from passwd file: testaccount:x:1001:1001:This...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Linux systems keep user account information in the passwd file and the encrypted password in the...

    Linux systems keep user account information in the passwd file and the encrypted password in the shadow file. The passwd file containing account information might look like this: smithj:x:1001:1001:John Smith:/home/smithj:/bin/bash The shadow file containing password and account expiration information for users might look like this: smithj:KJDKKkkLLjjwlnttqoiybnm.:10063:0:99999:7::: The fields in the shadow file are separated by a colon, with the first field being the username and the second the password. Under normal circumstances, the password is encrypted but for the purpose...

  • I need help with my homework assignment Linux systems keep user account information in the passwd...

    I need help with my homework assignment Linux systems keep user account information in the passwd file and the encrypted password in the shadow file. The passwd file containing account information might look like this: smithj:x:1001:1001:John Smith:/home/smithj:/bin/bash The shadow file containing password and account expiration information for users might look like this: smithj:KJDKKkkLLjjwlnttqoiybnm.:10063:0:99999:7::: The fields in the shadow file are separated by a colon, with the first field being the username and the second being the password. Under normal circumstances,...

  • Exercise 1: Write a shell script that loops through the /etc/passwd file one line at a...

    Exercise 1: Write a shell script that loops through the /etc/passwd file one line at a time. Prepend each line with a line number followed by a colon and then a space. Example output: 1: root:x:0:0:root:/root:/bin/bash 2: daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin 3: bin:x:2:2:bin:/bin:/usr/sbin/nologin 4: sys:x:3:3:sys:/dev:/usr/sbin/nologin Exercise 2: Write a shell script that asks the user for the number of lines they would like to display from the /etc/passwd file and display those lines. Example output: How many lines of /etc/passwd would you like...

  • UNIX File Permission help, please answer the questions in the green boxes. Thank you Lab 03...

    UNIX File Permission help, please answer the questions in the green boxes. Thank you Lab 03 File Permissions In this lab we will: learn about file permissions learn to create symbolic links and hard links Utilities that will be utilized in this Lab: us, cd, less, cat touch, chmod id umask, mkdir, In, echo and redirection Users and Groups Linux supports several methods of controlling access to files an directories. In this lab we are going to learn the traditional...

  • please solve the following, and explain what each means please. Problem 1) Classify the following sets...

    please solve the following, and explain what each means please. Problem 1) Classify the following sets as either tabular or rule-based defined, countable or uncountable, and finite or infinite. a) A= {20, 21, 22, ...} b) B= (5, 8, 9, 15} c) C= {0.1 <cs2.1} d) D= (3, 5, 7, 9, 11, 13} e) E-{3<e < 102} (only integers) %3D Problem 2) How many possible subsets can you create using the following universal set S? S= {2, 3, 4, 5,...

  • R code explain please. Please explain what “factor”, “tapply”, “residuals” means. Please explain the code in...

    R code explain please. Please explain what “factor”, “tapply”, “residuals” means. Please explain the code in the photo precisely. MAST20005/MAST90058: Week 9 Lab Goals: (i) Analysis of variance, (i) Study the distribution of the test statistics and p-values through simulations; (ii) Compare tests by simulating power curves. Data for Section 1: Corn data (corn.txt). The yield obtained, in bushels per acre, of 4 test plots for each of 4 different varieties of corn. The data file can be obtained from...

  • In C++, You are given a file of customer data with records in the following format...

    In C++, You are given a file of customer data with records in the following format : account number, last name, first name, middle name. Write a program to convert the input data and display it to the monitor in the following format : Accout Name     Logon ID Initial Pswd 21-88282712-B Keith S. Adams ADAM21 Adam88282 08-36847734-A John R. Sturm STUR08 Stur36847    etc. Notes :     1) The account number on the input is 10 digits     2)  The names on...

  • 1. Write 4 simple shell scripts. Each question will ask you to write one or more...

    1. Write 4 simple shell scripts. Each question will ask you to write one or more command lines to solve a problem. Put the command(s) from each problem into a file named problem1.sh, problem2.sh Note that if you want your script to be interpreted by bash, each file should start with the line: #!/bin/bash and will have one (or more, as needed) commands following it. To execute each script in bash, so you can determine if it is working or...

  • Write a modularized, menu-driven program to read a file with unknown number of records.

    ==============C++ or java================Write a modularized, menu-driven program to read a file with unknown number of records.Create a class Records to store the following data: first and last name, GPA , an Id number, and an emailInput file has unknown number of records; one record per line in the following order: first and last names, GPA , an Id number, and emailAll fields in the input file are separated by a tab (‘\t’) or a blank space (up to you)No error...

  • Please answer the following questions because I am not understanding it Description Investigate UNIX/Linux Files Systems...

    Please answer the following questions because I am not understanding it Description Investigate UNIX/Linux Files Systems by answering the questions below Requirements  Save the recorded information in an ASCII file named “prog2.txt”. The file, “prog2.txt”, must be located in the directory: $HOME/itec400/homework  Make sure the permissions on “prog2.txt” are set to 705.  Solutions to problems below may require research on the web  Record the questions below and the answers in “prog2.txt”. 1. What is the purpose...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT