[xen-tools-discuss] Re: Screen terminates immediately (xen-shell)

doug at wandell.com doug at wandell.com
Wed Oct 22 02:34:23 CEST 2008


User 'xstester' can log in when the default shell is /bin/sh.   
Invoking /usr/bin/xen-login-shell causes the screen to flash, then  
screen terminates.  Xstester can run 'screen' however, from the  
command line, no problem.

Some more info:

/etc/passwd:
xstester:x:502:502::/home/xstester:/usr/bin/xen-login-shell

/etc/xen/test-system: (pertinent line)
xen_shell = 'xstester'

/etc/xen-shell/xen-shell.conf is unmodified.

No idea if this is useful, but running 'strace  
/usr/bin/xen-login-shell' as user xstester gives (truncated):

stat("/usr/bin/screen", {st_mode=S_IFREG|S_ISGID|0755, st_size=360952,  
...}) = 0
access("/usr/bin/screen", X_OK)         = 0
access("/usr/bin/screen", R_OK)         = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
lseek(255, -36, SEEK_CUR)               = 2070
clone(child_stack=0,  
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,  
child_tidptr=0x2b57d6e1de50) = 2236
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x436c60, [], SA_RESTORER, 0x33794301b0},  
{SIG_DFL}, 8) = 0
wait4(-1, [screen is terminating]
[{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2236
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(-1, 0x7fffd3ca4fc4, WNOHANG, NULL) = -1 ECHILD (No child processes)
rt_sigreturn(0xffffffffffffffff)        = 0
rt_sigaction(SIGINT, {SIG_DFL}, {0x436c60, [], SA_RESTORER,  
0x33794301b0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(255, "\n\n#\n#  End of this script\n#\nexit"..., 2106) = 36
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
exit_group(0)                           = ?

Thanks :)
DW


Quoting Steve Kemp <steve at steve.org.uk>:

> On Tue Oct 21, 2008 at 18:36:12 -0400, doug at wandell.com wrote:
>
>> After installing xen-shell and configuring a test user, when I ssh in
>> as that user, I am immediately disconnected with the message:
>>
>> [screen is terminating]
>
>   That's an odd one.  To catch this I added "sleep 5" to the end
>  of most commands, so any error message should be visible.
>
>> And is fully up to date.  I don't see anything in syslog, can someone
>> tell me where I might look for clues?
>
>   I can't think of anywhere to check.  Can you tell us the name of
>  your user?  If you change their login shell to /bin/sh, and then
>  login what happens if you run:
>
>     xen-shell
>     xen-login-shell
>
>  (The latter of which is what you should have setup in /etc/passwd
>  for that user.)
>
> Steve
> --
>
>
>








More information about the xen-tools-discuss mailing list