LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-01-2004, 04:46 AM   #1
jax8
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Ubuntu, Fedora 10
Posts: 632

Rep: Reputation: 31
su for gui programs


is there a way to convert to ROOT user when in a normal user account and then back again.

I know su does this but is there a way that you can use GUI programs as root as well and just general programs from the menu?
 
Old 04-01-2004, 04:50 AM   #2
Nuk
LQ Newbie
 
Registered: Sep 2003
Location: UK
Distribution: Debian, Gentoo, Ubuntu
Posts: 10

Rep: Reputation: 0
Hi,
open a console, su to root and then run the program from there instead of the menu?
Nuk
 
Old 04-01-2004, 08:06 AM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Edit the menu. There should be an option to "run as a different user", type root in to the user name box. Save and close menu. Run program. (nb. this may only apply to KDE)

Or create a shortcut to the program on your menu, making sure the command is su "/path/to/program"

Might be helpful if you told us which programs you are thinking of - there aren't many progs I can think of where you'd need to run as root.
 
Old 04-01-2004, 08:26 AM   #4
jax8
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Ubuntu, Fedora 10
Posts: 632

Original Poster
Rep: Reputation: 31
Quote:
Might be helpful if you told us which programs you are thinking of - there aren't many progs I can think of where you'd need to run as root. [/B]
I am running KDE but where is the option of run as different user?

Oh and I just like being able to do things without having to type the root password all the time.
 
Old 04-01-2004, 08:40 AM   #5
frandalla
Member
 
Registered: Oct 2003
Location: Tokyo - Japan
Distribution: Slackware
Posts: 348
Blog Entries: 1

Rep: Reputation: 37
hey, you have to use kdesu, you type:
kdesu <program name>
then it will ask for the root password and you're done
<EDIT>It will open a graphical window with option of saving the pass</EDIT>

Last edited by frandalla; 04-01-2004 at 08:41 AM.
 
Old 04-01-2004, 10:41 AM   #6
Nis
Member
 
Registered: Jul 2003
Location: Virginia
Distribution: Ubuntu Hoary (5.04)
Posts: 550

Rep: Reputation: 31
Also check out PAM. It does what you're looking for. It might take a little bit to setup but it's worth it.
 
  


Reply



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
GUI generator for command line programs? pandasuit Linux - Software 5 01-16-2011 04:55 PM
Can't run gui (X) programs as root user nazdrowie Linux - General 25 12-02-2008 01:24 AM
Installing gui programs (any distro I guess) ch424 Linux - Software 2 10-03-2004 10:18 AM
Wrinting GUI programs for Linux and Windows J0nathan Programming 13 02-14-2004 12:07 PM
running remote gui programs w/ X steyr Slackware 7 01-11-2004 07:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:50 PM.

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