On Monday 19 August 2002 17.36, Kevin McLauchlan wrote:
the package into /tmp, su to root, untar the package, which
Don't "su" to root. Use "sux" instead.
ssh -X -l root localhost
The -X lets you exectute X programs as root :)
Again, I got exactly the same result as above.... though now, at least, "localhost" is in the database of trusted callers <grin>.
Are you saying this didn't work? That is completely unbelievable. Or did you "ssh" *after* you had su:ed? Here's the deal: X doesn't know about root, it know only about the user that started it. That user has all the permissions to run programs that use the running X. As that user you need to grant permissions to other users to run programs. There are several ways to do this: As the user that started X, run "ssh -X root@localhost" As root after "su", run "export XAUTHORITY=/home/user/.Xauthority" where "user" is the user that started X. As the user that started X, run "sux" instead of "su" to go to root. This will essentially do the XAUTHORITY thing I mentioned, but you won't have to know about it :) As the user who started X, run "xhost +inet:localhost". This will allow *all* users logged in to the local machine to run X programs. I'm sure there are other ways, but these should be enough to be getting on with //Anders -- 'Deserves [death]. I daresay he does. Many that live deserve death. And some that die deserve life. Can you give it to them? Then do not be too eager to deal out death in judgement. For even the very wise cannot see all ends.' --Tolkien, The Lord of the Rings