LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-02-2004, 04:48 PM   #1
chromedog
LQ Newbie
 
Registered: Apr 2004
Distribution: redhat fedora core
Posts: 15

Rep: Reputation: 0
redhat-config-securitylevel and SAMBA


has anyone successfully modified the redhat-config-securitylevel utility to add ports for SAMBA??

in redhat fedora core 1, i have modified lines 129 - 130 and 198 of the python script /usr/share/redhat-config-securitylevel/securitylevel.py (inserted the bold text)

lines 129, 130: add the bold portions, and yes, the long bolded section at the end isn't a mistake

self.serviceDict = {"SSH":"ssh:tcp", "Telnet":"telnet:tcp", "WWW (HTTP)":"http:tcp",
_("Mail (SMTP)"):"smtp:tcp", "FTP":"ftp:tcp", "SAMBA (139:TCP)":"netbios-ssn:tcp", "SAMBA (445:TCP)":"microsoft-ds:tcp", "SAMBA (137:UDP)":"netbios-ns:udp","SAMBA (138:UDP)":"netbios-dgm:udp"}

line 198: delete the coloured portion

args.append('--port=' + self.serviceDict[service] + ':tcp')

this works perfectly, but the list is cleared every time you start it up. i'm sure anyone who knows python would have it working properly in seconds. fix the part where it reads in the state of the sysconfig file and sets self.incomingList.get_active[ ]

hope this helps someone.

Last edited by chromedog; 05-02-2004 at 07:04 PM.
 
  


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
system-config-securitylevel mnauta Fedora 2 11-20-2004 04:45 PM
Set up dcc and timeserver with system-config-securitylevel fedetxf Fedora 0 08-17-2004 07:34 PM
redhat-config-securitylevel constantly on "high"... tom_on_linux Linux - Networking 4 07-07-2004 08:09 AM
redhat-config-securitylevel, cannot specify other ports? nsong Linux - Software 2 03-10-2004 08:47 PM
Bypassing lokkit, gnome-lokkit and redhat-config-securitylevel on RedHat 8.0 Son77 Linux - Security 3 10-18-2002 03:35 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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