URL:
  <http://savannah.gnu.org/bugs/?35585>

                 Summary: Losing session info
                 Project: GNU Screen
            Submitted by: None
            Submitted on: Втр 21 Фев 2012 14:34:52
                Category: Program Logic
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.3
           Fixed Release: None
         Planned Release: None
           Work Required: None

    _______________________________________________________

Details:

Hi, 

I`ve recently discovered a strange bug, which may possibly lead probably to
bigger problem than shown above but I am too lazy to investigate it. How to
reproduce: 
- on Debian Squeeze, install screen and sudo
- allow regular user to do screen -r of root screens and start some commands
inside screen(but not interpreter, sure), e.g, ' /usr/bin/screen -d -m
/root/1.sh, /usr/bin/screen -d -m /root/2.sh, /usr/bin/screen -r ????' in most
stupid case. Surely second thing is VERY dangerous but we assuming that root
user never runs screen session by himself. 
- start attached screen as regular user, then start two detached screens as
root using sudo as above,
- resume one of root screens in same session, then press key
sequence(Ctrl-a,d) to detach screen,
- voila, screen -r as root gives us only one screen, not selection of two, but
really two screen instances running under root.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?35585>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


Reply via email to