Ich habe hier ein kleines Problem mit dem tftp.
wenn ich von einem Clientrecher auf den tftp zugreife:
Code: Alles auswählen
tftp 192.168.1.5
tftp> get test.txt
Transfer timed out.
In der syslog des Server erscheint während des Zugriffs:
Code: Alles auswählen
Jul 19 20:58:35 localhost in.tftpd[3097]: cannot set groups for user nobody
Jul 19 20:58:40 localhost in.tftpd[3098]: cannot set groups for user nobody
Jul 19 20:58:45 localhost in.tftpd[3102]: cannot set groups for user nobody
Jul 19 20:58:50 localhost in.tftpd[3103]: cannot set groups for user nobody
Jul 19 20:58:55 localhost in.tftpd[3104]: cannot set groups for user nobody
Daraufhin habe ich mal etwas gewerkelt:
inetd.conf:
Code: Alles auswählen
<service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /srv/tftp
Dann habe durch suchen in newsgroups etc dann noch das nachgeschaut:
Code: Alles auswählen
zortex@server:~$ id nobody
uid=65534(nobody) gid=65534(nogroup) Gruppen=65534(nogroup)
Code: Alles auswählen
zortex@server:~$ ls -l /srv
insgesamt 12
drwxr-xr-x 2 ftp nogroup 4096 2005-10-05 14:05 ftp
drwxr-xr-x 2 nobody nogroup 4096 2006-07-19 20:55 tftp
Code: Alles auswählen
zortex@server:~$ ls -l /srv/tftp
insgesamt 8
-rw-r--r-- 1 nobody nogroup 5 2006-07-19 20:55 test.txt
Es gibt den user nobody, die gruppe nogroup gibt es auch, nen PW habe ich natürlich nicht festgelegt, und den tftpd als root laufen lassen ist ja wohl nicht die lösung, oder??
Das hat mir google empfohlen, einfach aus dem nobody in der inetd.conf root machen.
Achja, test.txt enthält 2 Testsätze, also zu gross kann die Datei auch nicht sein.
Schonmal danke für's lesen bzw Eure Hilfe