How to start a tftp server using inetd?












0















I want to start a tftp server. Here, I am using inetd.



Configuration file for tftp in inetd.conf.d folder contains :



tftp dgram udp wait nobody /sbin/tftpd tftpd -l /var/tftp


I have changed the tftp folder permissions to 777 and owner to nobody.



When I am running:



 systemctl start /etc/init.d/tftpd


It is throwing this error:



Failed to start etc-init.d-tftpd.mount: Unit etc-init.d-tftpd.mount failed to load: No such file or directory.


What is this error is about ?
How can I solve this error ?



Any guidance is greatly appreciated.



Thank You...!










share|improve this question

























  • Lets search for that service file systemctl list-unit-files | grep -i tftpd

    – George Udosen
    Aug 8 '17 at 10:32











  • I executed that command and It shows nothing.

    – ams
    Aug 8 '17 at 12:16
















0















I want to start a tftp server. Here, I am using inetd.



Configuration file for tftp in inetd.conf.d folder contains :



tftp dgram udp wait nobody /sbin/tftpd tftpd -l /var/tftp


I have changed the tftp folder permissions to 777 and owner to nobody.



When I am running:



 systemctl start /etc/init.d/tftpd


It is throwing this error:



Failed to start etc-init.d-tftpd.mount: Unit etc-init.d-tftpd.mount failed to load: No such file or directory.


What is this error is about ?
How can I solve this error ?



Any guidance is greatly appreciated.



Thank You...!










share|improve this question

























  • Lets search for that service file systemctl list-unit-files | grep -i tftpd

    – George Udosen
    Aug 8 '17 at 10:32











  • I executed that command and It shows nothing.

    – ams
    Aug 8 '17 at 12:16














0












0








0


1






I want to start a tftp server. Here, I am using inetd.



Configuration file for tftp in inetd.conf.d folder contains :



tftp dgram udp wait nobody /sbin/tftpd tftpd -l /var/tftp


I have changed the tftp folder permissions to 777 and owner to nobody.



When I am running:



 systemctl start /etc/init.d/tftpd


It is throwing this error:



Failed to start etc-init.d-tftpd.mount: Unit etc-init.d-tftpd.mount failed to load: No such file or directory.


What is this error is about ?
How can I solve this error ?



Any guidance is greatly appreciated.



Thank You...!










share|improve this question
















I want to start a tftp server. Here, I am using inetd.



Configuration file for tftp in inetd.conf.d folder contains :



tftp dgram udp wait nobody /sbin/tftpd tftpd -l /var/tftp


I have changed the tftp folder permissions to 777 and owner to nobody.



When I am running:



 systemctl start /etc/init.d/tftpd


It is throwing this error:



Failed to start etc-init.d-tftpd.mount: Unit etc-init.d-tftpd.mount failed to load: No such file or directory.


What is this error is about ?
How can I solve this error ?



Any guidance is greatly appreciated.



Thank You...!







server init.d tftp






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 8 '17 at 10:17







ams

















asked Aug 8 '17 at 9:13









amsams

28412




28412













  • Lets search for that service file systemctl list-unit-files | grep -i tftpd

    – George Udosen
    Aug 8 '17 at 10:32











  • I executed that command and It shows nothing.

    – ams
    Aug 8 '17 at 12:16



















  • Lets search for that service file systemctl list-unit-files | grep -i tftpd

    – George Udosen
    Aug 8 '17 at 10:32











  • I executed that command and It shows nothing.

    – ams
    Aug 8 '17 at 12:16

















Lets search for that service file systemctl list-unit-files | grep -i tftpd

– George Udosen
Aug 8 '17 at 10:32





Lets search for that service file systemctl list-unit-files | grep -i tftpd

– George Udosen
Aug 8 '17 at 10:32













I executed that command and It shows nothing.

– ams
Aug 8 '17 at 12:16





I executed that command and It shows nothing.

– ams
Aug 8 '17 at 12:16










1 Answer
1






active

oldest

votes


















0














Working setup



Install following packages.



sudo apt-get install xinetd tftpd tftp


Create /etc/xinetd.d/tftp and put this entry



service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = /tftpboot
disable = no
}


Create a folder /tftpboot this should match whatever you gave in server_args. mostly it will be tftpboot



sudo mkdir /tftpboot
sudo chmod -R 777 /tftpboot
sudo chown -R nobody /tftpboot


Restart the xinetd service.



sudo /etc/init.d/xinetd restart


My suggestion is to move to tftpd-hpa



sudo apt install tftpd-hpa


After instalation edit conf file



sudo vi /etc/default/tftpd-hpa


file must contain something like this



TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/srv/tftp"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="--secure -c"





share|improve this answer


























  • Thank You. I have already used the xinetd. I want to setup tftp server with inetd as this is my project requirement.

    – ams
    Aug 8 '17 at 9:33













Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f944145%2fhow-to-start-a-tftp-server-using-inetd%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Working setup



Install following packages.



sudo apt-get install xinetd tftpd tftp


Create /etc/xinetd.d/tftp and put this entry



service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = /tftpboot
disable = no
}


Create a folder /tftpboot this should match whatever you gave in server_args. mostly it will be tftpboot



sudo mkdir /tftpboot
sudo chmod -R 777 /tftpboot
sudo chown -R nobody /tftpboot


Restart the xinetd service.



sudo /etc/init.d/xinetd restart


My suggestion is to move to tftpd-hpa



sudo apt install tftpd-hpa


After instalation edit conf file



sudo vi /etc/default/tftpd-hpa


file must contain something like this



TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/srv/tftp"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="--secure -c"





share|improve this answer


























  • Thank You. I have already used the xinetd. I want to setup tftp server with inetd as this is my project requirement.

    – ams
    Aug 8 '17 at 9:33


















0














Working setup



Install following packages.



sudo apt-get install xinetd tftpd tftp


Create /etc/xinetd.d/tftp and put this entry



service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = /tftpboot
disable = no
}


Create a folder /tftpboot this should match whatever you gave in server_args. mostly it will be tftpboot



sudo mkdir /tftpboot
sudo chmod -R 777 /tftpboot
sudo chown -R nobody /tftpboot


Restart the xinetd service.



sudo /etc/init.d/xinetd restart


My suggestion is to move to tftpd-hpa



sudo apt install tftpd-hpa


After instalation edit conf file



sudo vi /etc/default/tftpd-hpa


file must contain something like this



TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/srv/tftp"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="--secure -c"





share|improve this answer


























  • Thank You. I have already used the xinetd. I want to setup tftp server with inetd as this is my project requirement.

    – ams
    Aug 8 '17 at 9:33
















0












0








0







Working setup



Install following packages.



sudo apt-get install xinetd tftpd tftp


Create /etc/xinetd.d/tftp and put this entry



service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = /tftpboot
disable = no
}


Create a folder /tftpboot this should match whatever you gave in server_args. mostly it will be tftpboot



sudo mkdir /tftpboot
sudo chmod -R 777 /tftpboot
sudo chown -R nobody /tftpboot


Restart the xinetd service.



sudo /etc/init.d/xinetd restart


My suggestion is to move to tftpd-hpa



sudo apt install tftpd-hpa


After instalation edit conf file



sudo vi /etc/default/tftpd-hpa


file must contain something like this



TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/srv/tftp"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="--secure -c"





share|improve this answer















Working setup



Install following packages.



sudo apt-get install xinetd tftpd tftp


Create /etc/xinetd.d/tftp and put this entry



service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = /tftpboot
disable = no
}


Create a folder /tftpboot this should match whatever you gave in server_args. mostly it will be tftpboot



sudo mkdir /tftpboot
sudo chmod -R 777 /tftpboot
sudo chown -R nobody /tftpboot


Restart the xinetd service.



sudo /etc/init.d/xinetd restart


My suggestion is to move to tftpd-hpa



sudo apt install tftpd-hpa


After instalation edit conf file



sudo vi /etc/default/tftpd-hpa


file must contain something like this



TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/srv/tftp"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="--secure -c"






share|improve this answer














share|improve this answer



share|improve this answer








edited Feb 27 '18 at 9:29

























answered Aug 8 '17 at 9:29









27079742707974

8,11352238




8,11352238













  • Thank You. I have already used the xinetd. I want to setup tftp server with inetd as this is my project requirement.

    – ams
    Aug 8 '17 at 9:33





















  • Thank You. I have already used the xinetd. I want to setup tftp server with inetd as this is my project requirement.

    – ams
    Aug 8 '17 at 9:33



















Thank You. I have already used the xinetd. I want to setup tftp server with inetd as this is my project requirement.

– ams
Aug 8 '17 at 9:33







Thank You. I have already used the xinetd. I want to setup tftp server with inetd as this is my project requirement.

– ams
Aug 8 '17 at 9:33




















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f944145%2fhow-to-start-a-tftp-server-using-inetd%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Category:香港粉麵

List *all* the tuples!

Channel [V]