Fab*_*bby 5 permissions command-line tty login groups
当我登录到 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
Run Code Online (Sandbox Code Playgroud)
我希望每次为adm组中的所有用户打开 GUI 终端时都重复最后 2 行(但每次我为所有用户打开 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
$
Run Code Online (Sandbox Code Playgroud)
我错过了什么?
PS 显然我可以保存chmod o+r文件,但是这将如何面向未来?
它有点慢,但它会生成包/更新信息。将其附加到用户.bashrc文件中:
/usr/lib/update-notifier/apt-check --human-readable
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
298 次 |
| 最近记录: |