LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   permissions on /var/run/screen changing after reboot (https://www.linuxquestions.org/questions/linux-software-2/permissions-on-var-run-screen-changing-after-reboot-939724/)

fakie_flip 04-13-2012 09:45 PM

permissions on /var/run/screen changing after reboot
 
Each time I boot into Fedora, I normally have a gnome-terminal open automatically with a screen session, but lately, that's not happening anymore. So I am opening a terminal manually to run screen, and I get

Code:

bull•~» screen -S xyz                                                                                                    [21:40:44]
Directory '/var/run/screen' must have mode 755.
bull•~»

So each time, I chmod it accordingly, yet it continues the issue continues to happen after a reboot. All I did was give the screen executable the suid bit

Code:

bull•~» ls -l $(which screen)                                                                                            [21:41:10]
-rwsr-sr-x. 1 root screen 438840 Dec 20 07:03 /usr/bin/screen
bull•~»

so that I could share screen sessions with multiuser enabled. I've always done this, and it's never been an issue before.

Tinkster 04-15-2012 02:01 PM

That suggests that you've been using a security flaw that has since
been noticed and fixed. Your options are to a) go back to an older
version of screen or b) keep on doing what you're doing.

I assume that "changing perms after reboot" actually means "changing
perms after screen is running"?

fakie_flip 04-18-2012 01:15 AM

Quote:

Originally Posted by Tinkster (Post 4653438)
That suggests that you've been using a security flaw that has since
been noticed and fixed.

If it has been fixed, shouldn't I have received the fix through updates?

Quote:

I assume that "changing perms after reboot" actually means "changing
perms after screen is running"?
Just checked, and yes, it is happening after I run screen.

pan64 04-18-2012 02:07 AM

how is this permission changed?

Tinkster 04-18-2012 02:23 AM

Quote:

Originally Posted by fakie_flip (Post 4655752)
If it has been fixed, shouldn't I have received the fix through updates?

Most likely ... were there any patches for screen coming through?
I don't use Fedora, so don't pay any attention to what goes on
in their packaging ...

jcawdery 02-20-2013 02:59 PM

With Fedora 18 the /var/run is a mount tempfs mount point

to fix change
/etc/tmpfiles.d/screen.conf
d /var/run/screen 0755 root screen


All times are GMT -5. The time now is 03:48 AM.