1. su
2. visudo
3.下面是添加完的结果。
## Allow root to run any commands anywhere
root
hsu0301 ALL=(ALL)
service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = ~/tftp
disable = no
}
sudo mkdir ~/tftp
sudo chmod -R 777 ~/tftp
sudo chown -R nobody ~/tftp
service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = /home/jim.hsu/tftp
disable = no
}