[CentOS-devel] pending updates notification on login

Pat Riehecky

riehecky at fnal.gov
Thu Jun 12 20:36:32 UTC 2014


On 06/12/2014 03:25 PM, Karanbir Singh wrote:
> On 06/12/2014 09:22 PM, Les Mikesell wrote:
>> On Thu, Jun 12, 2014 at 9:01 AM, Karanbir Singh <mail-lists at karan.org> wrote:
>>>> I checked further and older ubuntu releases used to use update-motd but
>>>> they've now modified pam_motd to invoke the scripts in
>>>> /etc/update-motd.d on login instead. I checked my RHEL7rc VM and those
>>>> modifications are not present there.
>>> this is just a super complex solution to a problem that is far simpler
>>> than it seems.
>>>
>>> if a yum-plugin is able to drop the number somewhere, an echo in .skel
>>> would be all the 'UI' we need, and if its there for the default user on
>>> instance bringup, the skel should get copied over ( and then the user
>>> can do whatever they please ) to all new users as well.
>>>
>>> would that be all we need here ?
>> Minor warning: if you are using backuppc to back up a host with rsync
>> over ssh, it will fail if there is any output before the rsync
>> startup.   Native rsync will ignore it, but not the backuppc server's
>> rsync-in-perl implementation.   So, randomly adding messages at login
>> may have side effects.
>>
> does it fail, with enough context to figure out what happened ? if so,
> we then just need to make it easy to turn off.
>
>
Similarly, putting the content in /etc/motd may have issues.

A few remote connection protocols offer up /etc/motd before users 
authenticate.  Sending out to anonymous users "You've got 300 un-applied 
updates" might be bad.

Pat

-- 
Pat Riehecky

Scientific Linux developer
http://www.scientificlinux.org/




More information about the CentOS-devel mailing list