Red Hat Bugzilla – Bug 167929
Bad: Can't start system-config-securitylevel
Last modified: 2007-11-30 17:11:13 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.4; Linux 2.6.11-1.1369_FC4; X11; i686) KHTML/3.4.2 (like Gecko)
Description of problem:
I executed system-config-securitylevel and add "10080:tcp" to the "other port"
field. I clicked on "OK" to save the settings. I restarted
system-config-securitylevel and "10080:tcp" became "amanda:tcp". I added
",10021:tcp" to "other port". I clicked on "OK" to save the settings. I could
not start system-config-securitylevel anymore. Here was the error message from
Traceback (most recent call last):
18, in ?
File "/usr/share/system-config-securitylevel/securitylevel.py", line 453, in
File "/usr/share/system-config-securitylevel/securitylevel.py", line 353, in
protoname = socket.getservbyport(int(service), protocol)
socket.error: port/proto not found
I edited /etc/sysconfig/system-config-securitylevel and removed the line
"--port=10021:tcp". I could start system-config-securitylevel again. This bug
does not exist in Fedora Core 3
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Execute system-config-securitylevel and add "10080:tcp" to the "other port"
field. Click on "OK" to save the settings.
2. Restart system-config-securitylevel and add ",10021:tcp" to "other port".
Click on "OK" to save the settings.
3. system-config-securitylevel can't be started anymore.
Actual Results: Fail to start system-config-securitylevel
Expected Results: Able to start system-config-securitylevel
I suppose system-config-securitylevel does not take any port in "other port"
field which does not have a name. 10080:tcp has a name amanda but 10021:tcp
does not have a name. Having a port without a name causes
system-config-securitylevel to fail to start.
A workaround is adding lines like
to the /etc/services
(In reply to comment #1)
> A workaround is adding lines like
> "servname 10080/tcp"
> to the /etc/services
That solves the problem but system-config-securitylevel should take any port
number regardless of /etc/services.