FS#60695 - [screen] Directory "/run/screens" must have mode 777

Attached to Project: Arch Linux
Opened by Andreas Schmidt (schmidtandreas) - Sunday, 04 November 2018, 09:42 GMT
Last edited by Gaetan Bisson (vesath) - Sunday, 04 November 2018, 23:02 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Gaetan Bisson (vesath)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
screen need directory /run/screens with permissions 777.
If /run/screens does not have mode 777, then screen does
not start (non-root execution) and print follow error:
"Directory '/run/screens' must have mode 777."

Directory /run/screens whith wrong permissions
will create by:
/usr/lib/tmpfiles.d/screen.conf
conf-file, which is a part of screen package.

Content of /usr/lib/tmpfiles.d/screen.conf:
"d /run/screens 0755 root root -"

To fix this issue please change the content to:
"d /run/screens 0777 root root -"

Additional info:
* package version of screen: 4.6.2-1
* /usr/lib/tmpfiles.d/screen.conf


Steps to reproduce:
Just start screen as non-root
This task depends upon

Closed by  Gaetan Bisson (vesath)
Sunday, 04 November 2018, 23:02 GMT
Reason for closing:  Works for me
Comment by Gaetan Bisson (vesath) - Sunday, 04 November 2018, 18:44 GMT
That is a surprising bug report. Obviously screen works without root permissions for myself and countless other Arch users, or the PKGBUILD wouldn't have remained in its current state for years.

What I need to resolve this issue is either:
- An official recommendation from upstream to have /run/screens in mode 0777, with an explanation of why mode 0755 is not good enough.
- A detailed description of your setup so I can reproduce the error message: "Directory '/run/screens' must have mode 777."
Comment by Gaetan Bisson (vesath) - Sunday, 04 November 2018, 18:45 GMT
Could you show me the output of `stat /usr/bin/screen-4.6.2`?
Comment by Andreas Schmidt (schmidtandreas) - Sunday, 04 November 2018, 21:09 GMT
Ohh sorry, my mistake was that /usr/bin/screen-4.6.2 has no "s" flag (4755) user execute permissions any more :(
And while I create outputs with "stat /usr/bin/screen", I notice that.
This was failed experiment by my site and happen in different context. This issue can be closed.

Thank you for support!
Sorry for disruption!

Have a nice day!

Andreas
Comment by Gaetan Bisson (vesath) - Sunday, 04 November 2018, 23:02 GMT
Good to hear you've identified the issue. The SUID bit was indeed one of the things I wanted to check asking you for `stat` output. Cheers.

Loading...