Last active
March 19, 2017 16:52
-
-
Save cleverca22/5711322b5a12311571d8e828f40f0603 to your computer and use it in GitHub Desktop.
wireshark no root
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ ... }: | |
{ | |
security.setuidOwners = [ | |
{ | |
program = "dumpcap"; | |
owner = "root"; | |
group = "wireshark"; | |
setuid = true; | |
setgid = false; | |
permissions = "u+rx,g+x"; | |
} | |
]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs, ... }: | |
{ | |
security.wrappers.dumpcap = { | |
source = "${pkgs.wireshark}/bin/dumpcap"; | |
permissions = "u+xs,g+x"; | |
owner = "root"; | |
group = "wireshark"; | |
}; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ ... }: | |
{ | |
users.extraUsers.clever.extraGroups = [ "wireshark" ]; | |
users.extraGroups.wireshark.gid = 500; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment