From Fedora Project Wiki
(Created page with "{{QA/Test_Case |description=A brief description of the functionality being tested. |setup=Optionally include information on preparing the test environment |actions= Be as spec...") |
No edit summary |
||
Line 1: | Line 1: | ||
{{QA/Test_Case | {{QA/Test_Case | ||
|description= | |description=Verify that tftp works without tcp_wrappers and is not affected by its configuration by default | ||
|setup= | |setup=Make sure your favorite software that could be using tcp_wrappers is installed, for example <code>tftp</code> | ||
<code>rpm -q tftp tftp-server</code> | |||
|actions= | |actions= | ||
# Check <code>tftp</code> <code>tftp-server</code> is NOT linked against libwrap: <code><nowiki>ldd /usr/bin/tftp |grep libwrap</nowiki></code> | |||
# | # Check if <code><nowiki>/var/lib/tftpboot</nowiki></code> is present as it's used for TFTP server directory | ||
# | # Execcute <code><nowiki> sudo firewall-cmd --add-service=tftp --permanent && firewall-cmd --reload && systemctl enable tftp && systemctl restart tftp</nowiki></code> | ||
# Execute <code><nowiki>echo "TCP Deprecate Test Day" | sudo tee /var/lib/tftpboot/testday.txt</nowiki></code> to put a file at <code>/var/lib/tftpboot</code> | |||
# Execute <code><nowiki>echo "get testday.txt" | tftp 127.0.0.1</nowiki></code> to get the file from tftp | |||
# cat testday.txt to get the text | |||
|results= | |results= | ||
# Step 1 completes without error | |||
# Step | # Step 2 directory should exist, if not run <code> sudo dnf install -y tftp tftp-server</code> | ||
# | # Step 3 completes without error | ||
# | # Step 5 prints <code> tftp> get testday.txt</code> | ||
|optional=Optionally provide hints for exploratory testing. | |optional=Optionally provide hints for exploratory testing. | ||
}} | }} |
Latest revision as of 03:16, 22 March 2018
Description
Verify that tftp works without tcp_wrappers and is not affected by its configuration by default
Setup
Make sure your favorite software that could be using tcp_wrappers is installed, for example tftp
rpm -q tftp tftp-server
How to test
- Check
tftp
tftp-server
is NOT linked against libwrap:ldd /usr/bin/tftp |grep libwrap
- Check if
/var/lib/tftpboot
is present as it's used for TFTP server directory - Execcute
sudo firewall-cmd --add-service=tftp --permanent && firewall-cmd --reload && systemctl enable tftp && systemctl restart tftp
- Execute
echo "TCP Deprecate Test Day" | sudo tee /var/lib/tftpboot/testday.txt
to put a file at/var/lib/tftpboot
- Execute
echo "get testday.txt" | tftp 127.0.0.1
to get the file from tftp - cat testday.txt to get the text
Expected Results
- Step 1 completes without error
- Step 2 directory should exist, if not run
sudo dnf install -y tftp tftp-server
- Step 3 completes without error
- Step 5 prints
tftp> get testday.txt
Optional
Optionally provide hints for exploratory testing.