SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have tried generating a new .Xauthority file by doing:
Code:
xauth generate :0 .
which gives me:
xauth: creating new authority file /root/.Xauthority <------ this looks promising
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
xauth: (argv):1: unable to open display ":0". <------ not so promising
Do you mean that while running X as a normal user and trying to su to root inside a terminal emulator(xterm). Or are you trying to su to root from a real cli console? Are you trying to start an application directly before starting X?
You want to start the app as root and which of the below?
1. have it run on your user desktop
2. have it run on root's desktop
3. have it run on roots cli
What they are trying to do, in general, won't work. But if you try using 'sudo' instead of 'su', I think you will better success.
NOTE: I just tried the 'su' route on my box, but I've modified my sudoers file and many, many other things, that 'su' DOES work...It didn't before...
To modify your sudoers file safely(according to the common wisdom/knowledge/custom), use 'visudo' (I used a text editor with no ill effects so far, but...).
As for how to use visudo, search the forum, it has better instructions than I could even attempt to write here.
I suspect the same as you -that's why I am trying to pin dowm exactly what he wants. There is a small program (actually a script) which makes these things a little easier to do. It's called 'sux'. You can get a package of it here: http://distro.ibiblio.org/pub/linux/...ils/sux-1.0.1/
One point though - I could definitely run applications using the xterm / su route before hosing root's .Xauthority file. But that's irrelevant now.
Many thanks,
M.
I believe that is the route that gnashley was referring to, a modification of the .Xauthority file.
In the kernel sticky here in the forum, there is also a way to have su apps displayed on the users gui. (It may be the same script. Been a long time since I remembered seeing it in that post...Lots of stuff to read in there...lol
But since mine also runs root apps thru the terminal using 'su', I'm assuming I DID run that script or something very similar at some point (one of the 'issues' of old age..."Did I already do that?")
But very glad to see you found a way. That's what I love about the Slackware community...If you ask three different people a question, you'll more than likely get 6 answers, and one of them ought to not only work, but that you'll feel comfortable using.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.