LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-08-2007, 01:51 PM   #1
nightrider
Member
 
Registered: Apr 2005
Location: Sao Paulo - Brazil
Distribution: Fedora Workstation 32 64bits
Posts: 170

Rep: Reputation: 15
Run a visual application as super user


I developed a visual front end (using GTK I think, although I have no idea what is the meaning of GTK) for collect data(like list of files to compress and the name of the compressed file) and run TarBall in batch doing a call to bash. I used a Lazarus ( www.lazarus.freepascal.org ) a visual language that runs under linux, Mac OS and windows.

My doubt is: Since I call my application from an icon in the desktop logged in with my own user, how can I run my application as super user without log in as root? Similar to hit the SU command in a console window and run TarBall as root.

If I need to unpack a tar, tar.gz or tar.bz2 in a directory like /usr/lib I need to do it as super user(normally root).

I hope I explained my trouble in a right way since my english is weak. Please, if you have doubts ask me.

Greetings from Sao Paulo - Brazil

Ricardo
 
Old 11-08-2007, 02:01 PM   #2
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 58
If you unpack a tarball in anywhere outside your $HOME directory, you will need to be root
 
Old 11-08-2007, 02:30 PM   #3
nightrider
Member
 
Registered: Apr 2005
Location: Sao Paulo - Brazil
Distribution: Fedora Workstation 32 64bits
Posts: 170

Original Poster
Rep: Reputation: 15
Thank you for the information, but please can you, additionally answer my question?
 
Old 11-08-2007, 04:51 PM   #4
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 58
woops, I thought you said do you need to be root to unpack tarballs in /usr/lib
 
Old 11-08-2007, 06:32 PM   #5
bryantrv
Member
 
Registered: Jan 2005
Location: DeLand, Florida US
Distribution: Debian Etch
Posts: 91

Rep: Reputation: 15
Either running it with the argument "gksu" or "kdesu" should work- it will ask for the root password, but then it will be able to access the user desktop/display.

So- change the command of the application to gksu command or kdesu command.
 
Old 11-09-2007, 06:35 AM   #6
nightrider
Member
 
Registered: Apr 2005
Location: Sao Paulo - Brazil
Distribution: Fedora Workstation 32 64bits
Posts: 170

Original Poster
Rep: Reputation: 15
I'm running an appliance of Fedora Core 5 under a VMWare player. Fedora is using gnome. And I can't find any gks*.*. I do:

$ su
$ updatedb
$ locate gks*.*

And "locate" shows nothing...

Should Fedora Core 5 a version of linux that doesn't have gksu available?

Should someone show an example of the a real use of gksu, please?
 
Old 11-09-2007, 07:22 AM   #7
bryantrv
Member
 
Registered: Jan 2005
Location: DeLand, Florida US
Distribution: Debian Etch
Posts: 91

Rep: Reputation: 15
Try installing gksu- I see Fedora stopped installing it by default, but depending on the repositories you are using it should be available.
http://www.nongnu.org/gksu/
http://rpm.pbone.net/index.php3?stat...gksu&srodzaj=3
 
Old 11-09-2007, 11:27 AM   #8
nightrider
Member
 
Registered: Apr 2005
Location: Sao Paulo - Brazil
Distribution: Fedora Workstation 32 64bits
Posts: 170

Original Poster
Rep: Reputation: 15
I downloaded the gksu-1.3.4-1.2.fc5.rf.i386.rpm, libgksu1.2.so.0 and libgksuui1.0.so.1

But when I type gksu in the console command it seems that gksu remains waitng commands... The only way to exit is typing ^Z...

Should someone give me more details/help?

Cheers
 
Old 11-09-2007, 12:01 PM   #9
bryantrv
Member
 
Registered: Jan 2005
Location: DeLand, Florida US
Distribution: Debian Etch
Posts: 91

Rep: Reputation: 15
You should type gksu command- IOW, if I need to run Firefox as root to update itself, I type gksu firefox .
So- whatever command you are wanting to run as root is what you need to type after gksu.
 
  


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
Stupid Question: Microsoft Visual Studio 6.0 (A.K.A. Visual Basic 6) Will it run? S0RD3N Linux - Software 8 05-07-2008 09:42 PM
I can't run Firefox from my single user(only from a super user) nightrider Linux - Newbie 14 10-24-2006 09:35 PM
Force an application to run only for my user purefan General 1 04-12-2005 10:30 AM
how to run ifconfig as root without super user terminal GUIPenguin Linux - General 1 01-15-2005 11:06 AM
Run an application under a user on startup? wichmann_uwe Linux - General 1 01-23-2004 04:07 AM

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

All times are GMT -5. The time now is 10:35 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