add rsync example to inetd.conf Fix: see attachment Patch attached with submission follows:
For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped
I'll take a look.
I think this is a good example, but I do want to stress that I think it should include the phrase "for local connections only" since the rsync protocol provides no cryptographic protections against snooping on the data, and it's therefore better to pipe over ssh (or bbcp) when sending data over the internet.
Return the issue to the pool.
I've added this as part of review D28882.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=bc3bba70d834c169475302334b192bc90c17521e commit bc3bba70d834c169475302334b192bc90c17521e Author: Daniel Ebdrup Jensen <debdrup@FreeBSD.org> AuthorDate: 2021-02-26 19:05:46 +0000 Commit: Daniel Ebdrup Jensen <debdrup@FreeBSD.org> CommitDate: 2021-02-26 19:07:03 +0000 inetd: Add examples from manual page and other sources The manual page lists a bunch of examples, some of which already exist in this file. Since it's both easier to remember when all examples are listed in the same location, move examples so they get installed into /etc/inetd.conf This also means users won't have to copy-paste, but can simply uncomment one or more services to use them. As such, it also becomes necessary to remove the examples from the manual page, so instead add a note explaining where the previous examples as well as others may be found. Cross-references, including to ports, have also been added where applicable. The rsync example has lived in the bug tracker for too long, considering how useful it can situationally be, for example when backup jobs on client devices are run through periodic(8) weekly. The microsoft-ds entry is necessary for Windows 10 compatibility (this can be confirmed with packet capturing, as it is not readily documented at time of writing). While here, remove two examples for which compatible daemons could not be found in ports. Submitted by: David Yeske <dyeske at gmail.com> (in part, prev ver) PR: 122037 Reviewed by: kevans, brueffer, lwhsu, yuripv Differential Revision: https://reviews.freebsd.org/D28882 usr.sbin/inetd/inetd.8 | 88 +++++++++++++++++++++++++++++------------------ usr.sbin/inetd/inetd.conf | 42 ++++++++++++++++------ 2 files changed, 87 insertions(+), 43 deletions(-)
Even if it took a little while, thank you for your attention to detail. :)
Unfortunately there appears to be an error in the merge. I will paste my diff next. Index: inetd.conf =================================================================== RCS file: /home/ncvs/src/etc/inetd.conf,v retrieving revision 1.73 diff -u -r1.73 inetd.conf --- inetd.conf 5 Jul 2007 09:46:53 -0000 1.73 +++ inetd.conf 24 Mar 2008 08:00:30 -0000 @@ -118,3 +118,7 @@ #netbios-ssn stream tcp nowait root /usr/local/sbin/smbd smbd #netbios-ns dgram udp wait root /usr/local/sbin/nmbd nmbd #swat stream tcp nowait/400 root /usr/local/sbin/swat swat +# +# example entry for the optional rsync server +# +#rsync stream tcp nowait root /usr/local/bin/rsync rsyncd --daemon This is the rsync packing list bin/rsync bin/rsync-ssl sbin/rrsync man/man1/rrsync.1.gz man/man1/rsync.1.gz man/man1/rsync-ssl.1.gz man/man5/rsyncd.conf.5.gz @sample %%ETCDIR%%/rsyncd.conf.sample As you can see the example in /etc/inetd.conf has an error which is this line #rsync stream tcp nowait root /usr/local/bin/rsyncd rsyncd --daemon There is no binary called rsyncd. That is also not how I submitted it in the PR. I'm happy to make a merge request or do anything else to help with this. Thank you so much for appreciating my input.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=58a14d9596bd9a72683cbd725e817fdabe926139 commit 58a14d9596bd9a72683cbd725e817fdabe926139 Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2026-01-05 14:51:28 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2026-01-05 16:04:46 +0000 inetd.conf: Correct rsync example There is no rsyncd binary in the rsync package; rsync is just invoked with --daemon. PR: 122037 Sponsored by: The FreeBSD Foundation usr.sbin/inetd/inetd.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
A commit in branch stable/15 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=e4623f1a0c2072e66dd38990cf6e6e9e4869aa03 commit e4623f1a0c2072e66dd38990cf6e6e9e4869aa03 Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2026-01-05 14:51:28 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2026-01-07 15:47:04 +0000 inetd.conf: Correct rsync example There is no rsyncd binary in the rsync package; rsync is just invoked with --daemon. PR: 122037 Sponsored by: The FreeBSD Foundation (cherry picked from commit 58a14d9596bd9a72683cbd725e817fdabe926139) usr.sbin/inetd/inetd.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)