Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Other Versions > EOL (End Of Life) Versions
FedoraForum Search

Forgot Password? Join Us!

EOL (End Of Life) Versions This is a Forum to discuss problems and workarounds for versions of Fedora that have passed End of Life.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 15th September 2011, 01:42 PM
hriisikamp Offline
Registered User
 
Join Date: Sep 2011
Posts: 2
windows_xp_2003ie
Autorunning a GUI program with root privileges after Gnome login

I am trying to make a GUI program which needs root privileges to start automatically after Gnome login (which is also auto-login - but this is here not relevant).

The problem seems to be that sudo needs to be run in terminal, but when specifying the "Startup Applications" in Gnome Preferences menu, it is not possible to specify the program to be run in terminal.

Has anybody succeeded in this?
Reply With Quote
  #2  
Old 15th September 2011, 05:36 PM
Dutchy Offline
Registered User
 
Join Date: Aug 2011
Posts: 926
linuxfirefox
Re: Autorunning a GUI program with root privileges after Gnome login

You probably do that via ~/.bash_profile and some kind of adjustment of the sudoers file.
using .bash_profile to run something can be a bit tricky so don't expect it to work right away this way.
Reply With Quote
  #3  
Old 15th September 2011, 06:57 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,660
linuxfedorafirefox
Re: Autorunning a GUI program with root privileges after Gnome login

Using the bash_profile will also not run it as root.

What are you trying to do?
Reply With Quote
  #4  
Old 15th September 2011, 08:15 PM
hriisikamp Offline
Registered User
 
Join Date: Sep 2011
Posts: 2
windows_xp_2003ie
Re: Autorunning a GUI program with root privileges after Gnome login

I have the following setup:
- after boot a non-privileged user logs into Gnome automatically
- then a (GUI) program is being started by "Startup Applications"

A user controls the program via touch-screen, there is no mouse or keyboard. The user sees only the program.

Now I need the autostarting program to run as root.

I have modified the sudoers file to run the program with sudo and without password. THis works all right, but sudo works only in terminal window. But when describing startup applications it is not possible to specify that the program should be run in terminal window. And sudo is not working in this setup, it gives an error message that it needs tty.

The Command field in "Startup application" setup is "sudo /usr/bin/gui_prog_name".
Reply With Quote
  #5  
Old 15th September 2011, 08:23 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,660
linuxfedorafirefox
Re: Autorunning a GUI program with root privileges after Gnome login

Why does it need to run as root? That is just asking for a break in.
Reply With Quote
Reply

Tags
autorunning, gnome, gui, login, privileges, program, root

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Launch application with root privileges from gnome desktop shortcut. IYIaster Using Fedora 3 13th May 2010 02:18 PM
Gnome panel launcher with root privileges? SiriusStarr Using Fedora 1 29th July 2008 02:02 AM
VNC Root Login With Gnome Johnny Fist Using Fedora 0 27th February 2006 01:55 AM
Start program as root in gnome. dim3 Using Fedora 4 31st March 2005 04:40 PM
Login automatically with ROOT privileges beep Using Fedora 3 20th June 2004 06:00 AM


Current GMT-time: 10:35 (Friday, 18-04-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat