When runnning screen under kernel 2.6.0-test5 it will not accept my password and will not unlock. Doing the same under 2.4.22 is fine. Reproducible: Always Steps to Reproduce: 1.boot 2.6 kernel 2.run screen 3.ctrl-a x -- to lock 4.type in password Actual Results: screen does not unlock Expected Results: unlocked This might be the same problem that xscreensaver had -- something to do with signal handling I think.
Try upgrading xscreensaver to the latest version and remerge pam...
If you had actually read my bug you would know that the problem is not with xscreensaver. What I saying is that a bug in app-misc/screen is probably caused by the same problem that afflicted xsceensaver many months ago.
Can you please attach an strace of the process please, then? [emerge strace; strace -p <process-id>]
Created attachment 18034 [details] strace of screen exhibiting unable to unlock problem
Created attachment 18035 [details] strace of screen exhibiting unable to unlock problem
This bugzilla spurts out an error when I make an attachment. The attachment is included in the bug, but no emails are sent out. So this comment should send out the emails.
4.0.1 is in cvs does this fix ?
no - still doesn't work
In the strace:- --------------- access("/var/run/utmpx", F_OK) = -1 ENOENT (No such file or directory) open("/var/run/utmp", O_RDWR) = -1 EACCES (Permission denied)
I think strace does something to screw up the setuid bit. Also - running "screen" will start screen, but running "strace screen 2> strace-screen" throws up this error: Directory '/var/run/screen' must have mode 777. I think I did chmod 777 /var/run/screen on my old install to get strace to work. Running screen as root will be able to unlock under 2.6, but not when run as a normal user with or without strace.
Use "strace -o <outputfile> <command>" to dump strace output to a file.
Here's my strace, I'm having the very same problem. Done with strace -o strace.log screen, the immediately using c-a-x and entering the password (obfuscated in the trace file) once.
Created attachment 21680 [details] strace of failing screen unlock attempt K2.6.0-t11, screen 4.00.01
I had this same problem with screen ctrl-a+x and also with xlock. To fix this you need to upgrade sys-libs/pam to 0.77.
This seems to fixed by a PAM upgrade - please see comment #14...