Created attachment 266176 [details] login The copyright in login.conf(5) does not take effect. According to https://github.com/freebsd/freebsd-src/commit/d6719cfbe106665cad6c5cbaaead92c343523741 , users need to manually copy /COPYRIGHT to /etc/, since /etc/COPYRIGHT does not exist by default. However, after I copied it manually, the contents of COPYRIGHT did not appear either before or after login. I suspect interference from the motd service, but disabling motd still did not make the COPYRIGHT text appear. My system is a fresh installation of 15.0-RELEASE. No third-party software has been installed, and this applies to both the root user and the user I created, ykla. Additionally, there is no .hushlogin file in their home directories that would prevent display. I believe this might be a bug.
(In reply to ykla from comment #0) This seems to have been removed in https://github.com/freebsd/freebsd-src/commit/905571c0311920c9a0cde9c6632b52466b92903a This can either be brought back _or_ the documentation needs updating.
What documentation needs updating?
(In reply to Alexander Ziaee from comment #2) Looks like https://github.com/freebsd/freebsd-src/commit/905571c0311920c9a0cde9c6632b52466b92903a removed the printing of the copyright notice on login. So the two options are: a) to bring the old code back if it is desired behavior b) update the manpage for login.conf(5) because it does mention the copyright setting. "copyright file File containing additional copyright information" Same for login(1): "Immediately after logging a user in, login displays the system copyright notice, the date and time the user last logged in, the message of the day as well as other information."
Minimum Reproduction Steps. ``` # cp /COPYRIGHT /etc/COPYRIGHT # service motd disable # or test by enable ``` For `/etc/login.conf` ``` default:\ :passwd_format=sha512:\ :copyright=/etc/COPYRIGHT:\ ``` The copyright not work.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=5917f9571dabddf28f95d15c17b65dc163628d44 commit 5917f9571dabddf28f95d15c17b65dc163628d44 Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2025-12-14 16:43:51 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2025-12-14 16:48:06 +0000 login.1: Remove mention of login copyright display PR: 291649 Fixes: 905571c03119 ("Remove copyright strings printed at login time via login(1) or sshd(8).") usr.bin/login/login.1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
(In reply to commit-hook from comment #5) Sorry, let me make myself clearer. At present, line 26 of https://github.com/freebsd/freebsd-src/blob/main/usr.bin/login/login.conf (this is the default configuration file), as well as line 291 of https://github.com/freebsd/freebsd-src/blob/main/lib%2Flibutil%2Flogin.conf.5, still retain the interface for enabling this feature and the instructions for its use. Considering that it was already removed more than a decade ago, please consider removing these as well. Thank you very much.
(In reply to ykla from comment #6) I took the liberty to create a pull request for it: https://github.com/freebsd/freebsd-src/pull/1926
(In reply to Simon Wollwage from comment #7) I think you should also remove follow line in the :copyright=/etc/COPYRIGHT:\ https://github.com/freebsd/freebsd-src/blob/main/lib%2Flibutil%2Flogin.conf.5 Thanks. And the above lines appear at least three times in the current FreeBSD handbook; considering that the FreeBSD doceng team hardly accepts any contributor PRs other than status reports, it may therefore be necessary to cc the doceng team again to completely resolve this consistency issue.
> considering that the FreeBSD doceng team hardly accepts any contributor PRs I am on the doceng team. I accept at least several contributor PRs month, and this comment is quite rude. When I don't accept patches, it is because it is not straightforward, or the submitter does not want to do the additional work to make the patch correct, or I disagree with the patch. > it may therefore be necessary to cc the doceng team again Send the patch to the handbook. This is straightforward and I would love to merge a patch to the handbook.
I removed the text from login.1 because it is certainly incorrect today. I left login.conf.5 for now as it is less clear: login_getcapstr(3) is a public interface and can still be used to get the "copyright" string login capability. A program in ports or some 3rd party software could do so. I've opened https://reviews.freebsd.org/D54237 to update the default login.conf
(In reply to Ed Maste from comment #10) Oh, just saw the mention of that. Then should I cancel the existing pull request on Github or can you comment on it? I am unsure of the proper procedure. Unfortunately I only saw the reply after updating the pull request.
(In reply to Simon Wollwage from comment #11) I think you should keep it open.
(In reply to Alexander Ziaee from comment #9) I apologize if my previous comment came across the wrong way. Iām not complaining about or criticizing anyone. From my own experience, changes to doc submitted without prior coordination sometimes end up taking much longer to resolve. I only wanted to suggest that, when possible, checking with doceng in advance might help avoid that situation. Thanks for your work.
(In reply to ykla from comment #13) I accept your apology and I appreciate your work too
I made a pass trough the handbook to remove any mentions of the copyright setting: https://github.com/freebsd/freebsd-doc/pull/580
A commit in branch stable/15 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=51e30d5adfb910b2130eec82d356b88404df250d commit 51e30d5adfb910b2130eec82d356b88404df250d Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2025-12-14 16:43:51 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2025-12-19 02:47:50 +0000 login.1: Remove mention of login copyright display PR: 291649 Fixes: 905571c03119 ("Remove copyright strings printed at login time via login(1) or sshd(8).") (cherry picked from commit 5917f9571dabddf28f95d15c17b65dc163628d44) usr.bin/login/login.1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=54ce6b2c4c163d85b2a8804edbac69d4e8cb3355 commit 54ce6b2c4c163d85b2a8804edbac69d4e8cb3355 Author: Simon Wollwage <rootnode+freebsd@wollwage.com> AuthorDate: 2025-12-15 06:27:19 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2026-01-09 21:13:37 +0000 login.conf.5: Remove mention of login copyright setting PR: 291649 Fixes: 905571c03119 ("Remove copyright strings printed at login time via login(1) or sshd(8).") Signed-off-by: Simon Wollwage rootnode+freebsd@wollwage.com Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1926 lib/libutil/login.conf.5 | 3 +-- usr.bin/login/login.conf | 2 -- usr.sbin/etcupdate/tests/conflicts_test.sh | 2 -- usr.sbin/etcupdate/tests/tests_test.sh | 1 - 4 files changed, 1 insertion(+), 7 deletions(-)
(In reply to commit-hook from comment #17) This commit seems to break a couple etcupdate tests in CI: https://ci.freebsd.org/view/Test/job/FreeBSD-main-amd64-test/27595/testReport/ I've bisected to this commit, @Simon can you take a look? You can repro the failure locally with Bricoler: $ bricoler run freebsd-src-regression-suite --param freebsd-src:url=/usr/src --param freebsd-src:branch= --param freebsd-src-regression-suite:hypervisor=bhyve --param freebsd-src-regression-suite:memory=4096 --param freebsd-src-regression-suite:ncpus=2 --param freebsd-src-regression-suite:parallelism=1 --param freebsd-src-regression-suite:count=1 --param freebsd-src-regression-suite:tests='usr.sbin/etcupdate'
(In reply to Siva Mahadevan from comment #18) See: https://github.com/freebsd/freebsd-src/pull/1962
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=b0c2236f0390ac4a04da2c4b9cd5ecd6bd80d53c commit b0c2236f0390ac4a04da2c4b9cd5ecd6bd80d53c Author: Jose Luis Duran <jlduran@FreeBSD.org> AuthorDate: 2026-01-12 05:09:28 +0000 Commit: Jose Luis Duran <jlduran@FreeBSD.org> CommitDate: 2026-01-12 17:10:48 +0000 etcupdate: tests: Fix tests Fix test login.conf files and update their MD5 checksums. PR: 291649 Reviewed by: imp Fixes: 54ce6b2c4c16 ("login.conf.5: Remove mention of login copyright setting") Pull Request: https://github.com/freebsd/freebsd-src/pull/1962 usr.sbin/etcupdate/tests/conflicts_test.sh | 5 +++-- usr.sbin/etcupdate/tests/tests_test.sh | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-)
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/doc/commit/?id=f3df4460ebd1eb72156b930729da05e17534b1ed commit f3df4460ebd1eb72156b930729da05e17534b1ed Author: Simon Wollwage <rootnode+freebsd@wollwage.com> AuthorDate: 2025-12-16 06:00:48 +0000 Commit: Alexander Ziaee <ziaee@FreeBSD.org> CommitDate: 2026-02-03 18:12:32 +0000 handbook/login.conf: Remove :copyright setting PR: 291649 Ref: src:905571c03119 Reviewed by: ziaee Closes: https://github.com/freebsd/freebsd-doc/pull/580 documentation/content/de/books/handbook/mac/_index.adoc | 2 -- documentation/content/de/books/handbook/network-servers/_index.adoc | 1 - documentation/content/el/books/handbook/mac/_index.adoc | 2 -- documentation/content/el/books/handbook/network-servers/_index.adoc | 1 - documentation/content/en/books/handbook/mac/_index.adoc | 2 -- documentation/content/en/books/handbook/mac/_index.po | 2 -- documentation/content/en/books/handbook/network-servers/_index.adoc | 1 - documentation/content/en/books/handbook/network-servers/_index.po | 1 - documentation/content/fr/books/handbook/network-servers/_index.adoc | 1 - documentation/content/hu/books/handbook/mac/_index.adoc | 2 -- documentation/content/hu/books/handbook/network-servers/_index.adoc | 1 - documentation/content/it/books/handbook/network-servers/_index.adoc | 1 - .../content/ja/books/handbook/advanced-networking/_index.adoc | 1 - documentation/content/mn/books/handbook/mac/_index.adoc | 2 -- documentation/content/mn/books/handbook/network-servers/_index.adoc | 1 - documentation/content/nl/books/handbook/mac/_index.adoc | 2 -- documentation/content/nl/books/handbook/network-servers/_index.adoc | 1 - documentation/content/pl/books/handbook/mac/_index.adoc | 2 -- documentation/content/pl/books/handbook/network-servers/_index.adoc | 1 - documentation/content/pt-br/books/handbook/mac/_index.adoc | 2 -- .../content/pt-br/books/handbook/network-servers/_index.adoc | 1 - documentation/content/ru/books/handbook/mac/_index.adoc | 2 -- documentation/content/ru/books/handbook/mac/_index.po | 4 ---- documentation/content/ru/books/handbook/network-servers/_index.adoc | 1 - documentation/content/ru/books/handbook/network-servers/_index.po | 2 -- documentation/content/zh-cn/books/handbook/mac/_index.adoc | 2 -- .../content/zh-cn/books/handbook/network-servers/_index.adoc | 1 - documentation/content/zh-tw/books/handbook/mac/_index.adoc | 2 -- .../content/zh-tw/books/handbook/network-servers/_index.adoc | 1 - 29 files changed, 45 deletions(-)
^Triage: is there anything further that needs to be done with this Problem Report?
Done. Thanks.