How to share GNU Screen sessions












4














I want to share a screen session, but this is harder then it seems for me. What I did was yum install screen then I made a session with root screen -S test. After that i made it multiuser Ctrl+A :multiuser on.
I started a new SSH connection logged in as Foo and did screen -ls. All I get is there is no socket at /var/run/screen/S-foo/.



I also export the SCREENDIR to /var/run/screen/ so it is only one DIR where the sessions are saved in. But the system don't allow for other user to own it.










share|improve this question





























    4














    I want to share a screen session, but this is harder then it seems for me. What I did was yum install screen then I made a session with root screen -S test. After that i made it multiuser Ctrl+A :multiuser on.
    I started a new SSH connection logged in as Foo and did screen -ls. All I get is there is no socket at /var/run/screen/S-foo/.



    I also export the SCREENDIR to /var/run/screen/ so it is only one DIR where the sessions are saved in. But the system don't allow for other user to own it.










    share|improve this question



























      4












      4








      4


      2





      I want to share a screen session, but this is harder then it seems for me. What I did was yum install screen then I made a session with root screen -S test. After that i made it multiuser Ctrl+A :multiuser on.
      I started a new SSH connection logged in as Foo and did screen -ls. All I get is there is no socket at /var/run/screen/S-foo/.



      I also export the SCREENDIR to /var/run/screen/ so it is only one DIR where the sessions are saved in. But the system don't allow for other user to own it.










      share|improve this question















      I want to share a screen session, but this is harder then it seems for me. What I did was yum install screen then I made a session with root screen -S test. After that i made it multiuser Ctrl+A :multiuser on.
      I started a new SSH connection logged in as Foo and did screen -ls. All I get is there is no socket at /var/run/screen/S-foo/.



      I also export the SCREENDIR to /var/run/screen/ so it is only one DIR where the sessions are saved in. But the system don't allow for other user to own it.







      centos gnu-screen






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 2 hours ago









      Rui F Ribeiro

      39.2k1479130




      39.2k1479130










      asked Jan 17 '17 at 10:06









      NinjaSpaceApe

      232




      232






















          1 Answer
          1






          active

          oldest

          votes


















          1














          Since your user doesn't actually own the session it won't show up when using screen -ls.



          You need to use



          :acladd <username>


          and then to attach



          screen -r root/test


          more info






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "106"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f337998%2fhow-to-share-gnu-screen-sessions%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1














            Since your user doesn't actually own the session it won't show up when using screen -ls.



            You need to use



            :acladd <username>


            and then to attach



            screen -r root/test


            more info






            share|improve this answer




























              1














              Since your user doesn't actually own the session it won't show up when using screen -ls.



              You need to use



              :acladd <username>


              and then to attach



              screen -r root/test


              more info






              share|improve this answer


























                1












                1








                1






                Since your user doesn't actually own the session it won't show up when using screen -ls.



                You need to use



                :acladd <username>


                and then to attach



                screen -r root/test


                more info






                share|improve this answer














                Since your user doesn't actually own the session it won't show up when using screen -ls.



                You need to use



                :acladd <username>


                and then to attach



                screen -r root/test


                more info







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Jan 23 '17 at 3:57









                heemayl

                34.6k373103




                34.6k373103










                answered Jan 17 '17 at 17:14









                Livinglifeback

                1,104713




                1,104713






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f337998%2fhow-to-share-gnu-screen-sessions%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    宮崎県

                    濃尾地震

                    シテ島