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 -U #213

Open
malvidin opened this issue Dec 19, 2019 · 1 comment
Open

Feature request: Direct UID/GID use for -U #213

malvidin opened this issue Dec 19, 2019 · 1 comment
Assignees

Comments

@malvidin
Copy link

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

With the following commands:

# tcpflow -w output_file_1 -U 900:990
# tcpflow -w output_file_2 -U 901
# tcpflow -w output_file_3 -U :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
@simsong
Copy link
Owner

simsong commented Dec 19, 2019

Great idea. Can you submit a pull request with the modification?

@simsong simsong assigned simsong and malvidin and unassigned simsong Dec 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants