[sudo-users] Using sudo from a GUI app (getting a persistent ticket)

Alec Leamas leamas.alec at gmail.com
Fri Sep 27 08:47:38 MDT 2013


OK, I probably break the thread here. Sorry for that.

Below is a short bash script which somehow reproduces this problem. If I 
run it directly, it behaves as expected and asks for password once or 
not at all.

However, if I invoke this as "ssh localhost ./sudotest.sh" it fails to 
give me a valid ticket, and asks for password twice. To me, this looks 
like a bug. Or?!

--alec


PS: My system: Fedora 20 (sic!), sudo-1.8.6p7-2.fc20.i686

------------------------------------
$ cat ~/sudotest.sh
#!/bin/bash
set -x
cat /proc/self/stat | cut -c 1-70
sudo -S ls /root > /dev/null
cat /proc/self/stat | cut -c 1-70
sudo -S ls /root > /dev/null
------------------------------------


More information about the sudo-users mailing list