Following a tutorial on setting up gnupg to manage ssh keys I've managed to get several instances of gpg-agent running:
[root@frylock ~]# ps aux | grep agent
root 2764 0.0 0.0 4208 432 ? Ss 11:15 0:00 ssh-agent
xtian 2785 0.0 0.1 3500 972 ? Ss 11:18 0:00 gpg-agent -s --enable-ssh-support --daemon --write-env-file /home/frylock/xtian/.gnupg/gpg-agent.env
root 2958 0.0 0.0 3168 688 ? Ss 11:39 0:00 gpg-agent -s --enable-ssh-support --daemon --write-env-file /root/.gnupg/gpg-agent.env
root 3036 0.0 0.0 4740 392 ? Ss 11:43 0:00 gpg-agent --daemon
root 3186 0.0 0.0 4740 388 ? Ss 11:53 0:00 gpg-agent --daemon
root 3299 0.0 0.0 4740 388 ? Ss 11:58 0:00 gpg-agent --daemon
root 3549 0.0 0.0 4740 392 ? Ss 12:54 0:00 gpg-agent --daemon
I can resolve most of this mess by going back over the instructions--a fifth time. But what I don't understand, why is my user account owner of a running process when I'm only logged in one tty as root?
.xinitrc
would be killed when.xinitrc
exits. A process can survive its parent, this happens all the time! As I explain in my answer, the reason GUI programs die when the session exits is that they're programmed to die when the X server goes away. – Gilles 'SO- stop being evil' Sep 13 '13 at 15:37