Re: touch /var/lib/sudo/$USER / use sudo when unlocking xscreensaver (xfce)
> >
> > Not quite. I want sudo 'activated' when I enter my password.
> >
> > Ie, when I log in to XFCE, or when I unlock the xscreensaver, I have
> > in both cases just entered my password. So because I just entered my
> > password, I expect sudo to be 'activated'.
>
> Ah, now I get it. :)
>
> I suppose there's a way to do this using xscreensaver-command -watch
> and some scripting, but if you have only a couple of scripts that
> need to run rather often (and are not very "dangerous", i.e. allow no
> interactivity or shell commands), then I'd still use NOPASSWD for those
> specific scripts in sudoers.
>
> After all, it's not like you can only have one line in sudoers per
> user/group. :)
Yeah, usually for guis you want to only run a single command, perhaps
so you can get rid of that polkit that should only be doing a single
job well.
Defaults:user timestamp_timeout=0
--
_______________________________________________________________________
'Write programs that do one thing and do it well. Write programs to work
together. Write programs to handle text streams, because that is a
universal interface'
(Doug McIlroy)
_______________________________________________________________________
Reply to: