LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-05-2004, 10:29 AM   #1
nny0000
Member
 
Registered: Aug 2003
Distribution: Slackware, Ubuntu
Posts: 158

Rep: Reputation: 30
root apps running on X under regular user??


Is there a way to run a root application (GUI port scanner etc...) under X while not restarting X under root?

I don't mean KDE or Gnome Apps that allow you to enter roots password while still running X as user.

This doesn't work:

brandon@localhost: startx
Open xterm on /dev/pts/1
brandon@localhost: su
password:
root@localhost: guarddog & (or any other GUI app that needs Root priv's)

I get a can't open :0
and/or a invalid MIT_MAGIC_COOKIE_1

I also use xhost +localhost to remove the can't open display :0

Thanks
A Slacker
 
Old 02-05-2004, 11:38 AM   #2
Melkor
Member
 
Registered: Aug 2003
Location: MN
Distribution: Linux Mint
Posts: 179

Rep: Reputation: 34
I've wondered that myself.

I started out with command line Unix years ago, so I'm not afraid of doing things via konsole or xterm.... but sometimes I wish I could figure out how to do some things graphically without having to log out and log back in again as root.
 
Old 02-05-2004, 01:29 PM   #3
Nis
Member
 
Registered: Jul 2003
Location: Virginia
Distribution: Ubuntu Hoary (5.04)
Posts: 550

Rep: Reputation: 31
Check out PAM. It does exactly what you're looking for, only it does ask for the root password before it starts the program for security. Dropline has it setup by default and I don't believe it would be too hard to setup. Basically after creating a couple files you move an executable to /usr/sbin and create a link of the same name of the executable in /usr/bin that points to a program called consolehelper. I know this explanation doesn't make too much sense but I do know PAM works for me.
 
Old 02-05-2004, 02:09 PM   #4
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
If you're talking about X apps, then you can force any of them to run as root yet in your X session. For apps listed on the KDE menu, go to Settings > Configure Panel > Menus tab > Edit K Menu. Then select the app you want to run as root and edit the "Run as different user" box. For desktop shortcuts, right-click on the shortcut, select properties, then the execute tab, and edit it there. From a console, you could use the "sudo appname" command, but you'd need to edit /etc/sudoers probably. Not sure how KDE/Gnome does it internally. Easiest way is probably to just place a shortcut on your desktop.

Last edited by DaHammer; 02-05-2004 at 02:10 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving from root to regular user KingOfDreams Linux - General 1 01-14-2005 04:46 AM
Given regular user root privileges clo99dx Linux - Newbie 6 06-05-2004 04:27 PM
running k3b from a regular user devit Slackware 1 03-11-2004 09:29 AM
Running root apps in X using regular user? nny0000 Slackware 10 01-15-2004 12:23 PM
can't login as regular user (root only) DontKnowNothing Mandriva 2 10-24-2003 01:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration