Discussion:
screen is terminating
(too old to reply)
James D. Parra
2014-10-22 23:40:03 UTC
Permalink
Raw Message
Hello,

I am running OpenSuse 13.1 and found that regular users cannot run 'screen', without getting the error 'screen is terminating'. Any suggestion on how to fix this?

Thank you,

James
--
To unsubscribe, e-mail: opensuse+***@opensuse.org
To contact the owner, e-mail: opensuse+***@opensuse.org
Anton Aylward
2014-10-23 00:05:56 UTC
Permalink
Raw Message
Post by James D. Parra
Hello,
I am running OpenSuse 13.1 and found that regular users cannot run
'screen', without getting the error 'screen is terminating'. Any
suggestion on how to fix this?
Details please.

Are they just running 'screen' from the command line or what?
Are there any parameters, is screen being used to invoke a program?
Is utmp recording any logins/
What is in /etc/screenrc?
In users .screenrc?


"screen -v" please

RTFM?


Try running 'screen' under 'strace' to see what calls are made.
--
To unsubscribe, e-mail: opensuse+***@opensuse.org
To contact the owner, e-mail: opensuse+***@opensuse.org
James D. Parra
2014-10-23 00:50:36 UTC
Permalink
Raw Message
Subject: Re: [opensuse] screen is terminating
Post by James D. Parra
Hello,
I am running OpenSuse 13.1 and found that regular users cannot run
'screen', without getting the error 'screen is terminating'. Any
suggestion on how to fix this?
Details please.

Are they just running 'screen' from the command line or what?
Are there any parameters, is screen being used to invoke a program?
Is utmp recording any logins/
What is in /etc/screenrc?
In users .screenrc?


"screen -v" please

RTFM?


Try running 'screen' under 'strace' to see what calls are made.

~~~~~~~

Thank you for the reply.

Screen version 4.00.04devel (GNU) 8-Jun-12

screen is run from the command line without any parameters.

"Is utmp recording any logins/" It is, I see my username and IP address.

Contents of /etc/screenrc;
# this is the global screenrc file. Handle with care.

termcapinfo xterm* G0:is=\E[?4l\E>:ti@:te@
termcapinfo linux me=\E[m:AX
<end>

Users do not have an .scrennvc file.

Created an .screen dir in a user's home dir and ran 'export SCREENDIR=$HOME/.screen' but to no avail.

How can I run 'screen' under 'strace' to see the calls made?

Best regards,

James
--
To unsubscribe, e-mail: opensuse+***@opensuse.org
To contact the owner, e-mail: opensuse+***@opensuse.org
Anton Aylward
2014-10-23 01:45:32 UTC
Permalink
Raw Message
Post by James D. Parra
How can I run 'screen' under 'strace' to see the calls made?
Have you RTFM?

man 1 strace

at the very least

strace screen

but that will likely confuse as you'll get the two streams confused.

I'd use the "-o filename" option.
--
A: Yes.
Post by James D. Parra
Q: Are you sure?
A: Because it reverses the logical flow of conversation.
Q: Why is top posting frowned upon?
--
To unsubscribe, e-mail: opensuse+***@opensuse.org
To contact the owner, e-mail: opensuse+***@opensuse.org
James D. Parra
2014-10-23 02:35:58 UTC
Permalink
Raw Message
Subject: Re: [opensuse] screen is terminating
Post by James D. Parra
How can I run 'screen' under 'strace' to see the calls made?
Have you RTFM?

man 1 strace

at the very least

strace screen

but that will likely confuse as you'll get the two streams confused.

I'd use the "-o filename" option.
~~~~~~~~~

I get;

[screen is terminating]
) = ? ERESTARTNOHAND (To be restarted if no handler)
--- SIGHUP {si_signo=SIGHUP, si_code=SI_USER, si_pid=4748, si_uid=1003} ---
rt_sigaction(SIGHUP, {SIG_IGN, [], SA_RESTORER, 0x7f4516e99550}, {0x4285d0, [], SA_RESTORER, 0x7f4516e99550}, 8) = 0
stat("/home/jparra/.screen/4748.pts-4.server", 0x7fff1471d6d0) = -1 ENOENT(No such file or directory)
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=4748, si_status=0, si_utime=0, si_stime=0} ---
exit_group(0) = ?
+++ exited with 0 +++
<end>

The only I can see that means anything to me is the (No such file or directory) for "/home/jparra/.screen/4748.pts-4.server", however /home/jparra/.screen/ does exist.

Any ideas with the details I sent how I can make screen work for regular users?

Thank you in advance.

James
--
To unsubscribe, e-mail: opensuse+***@opensuse.org
To contact the owner, e-mail: opensuse+***@opensuse.org
Anton Aylward
2014-10-23 21:12:17 UTC
Permalink
Raw Message
Post by James D. Parra
Subject: Re: [opensuse] screen is terminating
Post by James D. Parra
How can I run 'screen' under 'strace' to see the calls made?
Have you RTFM?
man 1 strace
at the very least
strace screen
but that will likely confuse as you'll get the two streams confused.
I'd use the "-o filename" option.
~~~~~~~~~
I get;
[screen is terminating]
) = ? ERESTARTNOHAND (To be restarted if no handler)
--- SIGHUP {si_signo=SIGHUP, si_code=SI_USER, si_pid=4748, si_uid=1003} ---
rt_sigaction(SIGHUP, {SIG_IGN, [], SA_RESTORER, 0x7f4516e99550}, {0x4285d0, [], SA_RESTORER, 0x7f4516e99550}, 8) = 0
stat("/home/jparra/.screen/4748.pts-4.server", 0x7fff1471d6d0) = -1 ENOENT(No such file or directory)
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=4748, si_status=0, si_utime=0, si_stime=0} ---
exit_group(0) = ?
+++ exited with 0 +++
<end>
The only I can see that means anything to me is the (No such file or directory) for "/home/jparra/.screen/4748.pts-4.server", however /home/jparra/.screen/ does exist.
Any ideas with the details I sent how I can make screen work for regular users?
Based on your snaphhot, as opposed to seeing the whole of the that log
file and what preceeded it to give it context, SIGHUP is a hangup.
Maybe I'm reading too much into too little but that's a termination,
often a result of EOF/ctl-d.

Just to make sure, what's the permissions in /home/jparra/ and
/home/jparra/.screen/ ?

Is what you showed the tail of the result of the output file from the
'-o filename' option?

What the 'stty' going in and coming out of this ?
Could something be generating the EOF?
--
A: Yes.
Post by James D. Parra
Q: Are you sure?
Post by James D. Parra
A: Because it reverses the logical flow of conversation.
Q: Why is top posting frowned upon?
--
To unsubscribe, e-mail: opensuse+***@opensuse.org
To contact the owner, e-mail: opensuse+***@opensuse.org
Loading...