PDA

View Full Version : help Give users root access



warpedmind
02-20-2003, 07:10 PM
After installing knoppix onto the harddrive (which went so smoothly, it was a beautiful thing),
I upgraded from KDE3.0 to KDE3.1 (which is also beautiful)

however befor upgrading I was able to be logged in as a user and then open
up konsole I would type

su then my password and I would have access to root and be able to run Xapps

After upgrading to KDE3.1 I no longer have that ability. I have to use

xhost +local:<username> and then I have access. but If i reboot I have to type it in
again.

I dont want to have to type that in EVERYTIME I want to have root enabled Xapps when I
restart the system, I want the system to do this at startup like it did before I got KDE3.1

Does anyone know what commands should put in to give any current and future user I create root access to the Xapps.

Also where should I put the commands.

thank you in advance for your help.
LuisI

Nick
02-20-2003, 07:21 PM
I had this problem a loooooong time ago when I broke X on a Mandrake6.5 box.

The fix was to create a file in /etc/ called X0.hosts containing one line:

localhost

The X server will automatically apply it in the manner of "xhost +localhost" each time the server starts.

Whether it is still the same now and on Debian, I don't know.

Nick
P.S. Note X0.hosts is a capital 'X' and a zero 0, not an 'oh'

warpedmind
02-20-2003, 09:58 PM
I tried to create the X0.hosts file inside the /etc/ directory....nope it didnt work.

when I login and su to root I try to start an Xapp... in this case to keep it simple I use xeyes.

this is what happens

root@Sphinux:/home/luis# xeyes
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Error: Can't open display: :0.0

the X0.hosts file inside the /etc/ directory only has the one line you said to put in.

any other suggestions? maybe its different in knoppix debian?

Luis

Nick
02-20-2003, 10:31 PM
I don't know then... it worked 3 years ago :wink:

As to the

Error: Can't open display: :0.0

that can be fixed by setting the ENV $var

env DISPLAY=localhost:0

Nick

warpedmind
02-20-2003, 10:40 PM
everything works just fine if I type in

xhost local:

just dont know how to make knoppix/debian using KDE3.1 do it automatically.




[/b]

Nick
02-20-2003, 10:42 PM
Just thought!!

To use the X0.hosts file, you need to have a localhost entry in /etc/hosts !

Nick

warpedmind
02-20-2003, 10:46 PM
OK

Please walk me through what you mean about the /etc/hosts file.

this is what is inside my file

127.0.0.1 Sphinux localhost

# The following lines are desirable for IPv6 capable hosts
# (added automatically by netbase upgrade)

::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

what do I need to do?

Nick
02-20-2003, 10:50 PM
127.0.0.1 localhost is right.

Also, do a:

#> man xhost

That will tell you more about X.

Nick

*EDIT* OK, I see the spec has changed. Try:

local

In the /etc/X0.hosts file instead.

Nick

warpedmind
02-21-2003, 12:49 AM
Nope this didnt work..

Nick
02-21-2003, 07:51 AM
You did restart X after applying the line, right?

If you did, then I don't know.

Nick

A. Jorge Garcia
11-18-2003, 07:43 PM
I would like to issue the command X -query 10.10.2.5 or X -broadcast from a runlevel 2 to login on my server remotely. How do I get my client PCs to boot-up to runlevel 2 (text only login screen - like a shell). I thought all I'd have to do is edit /etc/inittab but I'm still getting a graphical boot.

TIA,

RockMumbles
11-18-2003, 11:42 PM
AJG, sort of off topic but ...

In debian systems the links to gdm, kdm, or xdm from /etc/init.d are in all rcX.d directories, do the following...
ls /etc/rc?.d/*gdm
it will show something like this:
/etc/rc0.d/K01gdm /etc/rc2.d/S99gdm /etc/rc4.d/S99gdm /etc/rc6.d/K01gdm
/etc/rc1.d/K01gdm /etc/rc3.d/S99gdm /etc/rc5.d/S99gdm

So what runlevel did you select to startup?
Let's assume you chose runlevel 3, and using my above system setup where I use gdm, so then either:
chmod a-x /etc/rc3.d/S99gdm # to make the entry non-executable
or
rm /etc/rc3.d/S99gdm # to delete the link

then when you boot up you won't have gdm started in runlevel 3

HTH

~rock

A. Jorge Garcia
11-19-2003, 12:10 AM
Thanx, I just figured out exactly what you explained above withe kdm....

Thanx anyway!

PS: did you see http://www.knoppix.net/forum/viewtopic.php?p=28179&highlight=#28179 ?