Re: strange rvxt behaviour
Remco Blaakmeer <firstname.lastname@example.org> writes:
> Normally, I use ssh to give me an xterm where I can type commands as root.
> Before I had ssh, I would su to root and then execute this script, which
> I called 'getcookie':
> pushd /home/remco >/dev/null
> if [ X$DISPLAY = X ]
> su remco -c "/usr/bin/X11/xauth nlist $DISPLAY" | /usr/bin/X11/xauth nmerge -
> popd >/dev/null
> Here, `remco' is my own username. Substitute it with yours. The
> pushd/popd commands are to make sure the commands executed by su
> have a readable 'current working directory' (/root has permissions
> 0700 on my system).
Is there is any way to know which user invoked X11 to automatically
insert the username in the above su line?
I haven't lost my mind -- it's backed up on tape somewhere.
PGP Public key available
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
Trouble? e-mail to email@example.com .