Page 1 of 1

Fehlermeldung Firewall "sudo: a terminal is required to read the password"

Posted: Thu 29. Oct 2020, 09:05
by racmo
Guten Morgen,

wenn ich die neue von Keyhelp 20.3 aktivieren will, erhalte ich leider die Fehlermeldung:

Code: Select all

Fehler beim Übernehmen der Firewall-Regeln.
sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
Grüße

Re: Fehlermeldung Firewall "sudo: a terminal is required to read the password"

Posted: Thu 29. Oct 2020, 09:22
by Alexander
Hallo,

Kannst du mal schauen, an welcher Stelle bei dir im System die iptables binaries liegen (CLI Befehl z.b.: "locate iptables") und wie deine /etc/sudoers.d/keyhelp aussieht. Als Bonus, gern auch mal deine KeyHelp-Build Nummer - zu finden auf dem Admin-Dashboard, neben der KeyHelp-Versionsnummer.

Die Angaben bräuchte ich einmal, dann kann ich dir weiterhelfen.

Re: Fehlermeldung Firewall "sudo: a terminal is required to read the password"

Posted: Thu 29. Oct 2020, 09:41
by racmo
Hallo,

bei der Abfrage von "locate iptables" kommt gar nichts.

/etc/sudoers.d/keyhelp

Code: Select all

# Manage system services
keyhelp ALL = (ALL) NOPASSWD: /usr/sbin/service

# Mail queue management
keyhelp ALL = (ALL) NOPASSWD: /usr/sbin/postsuper

# Server reboot
keyhelp ALL = (ALL) NOPASSWD: /sbin/reboot

# Process management
keyhelp ALL = (ALL) NOPASSWD: /bin/kill

# Disk usage
keyhelp ALL = (ALL) NOPASSWD: /usr/bin/du
keyhelp ALL = (ALL) NOPASSWD: /usr/bin/test

# Firewall
keyhelp ALL = (ALL) NOPASSWD: /usr/sbin/iptables, /sbin/iptables
keyhelp ALL = (ALL) NOPASSWD: /usr/sbin/iptables-restore, /sbin/iptables-restore
keyhelp ALL = (ALL) NOPASSWD: /usr/sbin/iptables-save, /sbin/iptables-save
keyhelp ALL = (ALL) NOPASSWD: /usr/sbin/ip6tables, /sbin/ip6tables
keyhelp ALL = (ALL) NOPASSWD: /usr/sbin/ip6tables-restore, /sbin/ip6tables-restore
keyhelp ALL = (ALL) NOPASSWD: /usr/sbin/ip6tables-save, /sbin/ip6tables-save

# Last line must be empty, do not trim!

Die Keyhelp Build Nummer ist 2077

Re: Fehlermeldung Firewall "sudo: a terminal is required to read the password"  [GELÖST]

Posted: Thu 29. Oct 2020, 09:49
by Alexander
Dann ist iptables bei dir nicht installiert?! Installiere bitte einmal iptables (apt-get install iptables).

Re: Fehlermeldung Firewall "sudo: a terminal is required to read the password"

Posted: Thu 29. Oct 2020, 10:34
by racmo
Stimmt, war aus welchem Grund auch immer nicht installiert.

Danke dir )