FWBuilder error sudo: sorry, you must have a tty to run sudo

Written by James McDonald

July 9, 2008

If you use fwbuilder to compile and install your firewall rules you may have come accross
“sudo: sorry, you must have a tty to run sudo”

This is caused by a setting in the /etc/sudoers file “Defaults requiretty”

As root run
visudo
and comment out that line with a hash symbol
# Defaults requiretty

This is posted here for my benefit and future reference only. I am not sure of what security implications making this change would have. I take no responsibility for anyone toasting their box or getting hacked as a result of this information. If in doubt don’t change the setting.

FWBuilder 2.1.16 on Windows
CentOS 5.x

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…

Squarespace Image Export

To gain continued access to your Squarespace website images after cancelling your subscription you have several...

MySQL 8.x GRANT ALL STATEMENT

-- CREATE CREATE USER 'tgnrestoreuser'@'localhost' IDENTIFIED BY 'AppleSauceLoveBird2024'; GRANT ALL PRIVILEGES ON...

Exetel Opt-Out of CGNAT

If your port forwards and inbound and/or outbound site-to-site VPN's have failed when switching to Exetel due to their...