What are /etc/passwd, /etc/shadow and /etc/group?
BeginnerConceptPermissions, Users & sudo
Answer
/etc/passwd:name:x:UID:GID:GECOS:home:shell, world-readable./etc/shadow: password hashes, ageing data, root-only (0640 root:shadowor0000)./etc/group:group:x:GID:members.
getent passwd alice
getent group docker
Use getent instead of grep so LDAP/SSSD users are included.
More on Permissions, Users & sudo
Explain the rwx permission model for files and directories.BeginnerHow does octal notation work in chmod?BeginnerWhat does chown do and who can run it?IntermediateWhat is umask and how is the final permission calculated?IntermediateWhat is SUID and give a real example?IntermediateWhat does SGID do on files versus directories?Intermediate