[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: strange rvxt behaviour

Remco Blaakmeer <remco@blaakmeer.student.utwente.nl> 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':
> #!/bin/sh
> pushd /home/remco >/dev/null
> if [ X$DISPLAY = X ]
> then
>    DISPLAY=:0
> fi
> 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.
                                            Fortune Cookie
PGP Public key available

TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .

Reply to: