I'm trying to set the Defaults
in an appropriate way for the pdebuild
usage.
I've got the command alias defined:
Cmnd_Alias PBUILDER = /usr/sbin/pbuilder, /usr/bin/pdebuild, /usr/bin/debuild-pbuilder
and I'm trying to set the defaults only for that one:
Defaults env_reset
Defaults!PBUILDER env_keep="DIST ARCH"
This fails with syntax error on the line with env_reset
. When I comment out the Defaults!PBUILDER
line, it works just fine. What should I update here to make it work?
Additional info:
$ sudo -V
Sudo version 1.6.9p17
The man page has information about the "Defaults!..." option so this should be ok in theory.
The whole file is:
Cmnd_Alias PBUILDER = /usr/sbin/pbuilder, /usr/bin/pdebuild, /usr/bin/debuild-pbuilder
Defaults env_reset
Defaults!PBUILDER env_keep="DIST ARCH"
root ALL=(ALL) ALL
stan ALL=(ALL) PBUILDER
%engineering ALL=(ALL) ALL