Multiuser GNU screen sessions

I am trying to set up multi customer screen sessions on Mac OS 10.7.3 and also I face the mistake Attach attempt with invalid pid(xxx)!.

If set it up as adheres to:

Initial arrangement of system:

Make the correct permisions for the screen command

sudo chmod u+s $(which screen)
sudo mkdir /var/run/screen/
sudo chmod 755 /var/run/screen/

Screen arrangement

From <user_sharing_screen>

Initialize the screen with defined session name:

screen -S <session_name>

Make the screen multiuser:

C-a :multiuser on
C-a :acladd <user_to_share_with>

From <user_to_share_with> on the very same system connect to the common screen

screen -x <user_sharing_screen>/<session_name>

Then I get the mistake message Attach attempt with invalid pid(xxx)!

8
2022-06-07 14:39:16
Source Share
Answers: 2

I developed a homebrew fork with the spot revealed over and also it benefits me. To utilize it, do this:

brew tap stevemadere/homebrew-dupes && \
brew install stevemadere/dupes/screen && \
sudo chown root `which screen` && \
sudo chmod +s `which screen`
0
2022-07-22 12:53:48
Source

[Update] The screen energy is damaged according to a superuser.com post beginning with Mac OS X 10.6.

I had the ability to compile a functioning variation of screen from MacPorts.org. If you know with MacPorts I can give you with an upgraded screen x86_64 binary or the resource code spot documents (transforming one line in socket.c). [/Update]

Update2 Add diff of socket.c

--- screen-4.0.3/socket.c   2003-09-08 16:26:50.000000000 +0200
+++ /Users/fluffy/screen-4.0.3/socket.c 2012-03-10 22:58:57.000000000 +0100
@@ -745,7 +745,7 @@
   if (eff_uid == real_uid)
     return kill(pid, 0);
   if (UserContext() > 0)
-    UserReturn(kill(pid, 0));
+    return 0;
   return UserStatus();
 }
2
2022-06-07 22:23:49
Source