How to share GNU Screen sessions
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
add a comment |
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
add a comment |
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
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
centos gnu-screen
edited 2 hours ago
Rui F Ribeiro
39.2k1479130
39.2k1479130
asked Jan 17 '17 at 10:06
NinjaSpaceApe
232
232
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
add a comment |
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
add a comment |
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
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
edited Jan 23 '17 at 3:57
heemayl
34.6k373103
34.6k373103
answered Jan 17 '17 at 17:14
Livinglifeback
1,104713
1,104713
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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