Skip to content

Commit

Permalink
Added .hushlogin for root
Browse files Browse the repository at this point in the history
Disable all motd for root as fallback login in case the script fails and blocks regular login
  • Loading branch information
Stadicus committed Apr 1, 2018
1 parent b0315d2 commit 0c957f6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion raspibolt/raspibolt_61_system-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

*Difficulty: easy*

To get a quick overview over the system status, I created [a shell script](https://github.com/Stadicus/guides/blob/master/raspibolt/resources/20-raspibolt-welcome) that is shown on login or on demand.
To get a quick overview over the system status, I created [a shell script](https://github.com/Stadicus/guides/blob/master/raspibolt/resources/20-raspibolt-welcome) that is run as "message of the day" (motd) to be shown on login or on demand.

![MotD system overview](images/60_status_overview.png)

Expand All @@ -31,6 +31,14 @@ $ sudo chmod +x /etc/update-motd.d/20-raspibolt-welcome
$ sudo ln -s /etc/update-motd.d/20-raspibolt-welcome /usr/local/bin/raspibolt
```

In case the script runs into problems, it could theoretically prevent you from logging in. We therefore disable all motd execution for the "root" user, so you will always be able to login as "root" to disable it.

```
$ sudo su
$ touch /root/.hushlogin
$ exit
```

You can now start the script with `raspibolt` and it is shown every time you log in.

------
Expand Down

0 comments on commit 0c957f6

Please sign in to comment.