Enhancement #2845

Release file and MOTD

Added by Giacomo Sanchietti almost 7 years ago. Updated over 6 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-release
Target version:v6.6-beta1
Resolution: NEEDINFO:No

Description

After every upgrade of centos-release rpm, both /etc/system-release and /etc/redhat-release files are replaced with the ones from the package.
In this case the NethServer rebrand is lost (see /etc/e-smith/events/actions/nethserver-release-rebrand).

I'd like to remove the current rebrand of both files.
Eventually we can add a MOTD pointing out some basic information about the NethServer installation, for example:


***** Welcome to NethServer *****

This is a NethServer installation. Before editing configuration files, be aware of the automatic event and templates system.
See developer manual for more information.

To enable the MOTD in SSH daemon, make sure to set PrintMotd option to yes.

Associated revisions

Revision 17ebaa8b
Added by Giacomo Sanchietti over 6 years ago

Remove rebrand action. Refs #2845

Revision cca3e9f7
Added by Giacomo Sanchietti over 6 years ago

sshd_config template: defalt PrintMotd to yes. Refs #2845

Revision 48062623
Added by Giacomo Sanchietti over 6 years ago

Merge branch 'b2845' into b2785. Refs #2845

Revision 064607c9
Added by Davide Principi over 6 years ago

Merge branches: Refs #2785 #2845

Revision 46cffaa9
Added by Davide Principi over 6 years ago

Removed /etc/nethserver-release template. Refs #2845

Dropped also setversion script. No longer useful.

Revision d7a54c67
Added by Giacomo Sanchietti over 6 years ago

Add motd template. Refs #2845

Revision 364dddaf
Added by Giacomo Sanchietti over 6 years ago

motd template: fix typo. Refs #2845

History

#1 Updated by Filippo Carletti almost 7 years ago

  • Target version set to ~FUTURE

#2 Updated by Filippo Carletti almost 7 years ago

  • Target version changed from ~FUTURE to v6.6-beta1

#3 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from NEW to TRIAGED
  • % Done changed from 0 to 20

#4 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Giacomo Sanchietti
  • % Done changed from 20 to 30

#5 Updated by Davide Principi over 6 years ago

Giacomo Sanchietti wrote:

To enable the MOTD in SSH daemon, make sure to set PrintMotd option to yes.

+1, to set PrintMotd yes by default

#6 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from ON_DEV to MODIFIED
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 30 to 60
Implemented in:
  • nethserver-openssh: branch b2785
  • nethserver-release: branch b2845

No default MOTD added.

#7 Updated by Davide Principi over 6 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70

In nethserver-testing (6.6):
nethserver-openssh-1.0.7-6.0gitcb5f3f94.ns6_6.noarch.rpm
nethserver-release-6.6-0.2.beta1.ns6_6.noarch.rpm

#8 Updated by Filippo Carletti over 6 years ago

  • Status changed from ON_QA to TRIAGED
  • % Done changed from 70 to 20

1. Release OK
[root@server ~]# cat /etc/redhat-release
CentOS release 6.6 (Final)

2. motd not displayed on ssh login
[root@server ~]# cat /etc/motd
[root@server ~]# rpm -q --changelog nethserver-openssh | head
  • Tue Dec 09 2014 Giacomo Sanchietti <> - 1.0.8-1.ns6
    - ssh access remains public when set to private - Bug #2970 [NethServer]
    - Release file and MOTD - Enhancement #2845 [NethServer]
    - Drop TCP wrappers hosts.allow hosts.deny templates - Enhancement #2785 [NethServer]

#9 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Giacomo Sanchietti
  • % Done changed from 20 to 30

#10 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from ON_DEV to MODIFIED
  • % Done changed from 30 to 60

#11 Updated by Giacomo Sanchietti over 6 years ago

Added a new simple MOTD template.

#12 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from MODIFIED to ON_QA
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 60 to 70
Package in nethserver-testing:
  • nethserver-release-6.6-0.4.beta1.5gitFinal.ns6.noarch.rpm

#13 Updated by Filippo Carletti over 6 years ago

  • Status changed from ON_QA to VERIFIED
  • % Done changed from 70 to 90
# cat /etc/e-smith/templates/etc/ssh/sshd_config/60PrintMotd 
PrintMotd yes

motd displayed on ssh login:

Last login: Thu Jan 22 10:32:01 2015

************ Welcome to NethServer ************

This is a NethServer installation. 

Before editing configuration files, be aware 
of the automatic event and templates system.

          http://docs.nethserver.org

***********************************************

#14 Updated by Davide Principi over 6 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100

In nethserver-base 6.6
nethserver-release-6.6-0.5.beta1.7.g98e6093.ns6.noarch.rpm
nethserver-openssh-1.0.8-4.0git9a4d1d80.ns6.noarch.rpm

Also available in: Atom PDF