Results 1 to 3 of 3

Thread: opening x programs as su root

  1. #1
    Senior Member registered user
    Join Date
    Jul 2003
    Posts
    130

    opening x programs as su root

    In Knoppix installed to the hard drive, it is possible to open X programs from a console program automatically as root. For example, if I login to KDE as a user, open Konsole, su to become root, then enter a command like "kwrite", a new window will open up, allowing me to run kwrite as root.

    If I install Debian using the official installer, I cannot open X programs as root. Does anyone know how Knoppix does it? In my normal Debian system, I have to enter the command "xhost local:root" to give root permission to open a display. I would like root to automatically have permission from my user account every time I log on. I know it introduces some security issues, but I don't care. It is very convenient to have the ability to open windows as root from a console.

    I know this is a little off topic (sorry).

  2. #2
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479

    Re: opening x programs as su root

    Quote Originally Posted by m_yates
    If I install Debian using the official installer, I cannot open X programs as root. Does anyone know how Knoppix does it? In my normal Debian system, I have to enter the command "xhost local:root" to give root permission to open a display. I would like root to automatically have permission from my user account every time I log on. I know it introduces some security issues, but I don't care. It is very convenient to have the ability to open windows as root from a console.

    I know this is a little off topic (sorry).
    Add this line to your /root/.bashrc you would of course change it to your user name.
    Code:
    # Allows me to run an X program as root
    export XAUTHORITY=/home/stephen/.Xauthority

  3. #3
    Senior Member registered user
    Join Date
    Jul 2003
    Posts
    130
    Thanks Stephen. I'll give this a try.

Similar Threads

  1. kde menuhelp w/ opening terminal programs
    By michinom in forum Customising & Remastering
    Replies: 0
    Last Post: 07-07-2005, 01:55 AM
  2. Sound opening thing...
    By chris-harry in forum Ideas
    Replies: 4
    Last Post: 11-10-2004, 07:29 AM
  3. how to reboot with CD drawer opening?
    By redss in forum General Support
    Replies: 1
    Last Post: 09-25-2004, 03:25 PM
  4. Monitor Shuts Down When Opening X
    By bongski55 in forum Hardware & Booting
    Replies: 0
    Last Post: 05-12-2004, 03:04 AM
  5. Opening file documents
    By manatarms1775 in forum General Support
    Replies: 3
    Last Post: 04-10-2004, 07:41 PM

Posting Permissions

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