How to start a tftp server using inetd?
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
add a comment |
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
Lets search for that service filesystemctl 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
add a comment |
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
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
server init.d tftp
edited Aug 8 '17 at 10:17
ams
asked Aug 8 '17 at 9:13
amsams
28412
28412
Lets search for that service filesystemctl 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
add a comment |
Lets search for that service filesystemctl 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
add a comment |
1 Answer
1
active
oldest
votes
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"
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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"
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
add a comment |
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"
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
add a comment |
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"
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"
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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