LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 09-11-2005, 11:39 AM   #1
wellington
Member
 
Registered: Apr 2004
Location: Caaanada
Distribution: KUbuntu 6.10
Posts: 47
Blog Entries: 1

Rep: Reputation: 15
Root Password Script?


I want to start my firewall, Firestarter, on Gnome start up. So I inserted the command into the 'Sessions' box. (Preferences -> Sessions -> Startup Programs) Firestarter won't run without the root password, so I have to use: gksudo /usr/sbin/firestarter (as opposed to /usr/sbin/firestarter) So every time I start my computer I am prompted for the root password. Is there a simple script or command I can issue so Firestarter starts without prompting for the root password? Any help would be great. I am using Ubuntu 5.04 and Gnome 2.10.0
 
Old 09-11-2005, 11:52 AM   #2
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,832

Rep: Reputation: 47
Quote from Firestarter manual:

Firestarter running in the system tray normally when you start Firestarter by clicking an icon or manually from a terminal, the system will prompt you for your root user's password. However, this is a bit of a hassle, especially if you want to run Firestarter all the time when logged in. In that case Firestarter can be loaded in the background when you log in with your regular user, without asking a password and minimized to the system tray
Giving the user permission to launch Firestarter without the root password
In order for a regular user to be able to launch Firestarter, the user must be given additional privileges. Edit your /etc/sudoers file in your favorite text editor and add the following line at the end:

username ALL= NOPASSWD: /usr/bin/firestarter

Note: Debian users should replace /usr/bin/firestarter with /usr/sbin/firestarter in the above line.
Simply replace username with whatever your login is. The specified user is now able to launch Firestarter without being prompted for a password using the command sudo firestarter.

A note on the security aspects: This method makes a trade off in local security for convenience. If your user account becomes compromised the attacker will be able to control the firewall. However this method is preferable to having a shared root user password in a multiuser setting. It is also preferable if the alternative is not to run Firestarter at all.

Last edited by SlackerLX; 09-11-2005 at 11:54 AM.
 
Old 09-12-2005, 12:08 PM   #3
ssfrstlstnm
Member
 
Registered: Dec 2004
Location: IN, USA
Distribution: debian etch
Posts: 402

Rep: Reputation: 30
You can add a startup script in /etc/init.d
 
Old 09-20-2005, 08:52 AM   #4
linus johann
Member
 
Registered: Jan 2005
Location: philippines
Distribution: rh 9
Posts: 71

Rep: Reputation: 15
hello! i got a problem with my xandros box.. i wanted to use firestarter but it seems that it only runs in gnome.. is there any way that firestarter would run on kde too? can i install a gnome envi on my xandros?
 
Old 09-20-2005, 01:58 PM   #5
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,832

Rep: Reputation: 47
use "guarddog" for KDE or iptables
 
Old 05-30-2006, 12:21 AM   #6
Ander
Member
 
Registered: Apr 2003
Location: Vancouver
Distribution: Debian
Posts: 37

Rep: Reputation: 15
Quote:
Originally Posted by Wellington
I want to start my firewall, Firestarter, on Gnome start up... So every time I start my computer I am prompted for the root password. Is there a simple script or command I can issue so Firestarter starts without prompting for the root password?
Actually, unlike Windows firewalls, the part of Firestarter that you see is just a GUI for choosing your firewall settings. Once you've made your settings, Firestarter automatically applies them each time you start your system. You don't have to run the GUI each time you log on, unless you want to change your settings, or view recent events (intrusion attempts, etc.).

To to verify this, check your system log after you log on. At a command prompt type:

dmesg | less

You should see a message like "Starting the Firestarter Firewall..."

Here's another thread about this, on the Debian forum:

http://forums.debian.net/viewtopic.php?t=4895&

Cheers, Ander
 
  


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
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 10:28 PM
Running a script as root with sudo without entering the user password kloss Linux - General 8 10-10-2005 11:39 AM
Logged in as root, prompted for root password ta0kira Slackware 13 04-25-2005 01:29 AM
pass root password in cgi script file explorer Linux - General 3 04-06-2004 10:13 PM
Bash script to edit passwd without Root password? NetFlash Linux - Newbie 2 11-29-2003 04:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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