Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Operations running with user in multiple groups can fail due to inability to retrieve user groups by FS #25

Open
denismo opened this issue Jul 16, 2013 · 2 comments

Comments

@denismo
Copy link
Owner

denismo commented Jul 16, 2013

For example, chown only allows changing to the groups that the user belongs. If the user is in multiple groups, he can change between them. However, the fstest will fail (chown/00.t, 36) because FS can only get the number of the first group.

@denismo
Copy link
Owner Author

denismo commented Jul 20, 2013

Found that the groups can be identified by reading the process record: os.system('cat /proc/%d/task/%d/status' % (pid, pid))
This prints:
...
Groups: 65532 65533 65534
...

@denismo
Copy link
Owner Author

denismo commented Jul 20, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant