[Bug 1761997] Re: /var/run needs mode 777 in bionic
Axel Beckert
abe at debian.org
Thu Jul 19 15:35:14 UTC 2018
Hi Brian,
Brian Murray wrote:
> /run/screen has the following permissions
>
> drwxrwxr-x 3 root utmp 60 Jul 19 06:06 screen
Thanks. This is indeed not the expected setting.
> screen-cleanup is a masked service in response to bug 1462692, so the
> permissions of /run/screen are never changed in Ubuntu 16.04.
Hrm, but 4.3.1-2build1 in 16.04 should also already have generated
/etc/tmpfiles.d/screen-cleanup.conf during postinst. (That was fixed
in the same upload as #1462692.)
And 16.04 already had systemd as default if not only init system.
> bdmurray at clean-xenial-amd64:~$ sudo service screen-cleanup status
> [sudo] password for bdmurray:
> ● screen-cleanup.service
> Loaded: masked (/dev/null; bad)
> Active: inactive (dead)
> bdmurray at clean-xenial-amd64:~$ ls -lh /lib/systemd/system/screen-cleanup.service
> lrwxrwxrwx 1 root root 9 Oct 4 2016 /lib/systemd/system/screen-cleanup.service -> /dev/null
Please also check the existence and contents of
/etc/tmpfiles.d/screen-cleanup.conf before and after upgrading.
Regards, Axel
--
,''`. | Axel Beckert <abe at debian.org>, https://people.debian.org/~abe/
: :' : | Debian Developer, ftp.ch.debian.org Admin
`. `' | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5
`- | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/1761997
Title:
/var/run needs mode 777 in bionic
Status in screen package in Ubuntu:
Triaged
Status in ubuntu-release-upgrader package in Ubuntu:
New
Bug description:
[Test Case]
1) have an Ubuntu 16.04
2) rm /etc/cron.daily/mlocate (this'll ensure you get a conffile prompt)
3) ssh to Ubuntu 16.04 system so the release upgrade is run in screen
4) run do-release-upgrade -d
5) wait for the conffile prompt from mlocate
6) ssh to the Ubuntu 16.04 system being upgraded
7) sudo -i
8) run screen -rd
With the version of screen in the release pocket you'll receive the
following error:
root at clean-xenial-amd64:~# screen -rd
Directory '/run/screen' must have mode 777.
[Original Description]
I saw some odd behaviour of screen during the upgrade from Xenial to Bionic using do-release-upgrade. I was trying to use screen to reattach to an upgrade process that had gone sideways during a router daemon upgrade (duh). But I was told that the permissions on /run/screen needed to be 777. Does the bionic version of screen have that as a requirement? And if so, perhaps do-release-upgrade should set those permissions in anticipation of the upgrade process so that screen works with both old and new versions.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/screen/+bug/1761997/+subscriptions
More information about the foundations-bugs
mailing list