I am learning more about Linux user and groups in depth and noticed fourth field in both /etc/gshadow/ and /etc/group are exactly same.

Do they have any difference or is there any special reason why it is duplicated in both file?


The 4th field is a list of users that are members of the identified group. You can get a description of these two files with

man 5 group  
man 5 gshadow  

I suspect the values in the two fields are the same for convenience. I don't offhand know what happens if the two lists are different.

  • 3
    This sounds like a Bad Thing and Random Problems Waiting To Happen. If only there was a proper user database for Unix systems :-( – David Tonhofer Nov 21 '17 at 11:52
  • @DavidTonhofer Like windows registry haha – VarunAgw Nov 22 '17 at 21:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.