LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-19-2005, 04:07 PM   #1
neilcpp
Member
 
Registered: Jul 2003
Location: England
Distribution: Debian Jessie, FreeBSD 10.1 anything *nix to get my fix
Posts: 329

Rep: Reputation: Disabled
Unhappy firestarter start


i downlowded the tarball of firestarter firewall and built it from source under my root account. If i type 'firestarter' at the root command line - when I log into the xwindows as root as well - then the program starts.

but if i log in as a ordinary user - i get command not found when i type firestarter. I know this is a permissions issue. But my question is what file do i need to change so that i can run firestarter firewall as a ordinary user?
 
Old 11-19-2005, 04:24 PM   #2
Okie
Senior Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154

Rep: Reputation: 187Reputation: 187
firestarter is just a frontend for IPTables and that is a system tool of which only system administrators (root) should have access to so it is not advised to let regular users have acess to it...
 
Old 11-20-2005, 07:34 AM   #3
neilcpp
Member
 
Registered: Jul 2003
Location: England
Distribution: Debian Jessie, FreeBSD 10.1 anything *nix to get my fix
Posts: 329

Original Poster
Rep: Reputation: Disabled
no - do you have to log into x windows as root and start you firewall as root every time?

what i am saying is that i know i have to start the program as root, but i CANNOT start it under a user account at the command prompt as root.
 
Old 11-20-2005, 08:14 AM   #4
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Put the command to start it in a start up file - maybe rc.local which you will find in /etc/rc.d/
 
Old 11-20-2005, 09:09 AM   #5
MMYoung
Member
 
Registered: Apr 2004
Location: Arkansas
Distribution: Ubuntu 8.10
Posts: 365

Rep: Reputation: 30
I build a Slackware package of Firestarter and here is the rc.firewall script that I use:
Code:
#!/bin/bash
#rc.firewall start/stop/restart the Firestarter firewall service
#
firewall_start () {
if [ -x /etc/firestarter/firestarter.sh ]; then
   echo "Starting firewall: /etc/firestarter/firestarter.sh"
   /etc/firestarter/firestarter.sh start
fi
}

firewall_stop () {
  /etc/firestarter/firestarter.sh stop
}

firewall_restart () {
  /etc/firestarter/firestarter.sh stop
  /etc/firestarter/firestarter.sh start
}

case "$1" in
'start')
  firewall_start
  ;;
'stop')
  firewall_stop
  ;;
'restart')
  firewall_restart
  ;;
*)
 echo "usage $0 start|stop|restart"
esac
Create a file named rc.firewall in /etc/rc.d, add the above to it and it will automatically start each time you boot your PC as it is called by rc.inet2 so there is no need to put it in rc.local. Also you MUST be root to make any changes to the firewall so you won't be able to start Firestarter as a normal user. My workaround is to use libgnomesu (which I also package for Slackware) and add gnomesu firestarter to the Exec= line of firestarter.desktop. This way you will be asked for the root password when clicking on the Firestarter menu entry in Applications --> System Tools.

Later,
MMYoung

Last edited by MMYoung; 11-20-2005 at 09:17 AM.
 
  


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
Start Firestarter from GKrellM ? (ppp) beebelo Debian 4 09-16-2005 10:43 AM
Firestarter will not start BradW Linux - Networking 3 06-02-2004 07:18 AM
Start Firestarter at boot IBall Slackware 3 04-24-2004 03:38 AM
Firestarter InEeDhElPlInUx Linux - Networking 3 04-19-2004 11:49 AM
Firestarter esteeven Linux - Networking 1 05-27-2002 10:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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