LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 05-15-2004, 08:04 AM   #1
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,037

Rep: Reputation: 54
Automatically run root program.


Hi all!!

I have downloaded Firestarter (GUI for iptables) and i would like to get it started everytime I log in X server.
I did it creating a script under /etc/X11/gdm/Sessions, I created an entry for loading gkrellm and firestarter and then run fluxbox.
Everything works pretty good. The only "annoying" thing is that I have to give root privileges to Firestarter. Is there any solution for not having to put the password everytime i boot into X?? Some kind of script that i can put to gdm login system??

Thanks in advance
 
Old 05-15-2004, 09:43 AM   #2
grcunningham
Member
 
Registered: Apr 2004
Location: Florida
Distribution: RedHat 9.0/Afterstep
Posts: 103

Rep: Reputation: 15
check out this link:

http://www.geocities.com/tipsforlinux/articles/028.html

it discusses setting the SUID bit so that your script can
be run as root. hope it helps
 
Old 05-15-2004, 10:05 AM   #3
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,037

Original Poster
Rep: Reputation: 54
@grcunningham

Thanks for the link. I followed it, and i checked UID on the firestarter executable, but in this way it just won't run. If i enter firestarter in the command line, it returns to bash, and does nothing. Doing a ps -aux does not give me the program, so it's not running at all. I don't understant why is not running.

Any other suggestion?
 
Old 05-16-2004, 08:25 AM   #4
grcunningham
Member
 
Registered: Apr 2004
Location: Florida
Distribution: RedHat 9.0/Afterstep
Posts: 103

Rep: Reputation: 15
what are the attributes of the executable?
give me the output of ls -al
you said you had it running before, what exactly did you change?
 
Old 05-16-2004, 01:45 PM   #5
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,037

Original Poster
Rep: Reputation: 54
> ls -la /usr/bin/consolehelper (firestarter is a symlink)
-rwsr-xr-x 1 root root 3592 feb 25 2003 /usr/bin/consolehelper

/usr/bin/consolehelper is un red background and white font. That means something?
I did put the SUID bit with konqueror, as i don't know how to put it with console.

If SUID bit if not present, i run firestarter and it pop ups a dialog asking for root password, i put it and that's all, firestarter begins to run.

With this bit set, it won't start at all.

Thnks for helping
 
  


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
Run shell script as root automatically elempoimen Linux - Software 8 06-20-2010 02:24 AM
How can a command/program be run automatically on boot? chuanweizuo Linux - Hardware 1 11-28-2005 11:36 AM
run program automatically at specific time simon_qwl Programming 2 03-20-2005 11:58 AM
I want to automatically run a program when a user logs on their account bad_andy Linux - Newbie 7 02-01-2005 09:55 PM
How do I automatically run at boot an X program or script cmisip Linux - General 4 01-05-2003 07:30 PM


All times are GMT -5. The time now is 05:26 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration