[sudo-workers] Negation operator in Defaults options

Daniel Kopecek dkopecek at redhat.com
Wed Sep 26 06:41:48 EDT 2012


Hello,
  it looks like the negation operator doesn't work as one would expect 
in cases where you want to negate the user part of an Defaults option. 
One example that isn't working is this:

Defaults !requiretty         (not requiring the tty is the default and 
it doesn't work without this line)
Defaults:!user requiretty

I would expect that to be equivalent to:

Defaults requiretty
Defaults:user !requiretty

But it isn't. The second case works as expected, i.e. not requiring the 
tty for user "user". If some combinations aren't correct (and are known 
not to be correct), could this be mentioned in the docs?

Thanks,
Dan K.




More information about the sudo-workers mailing list