[Bug 1885717] Re: /etc/update-motd.d/50-motd-news not executable
Ulrike Hauschildt
1885717 at bugs.launchpad.net
Fri Aug 14 13:26:18 UTC 2020
** Changed in: base-files (Ubuntu)
Status: Incomplete => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to base-files in Ubuntu.
https://bugs.launchpad.net/bugs/1885717
Title:
/etc/update-motd.d/50-motd-news not executable
Status in base-files package in Ubuntu:
Confirmed
Bug description:
On new installed 18.04, just caught a failed process to start: motd-
news
root at xps13 ~# systemctl list-units --state=failed
UNIT LOAD ACTIVE SUB DESCRIPTION
● motd-news.service loaded failed failed Message of the Day
Looking close:
root at xps13 ~# systemctl status motd-news
● motd-news.service - Message of the Day
Loaded: loaded (/lib/systemd/system/motd-news.service; static; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2020-06-30 09:16:54 CEST; 5h 6min ago
Docs: man:update-motd(8)
Process: 12505 ExecStart=/etc/update-motd.d/50-motd-news --force (code=exited, status=203/EXEC)
Main PID: 12505 (code=exited, status=203/EXEC)
Jun 30 09:16:54 elxa7r5lmh2 systemd[1]: Starting Message of the Day...
Jun 30 09:16:54 elxa7r5lmh2 systemd[1]: motd-news.service: Main process exited, code=exited, status=203/EXEC
Jun 30 09:16:54 elxa7r5lmh2 systemd[1]: motd-news.service: Failed with result 'exit-code'.
Jun 30 09:16:54 elxa7r5lmh2 systemd[1]: Failed to start Message of the Day.
I could fix by a simple "chmod +x" to the file.
root at xps13 ~# /etc/update-motd.d/50-motd-news
fish: The file “/etc/update-motd.d/50-motd-news” is not executable by this user
root at xps13 ~# chmod 755 /etc/update-motd.d/50-motd-news
root at xps13 ~# /etc/update-motd.d/50-motd-news
So there are 2 bugs here:
1) missing executable permission on file
2) executable placement inside /etc directory
Extra info:
1) Description: Ubuntu 18.04.4 LTS
Release: 18.04
2) base-files:
Installed: 10.1ubuntu2.8
Candidate: 10.1ubuntu2.8
Version table:
*** 10.1ubuntu2.8 500
500 mirror://elx-install.lmera.ericsson.se/mirrors.txt bionic-updates/main amd64 Packages
100 /var/lib/dpkg/status
10.1ubuntu2.2 500
500 mirror://elx-install.lmera.ericsson.se/mirrors.txt bionic-security/main amd64 Packages
10.1ubuntu2 500
500 mirror://elx-install.lmera.ericsson.se/mirrors.txt bionic/main amd64 Packages
3) Not to crash would be much better
4) Crashed
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/base-files/+bug/1885717/+subscriptions
More information about the foundations-bugs
mailing list