-
Senior Member
registered user
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).
-
Senior Member
registered user
Re: opening x programs as su root
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
-
Senior Member
registered user
Thanks Stephen. I'll give this a try.
Similar Threads
-
By michinom in forum Customising & Remastering
Replies: 0
Last Post: 07-07-2005, 01:55 AM
-
By chris-harry in forum Ideas
Replies: 4
Last Post: 11-10-2004, 07:29 AM
-
By redss in forum General Support
Replies: 1
Last Post: 09-25-2004, 03:25 PM
-
By bongski55 in forum Hardware & Booting
Replies: 0
Last Post: 05-12-2004, 03:04 AM
-
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
-
Forum Rules
Cisco SG110 8 Port Gigabit Ethernet Switch SG110D-08-UK
$39.00
Cisco SG110 24 Port Gigabit Ethernet Switch w/ 2 x SFP SG110-24
$117.00
8 Ports Unmanaged Industrial Ethernet Switch Network Gigabit Ethernet Switch
$76.50
Cisco 110 SG110D-05 5 Ports Ethernet Switch - 1000Base-X SG110D-05-EU-WS
$40.00
New Linksys SE3005 5-port Gigabit Ethernet Switch
$18.99
Juniper Networks EX3300-48P 48-Port PoE+ 4x SFP+ Network Switch w/ Power Cord
$43.95
New 10/100 Mbps 8 Ports Fast Ethernet LAN Desktop RJ45 Network Switch Hub
$11.49
Linksys SE3008 8 Ports Rack Mountable Gigabit Ethernet Switch
$21.99
Netgear ProSafe S3300-52X-POE+ 48-Port Gigabit PoE+ Stackable Network Switch
$100.95
Fortinet FortiSwitch FS-124D-POE 24 Port Gigabit Ethernet Switch UNREGISTERED
$99.97