Compare commits

...

4 Commits

Author SHA1 Message Date
332f40265d tout le monde peut exécuter mtr sans sudo 2016-09-10 15:27:35 +02:00
Yves Dubromelle
781973228f parce-que je m'ennuie à l'aéroport :) 2016-09-04 10:21:36 +02:00
Yves Dubromelle
65e1c6ff0e utilisation de slock sans sudo -> wrapper setuid 2016-08-27 19:39:13 +02:00
b42c8e3080 tout le monde peut faire 'sudo slock' 2016-08-27 18:11:11 +02:00
3 changed files with 7 additions and 0 deletions

View File

@@ -18,4 +18,5 @@ mkIf profiles.isDesktop {
slock # vérouiller l''écran. "cannot disable the out-of-memory killer for this process (make sure to suid or sgid slock)" --> en root
yubikey-personalization-gui # utilisation de la clef Yubikey
];
security.setuidPrograms = [ "slock" ];
}

View File

@@ -49,6 +49,7 @@ in
];
shellAliases = {
byobu = "byobu-tmux";
jacques-a-dit = "sudo";
tree = "tree -C";
tree1 = "tree -d -L 1";
tree2 = "tree -d -L 2";
@@ -58,6 +59,10 @@ in
};
etc.gitconfig.text = builtins.readFile ./gitconfig;
};
# programmes qui n'ont pas besoin de sudo pour fonctionner
security.setuidPrograms = [
"mtr"
];
programs.bash = {
enableCompletion = true;
promptInit = builtins.readFile ./bash-prompt.sh;

View File

@@ -13,5 +13,6 @@ mkIf true {
security.sudo.extraConfig = ''
%users ALL = NOPASSWD: ${pkgs.mtr}/bin/mtr
%users ALL = NOPASSWD: ${pkgs.slock}/bin/slock
'';
}