Bug 291649 - login(1)/login.conf(5): Stale COPYRIGHT doc in manuals and handbook
Summary: login(1)/login.conf(5): Stale COPYRIGHT doc in manuals and handbook
Status: Closed FIXED
Alias: None
Product: Documentation
Classification: Unclassified
Component: Books & Articles (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Ed Maste
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-14 05:20 UTC by ykla
Modified: 2026-07-19 01:38 UTC (History)
6 users (show)

See Also:


Attachments
login (16.15 KB, image/png)
2025-12-14 05:20 UTC, ykla
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description ykla 2025-12-14 05:20:26 UTC
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.
Comment 1 Simon Wollwage freebsd_triage 2025-12-14 07:15:10 UTC
(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.
Comment 2 Alexander Ziaee freebsd_committer freebsd_triage 2025-12-14 13:59:46 UTC
What documentation needs updating?
Comment 3 Simon Wollwage freebsd_triage 2025-12-14 15:44:08 UTC
(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."
Comment 4 ykla 2025-12-14 16:40:58 UTC
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.
Comment 5 commit-hook freebsd_committer freebsd_triage 2025-12-14 16:48:57 UTC
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(-)
Comment 6 ykla 2025-12-14 23:19:18 UTC
(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.
Comment 7 Simon Wollwage freebsd_triage 2025-12-15 06:31:05 UTC
(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
Comment 8 ykla 2025-12-15 15:58:35 UTC
(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.
Comment 9 Alexander Ziaee freebsd_committer freebsd_triage 2025-12-15 16:12:51 UTC
> 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.
Comment 10 Ed Maste freebsd_committer freebsd_triage 2025-12-15 16:29:25 UTC
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
Comment 11 Simon Wollwage freebsd_triage 2025-12-15 16:35:19 UTC
(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.
Comment 12 ykla 2025-12-15 17:28:55 UTC
(In reply to Simon Wollwage from comment #11)
I think you should keep it open.
Comment 13 ykla 2025-12-15 17:36:23 UTC
(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.
Comment 14 Alexander Ziaee freebsd_committer freebsd_triage 2025-12-15 17:51:39 UTC
(In reply to ykla from comment #13)

I accept your apology and I appreciate your work too
Comment 15 Simon Wollwage freebsd_triage 2025-12-16 06:03:33 UTC
I made a pass trough the handbook to remove any mentions of the copyright setting: https://github.com/freebsd/freebsd-doc/pull/580
Comment 16 commit-hook freebsd_committer freebsd_triage 2025-12-19 02:49:15 UTC
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(-)
Comment 17 commit-hook freebsd_committer freebsd_triage 2026-01-09 21:25:54 UTC
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(-)
Comment 18 Siva Mahadevan freebsd_committer freebsd_triage 2026-01-11 21:10:01 UTC
(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'
Comment 19 Jose Luis Duran freebsd_committer freebsd_triage 2026-01-12 06:05:35 UTC
(In reply to Siva Mahadevan from comment #18)
See: https://github.com/freebsd/freebsd-src/pull/1962
Comment 20 commit-hook freebsd_committer freebsd_triage 2026-01-12 17:11:55 UTC
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(-)
Comment 21 commit-hook freebsd_committer freebsd_triage 2026-02-03 18:48:05 UTC
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(-)
Comment 22 Mark Linimon freebsd_committer freebsd_triage 2026-07-18 18:21:31 UTC
^Triage: is there anything further that needs to be done with this Problem
Report?
Comment 23 ykla 2026-07-19 01:38:38 UTC
Done. Thanks.