Re: gnuserv & xauth
Deniz Dogan <deniz@ada.net.tr> writes:
> How can I use a normal user`s gnuserv process as root? What I want to
> do is: as root to use a normaluser`s emacs to edit some conf files.
>
> root@dogan:~# xauth -f /home/deniz/.Xauthority extract - :0.0 | xauth merge -
> root@dogan:~# gnuclient -h dogan.dyn.ml.org ipfw.dotfile
> What am I missing or doing wrong?
1. gnuclient xauth uses a cookie for display :999
use this (our version of mkcookie also makes a cookie for localhost:0,
your milage may vary).
#! /bin/sh
GNU_HOST=bolzano
export GNU_HOST
# Make Gnuserver cookie for poor user.
if [ -f $HOME/.Xauthority ]
then
xauth add $GNU_HOST:999 . `xauth -q list localhost:0 | cut -d' ' -f5`
fi
2. Gnuclient only tells the remote XEmacs to find-file the file, so the
user has to have permission to edit the file. You could try using
efs if you allow root ftp access.
Jan
--
Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
Reply to: