Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: help Give users root access

  1. #1
    Junior Member registered user
    Join Date
    Feb 2003
    Posts
    17

    help Give users root access

    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

  2. #2
    Junior Member registered user
    Join Date
    Feb 2003
    Location
    Pompey, England
    Posts
    17
    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'

  3. #3
    Junior Member registered user
    Join Date
    Feb 2003
    Posts
    17
    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

  4. #4
    Junior Member registered user
    Join Date
    Feb 2003
    Location
    Pompey, England
    Posts
    17
    I don't know then... it worked 3 years ago

    As to the

    Error: Can't open display: :0.0

    that can be fixed by setting the ENV $var

    env DISPLAY=localhost:0

    Nick

  5. #5
    Junior Member registered user
    Join Date
    Feb 2003
    Posts
    17
    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]

  6. #6
    Junior Member registered user
    Join Date
    Feb 2003
    Location
    Pompey, England
    Posts
    17
    Just thought!!

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

    Nick

  7. #7
    Junior Member registered user
    Join Date
    Feb 2003
    Posts
    17
    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?

  8. #8
    Junior Member registered user
    Join Date
    Feb 2003
    Location
    Pompey, England
    Posts
    17
    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

  9. #9
    Junior Member registered user
    Join Date
    Feb 2003
    Posts
    17
    Nope this didnt work..

  10. #10
    Junior Member registered user
    Join Date
    Feb 2003
    Location
    Pompey, England
    Posts
    17
    You did restart X after applying the line, right?

    If you did, then I don't know.

    Nick

Page 1 of 2 12 LastLast

Similar Threads

  1. Users can't access secondary hd
    By Degman in forum General Support
    Replies: 3
    Last Post: 08-10-2004, 07:06 PM
  2. Normal Users can't access windows partitions
    By empanyc in forum General Support
    Replies: 4
    Last Post: 04-01-2004, 10:23 AM
  3. Cannot start X under any users other than root
    By pizarra in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 03-23-2004, 06:01 PM
  4. creating remote access CD for roaming users
    By mikesb in forum Customising & Remastering
    Replies: 3
    Last Post: 12-27-2003, 07:48 AM
  5. Granting ordinary users access to another partition?
    By athlonthunder in forum General Support
    Replies: 2
    Last Post: 04-06-2003, 06:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE picture

1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE

$273.00



Dell R730xd 26 Port SFF 2x E5-2697v4 36-Cores H730 128GB Server 2x SFP 10G ENT picture

Dell R730xd 26 Port SFF 2x E5-2697v4 36-Cores H730 128GB Server 2x SFP 10G ENT

$490.00



Dell PowerEdge R430 3.5 1U 2x E5-2690 v3 2.6ghz 24-Cores 256gb 4x Trays 2x 550w picture

Dell PowerEdge R430 3.5 1U 2x E5-2690 v3 2.6ghz 24-Cores 256gb 4x Trays 2x 550w

$359.99



Dell PowerEdge R7425 2x AMD EPYC 7251 64GB RAM H730P RAID NO HDD/OS #73 picture

Dell PowerEdge R7425 2x AMD EPYC 7251 64GB RAM H730P RAID NO HDD/OS #73

$640.00



Dell PowerEdge R630 Server 2x E5-2680 V4 = 28 Cores S130 32GB RAM NEW 480GB SSD picture

Dell PowerEdge R630 Server 2x E5-2680 V4 = 28 Cores S130 32GB RAM NEW 480GB SSD

$208.99



Dell PowerEdge R420 Dual Intel Xeon E5-2440 v2 @1.90GHz 32GB RAM No HDD H710 picture

Dell PowerEdge R420 Dual Intel Xeon E5-2440 v2 @1.90GHz 32GB RAM No HDD H710

$74.50



Dell PowerEdge R620 Server 2x E5-2660 v2 2.2GHz 20 Cores 256GB RAM 1x 480GB SSD picture

Dell PowerEdge R620 Server 2x E5-2660 v2 2.2GHz 20 Cores 256GB RAM 1x 480GB SSD

$139.99



Dell PowerEdge R620 Server - 256GB RAM, 2x8cCPU, 120Gb SSD/3x900Gb SAS, Proxmox picture

Dell PowerEdge R620 Server - 256GB RAM, 2x8cCPU, 120Gb SSD/3x900Gb SAS, Proxmox

$320.00



Dell Poweredge R210 II Server Xeon E3-1220 v2 3.1ghz Quad Core / NoRam / 1x Tray picture

Dell Poweredge R210 II Server Xeon E3-1220 v2 3.1ghz Quad Core / NoRam / 1x Tray

$69.99



Dell PowerEdge R430 3.5 1U 2x E5-2666 v3 2.9ghz 20-Cores 128gb 4x Trays 2x 550w picture

Dell PowerEdge R430 3.5 1U 2x E5-2666 v3 2.9ghz 20-Cores 128gb 4x Trays 2x 550w

$364.99