当我登录到TTY时,会看到以下漂亮的文字:
Ubuntu 16.04.03 LTS
Log-in: username
Password:
Last log-in date/time
Welcome to Ubuntu 16.04.03 LTS
* Documentation:
* Management:
* Support:
9 packages to update
4 updates are security updates
我希望每次为该adm
组中的所有用户打开一个GUI终端时都重复最后两行(但是每次我为所有用户打开一个GUI终端时,都会显示全部内容)
我尝试了明显的方法:
fab-root@fab-ux-predator:~
$ cd /etc/update-motd.d/
fab-root@fab-ux-predator:/etc/update-motd.d
$ ./90-updates-available
fab-root@fab-ux-predator:/etc/update-motd.d
$ cat /var/lib/update-notifier/updates-available
cat: /var/lib/update-notifier/updates-available: Permission denied
fab-root@fab-ux-predator:/etc/update-motd.d
$
我想念什么?
PS显然我可以chmod o+r
存档,但是那将是面向未来的吗?
这有点慢,但是会生成程序包/更新信息。将此附加到用户.bashrc
文件:
/usr/lib/update-notifier/apt-check --human-readable
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句