Kali Linux Users and Groups: Review Access Before Changing Accounts
Users, groups and privilege rules answer different access questions on Kali Linux. A user record identifies an account, a group record describes one part of membership, and the credentials of a running process determine relevant checks. This guide uses invented account and group records to reason about a report file.
Topic: Security Tools, Authorized Labs & CTFs in Cybersecurity & Ethical Hacking · Explainer
Also covers: Linux Administration
Quick answer: Users, groups and privilege rules answer different access questions on Kali Linux. A user record identifies an account, a group record describes one part of membership, and the credentials of a running process determine relevant checks. This guide uses invented account and group records to reason about a report file. It then adds directory permissions, ACLs and sudo policy to show why a short account listing is not enough to approve broad access changes.
Key takeaways
- Use named accounts for accountable access.
- Primary and supplementary groups are different records.
- A group file alone may not describe a running process’s credentials.
- File access also depends on directories, ACLs and other policy.
- Administrative privilege deserves a separate task-specific review.
Table of Contents
- Why does Kali’s account context matter?
- What can account and group records tell you?
- Who could read the fictional review file under basic mode rules?
- Why might a running session differ from a membership worksheet?
- Which other controls can change the basic permission answer?
- Why should sudo access be reviewed separately?
- What should an access review record from start to finish?
- References
Why does Kali’s account context matter?
The Kali account defaults explains Kali’s non-root policy and image-dependent account defaults. A training VM inherited from someone else may also contain custom users, keys or privilege rules. Review the actual environment before assuming that changing one password completes its access setup.
For shared work, named accounts make ownership and review easier than a password used by an entire class. They do not automatically provide isolation: shared groups, accessible project directories and broad administrative rights can still expose material. Begin by listing who needs which task and which data. Then review how the account, group and privilege arrangements support those needs instead of creating accounts from a generic command recipe.
What can account and group records tell you?
The Account file format explains the account record fields, including numeric user and primary group identifiers. The Group file format describes group records and their member list. Primary group membership may be represented through the account’s GID rather than appearing as a username in that group’s member list.
Use invented records for the first exercise. Maya’s account has UID 1101 and primary GID 310. Omar has UID 1102 and primary GID 320, while the reviewers group with GID 310 lists Omar as a member. That is enough to explain the intended group relationship in the worksheet. It does not prove the effective credentials of a process already running on an actual shared system.
| Invented account | Primary group | Additional worksheet membership |
|---|---|---|
| Maya, UID 1101 | reviewers, GID 310 | None listed |
| Omar, UID 1102 | students, GID 320 | reviewers, GID 310 |
| Lee, UID 1103 | students, GID 320 | None listed |
Who could read the fictional review file under basic mode rules?
Assume review.txt belongs to Maya and group reviewers, with mode 640. Also assume the path’s directories allow the relevant traversal, no ACL changes the result and no additional policy denies access. Under those stated assumptions, Maya has owner read/write access, and Omar matches the file’s group for read access. Lee has no permission through the other category.
The assumptions are part of the answer, not optional footnotes. If the exercise does not specify directory access or additional controls, say the result is incomplete. A useful learner response explains the category used for each account instead of simply saying the file is “secure.” The intended business requirement still needs confirmation from the owner.
| Person | Matching basic permission category | Result under stated assumptions |
|---|---|---|
| Maya | Owner: read and write | Can read and modify the file |
| Omar | Group: read | Can read but not modify it through these mode bits |
| Lee | Other: no permissions | No access through these basic mode bits |
Why might a running session differ from a membership worksheet?
The User and group identity reporting distinguishes user and group identity reporting, including the current process context and named-user information. A group membership change does not imply that every existing process instantly acquired the new credentials. The timing and context of the observation therefore matter.
For a real review, ask which account and session are attempting access, and whether the evidence describes that process or a directory-service record. Local files may also be only part of the identity system. Keep authentication, group assignment and application authorisation as separate questions. A successful login does not prove that the person should read a particular project report or administer the machine.
Which other controls can change the basic permission answer?
The Path resolution and directory permissions explains why directory traversal matters when resolving a path. Read permission on a final file is not enough if the process cannot search a required directory. That is a common reason a simple mode calculation and an actual access attempt appear to disagree.
The POSIX access control lists describes finer-grained discretionary permissions and masks. An ACL can add information missing from a short owner/group/mode summary. Other system and application policies may also matter. Investigate the relevant evidence instead of broadening permissions to make the error disappear. In a training worksheet, state those additional conditions explicitly so a simplified example is not mistaken for a complete real-system access audit.
Why should sudo access be reviewed separately?
The Sudo privilege policy documents policy controlling sudo privileges. Membership in a project reading group is a different decision from permission to execute administrative operations. Giving a learner broad privilege because one file is unreadable can defeat the intended separation and obscure the actual permission problem.
Describe the administrative task precisely, including the command’s behaviour, arguments and ability to read or alter other resources. A narrow-looking rule can still grant broad effects if the allowed program supports shell escapes or unrestricted file writes. Have an experienced administrator review the policy and validation plan. This article uses no sudoers edits, account creation or privilege changes to demonstrate the reasoning.
What should an access review record from start to finish?
For each person, record the task, data owner, required access, approval, expiry or review point and verification evidence. Review accounts when a project changes and when someone leaves. Removing an account is not identical to deciding what happens to its files, owned processes, keys, backups or retained evidence.
Return to the report example: if Omar only needs to review one project, first confirm whether membership in reviewers also exposes unrelated reports. A group name that sounds appropriate may cover too much data. The final recommendation should explain the smallest access arrangement that meets the task, what remains unverified and who will approve any actual change.
Related reading: Choose the account file-format manual; Separate client-data access by project.
References
Frequently Asked Questions
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Wow
0
Sad
0
Angry
0