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

Feature request: Direct UID/GID use for -Z option #815

Open
malvidin opened this issue Dec 19, 2019 · 0 comments
Open

Feature request: Direct UID/GID use for -Z option #815

malvidin opened this issue Dec 19, 2019 · 0 comments

Comments

@malvidin
Copy link

Please add an option to directly use a user ID and group ID with the -Z/--relinquish-privileges option.

With the following commands:

# tcpdump -c 10 -w output_file_1 -Z 900:990
# tcpdump -c 10 -w output_file_2 -Z 901
# tcpdump -c 10 -w output_file_3 -Z :991

I would expect the output files to have permissions like this.

# ls -la
-rw-r-----. 1 900  990  1000 Dec 19 10:20 output_file_1
-rw-r-----. 1 901  root 1000 Dec 19 10:20 output_file_2
-rw-r-----. 1 root 991  1000 Dec 19 10:20 output_file_3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants