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
  •  


AMD EPYC 7282 CPU Processor 16 Cores 32 Threads 2.8GHZ up to 3.2GHZ 120W no lock picture

AMD EPYC 7282 CPU Processor 16 Cores 32 Threads 2.8GHZ up to 3.2GHZ 120W no lock

$76.00



Intel - Core i7-12700K Desktop Processor 12 (8P+4E) Cores up to 5.0 GHz Unloc... picture

Intel - Core i7-12700K Desktop Processor 12 (8P+4E) Cores up to 5.0 GHz Unloc...

$419.99



Intel - Core i9-12900K Desktop Processor 16 (8P+8E) Cores up to 5.2 GHz Unloc... picture

Intel - Core i9-12900K Desktop Processor 16 (8P+8E) Cores up to 5.2 GHz Unloc...

$619.99



Intel Core i7-14700K Unlocked Desktop Processor picture

Intel Core i7-14700K Unlocked Desktop Processor

$409.99



Intel Core i9-13900KF Unlocked Desktop Processor - 24 Cores (8P+16E) & 32 Thread picture

Intel Core i9-13900KF Unlocked Desktop Processor - 24 Cores (8P+16E) & 32 Thread

$535.84



Intel - Core i7-14700K 14th Gen 20-Core 28-Thread - 4.3GHz (5.6GHz Turbo) Soc... picture

Intel - Core i7-14700K 14th Gen 20-Core 28-Thread - 4.3GHz (5.6GHz Turbo) Soc...

$444.99



Intel Core i5-12600KF Desktop Processor 10 (6P+4E) Cores up to 4.9 GHz Unlocked. picture

Intel Core i5-12600KF Desktop Processor 10 (6P+4E) Cores up to 4.9 GHz Unlocked.

$145.59



AMD Ryzen 5 5500 6-Core 3.6GHz Socket AM4 65W CPU Desktop Processor picture

AMD Ryzen 5 5500 6-Core 3.6GHz Socket AM4 65W CPU Desktop Processor

$99.00



Intel Core i7-11700 8 Core LGA1200 CPU Processor SRKNS picture

Intel Core i7-11700 8 Core LGA1200 CPU Processor SRKNS

$245.00



INTEL CORE I7-8700 PROCESSOR | 3.20GHZ | SR3QS picture

INTEL CORE I7-8700 PROCESSOR | 3.20GHZ | SR3QS

$119.99