Linuxer, ex IBMer. GNU https://hmchzb19.github.io/
全部博文(297)
分类: LINUX
2015-09-08 10:04:22
1. 首先是安装xinetd 和tftp server.
点击(此处)折叠或打开
2. 然后修改xinetd 的配置,tftp的配置文件是/etc/xinetd.d/tftp
需要把disable 修改成no.
点击(此处)折叠或打开
点击(此处)折叠或打开
点击(此处)折叠或打开
Simply whether or not to run this service. Set it to "no" if you want to activate the service. Note that "enable = yes" doesn't work.
Stream, dgram, raw, or seqpacket.
Determines whether or not the service can accept multiple connections. If "yes", xinetd won't accept new connections for this service until the active one exits.
The user id for the process. Of course xinetd.d would have to be running as root to start with if you wanted it to be able to run a process as someone else.
The actual executable to run. Note this is NOT used to look up port numbers in /etc/services: it's the name of the file itself that is used for that lookup. So if xinetd sees a connection coming in on tcp port 23, it looks in /etc/services, finds that is "telnet", and then looks in the file "telnet" here to determine what to do. Note that there is a "port" attribute (not used here) that can be used if the service doesn't exist in /etc/services, but if it DOES exist, "port" needs to match.
Don't confuse this with "group" (not used here) that would take a group name or id. What this determines is whether or not the service will have access to the supplementary groups that it would otherwise have from its effective id (from "user" above).
There are a number of possible flag settings. Usually you'll see REUSE as above, which is somewhat amusing because that one isn't documented in the man page of some distributions. More amusing is that the reason it isn't documented is that it's a deprecated flag: that is the default now. Reuse lets you accept multiple connections to the same port.