Bug#792799: override: screen:misc/standard
On Mon, 2016-05-23 at 08:23 +0100, Neil Williams wrote: > Ansgar Burchardt wrote: > > Features: > > screen: Can talk to serial console. > > tmux: Does work after switch users (to non-root) > I'm not a tmux user but I'm confused how this is a feature of tmux > and > how that differs from just using sudo / su inside any particular > shell > or inside screen or using support within screen to attach to a > session > detached by another user. `screen` requires permission to open the client tty, `tmux` doesn't. If you first switch to a different user (`sudo -u user-b -s`) and then try to attach to a screen session, it will fail as user-b doesn't have access to the tty owned by user-a (unless user-b happens to be root). Running `su` inside a screen session is something entirely different. This works with `tmux` as it doesn't have the "server" process opening the "client" tty device; so there are no permission problems. > > I admit I personally prefer tmux as it keeps working after > > switching > > to another user. > I frequently switch users inside screen (and screen maintains that > user as one of the screen windows). screen can also connect to > someone > else's detached screen. From the manpage: > > -r sessionowner/[pid.tty.host] resumes a detached screen > session. No > other options (except com‐ binations with -d/-D) may be specified, > though an optional prefix of [pid.]tty.host may be needed to > distinguish between multiple detached screen sessions. The second > form is used to connect to another user's screen session which runs > in > multiuser mode. This indicates that screen should look for > sessions > in another user's directory. This requires setuid-root. "requires setuid-root" is probably something that should be avoided if possible. Ansgar
Bug#792799: override: screen:misc/standard
On Sun, 22 May 2016 13:23:36 +0200 Ansgar Burchardt wrote: > Control: merge 792799 820858 > > Axel Beckert writes: > > Reasoning (and request) for the change from optional to standard can > > be found at https://bugs.debian.org/783524. > > > > Quoting from there: > >> screen is small and commonly required on a wide variety of systems > >> where only the standard system utilities (and openssh-server) are > >> installed, yet it needs to be installed separately each time. > >> (Most frustrating with newly installed virtual machines around the > >> time of a release when new images need testing.) > >> > >> Please seek a change of priority to standard. > > Hmm, given there are two alternatives (screen, tmux) which both have > quite comparable installation size, I'm wondering which one (if any) > should be included in the default install. > > Installation size (`apt install` in a unstable sbuild chroot): > screen: 583 kB of archives. 1004 kB of additional disk space > tmux: 420 kB of archives. 1022 kB of additional disk space > (Includes libevent-2.0-5 libutempter0) > > Features: > screen: Can talk to serial console. > tmux: Does work after switch users (to non-root) I'm not a tmux user but I'm confused how this is a feature of tmux and how that differs from just using sudo / su inside any particular shell or inside screen or using support within screen to attach to a session detached by another user. > I admit I personally prefer tmux as it keeps working after switching > to another user. I frequently switch users inside screen (and screen maintains that user as one of the screen windows). screen can also connect to someone else's detached screen. From the manpage: -r sessionowner/[pid.tty.host] resumes a detached screen session. No other options (except com‐ binations with -d/-D) may be specified, though an optional prefix of [pid.]tty.host may be needed to distinguish between multiple detached screen sessions. The second form is used to connect to another user's screen session which runs in multiuser mode. This indicates that screen should look for sessions in another user's directory. This requires setuid-root. -- Neil Williams = http://www.linux.codehelp.co.uk/ pgpqI_mZQyKgV.pgp Description: OpenPGP digital signature
Bug#792799: override: screen:misc/standard
Hi, Ansgar Burchardt wrote: > Control: merge 792799 820858 Ah, I seem to not have forgotten to report (but thought so and reported it twice). > Hmm, given there are two alternatives (screen, tmux) which both have > quite comparable installation size, I'm wondering which one (if any) > should be included in the default install. But only for screen someone filed a bug that it should be come "Priority: standard". Another thing is that screen (and not tmux, IIRC mainly due to less dependencies which would need udeb support) has been chosen to be included in the Debian Installer to provide multiple consoles when running D-I over a serial console or over a network console. (Actually that was the trigger which caused the duplicate report at #820858.) Regards, Axel -- ,''`. | Axel Beckert , http://people.debian.org/~abe/ : :' : | Debian Developer, ftp.ch.debian.org Admin `. `' | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5 `-| 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE
Bug#792799: override: screen:misc/standard
Control: merge 792799 820858 Axel Beckert writes: > Reasoning (and request) for the change from optional to standard can > be found at https://bugs.debian.org/783524. > > Quoting from there: >> screen is small and commonly required on a wide variety of systems where >> only the standard system utilities (and openssh-server) are installed, >> yet it needs to be installed separately each time. (Most frustrating >> with newly installed virtual machines around the time of a release when >> new images need testing.) >> >> Please seek a change of priority to standard. Hmm, given there are two alternatives (screen, tmux) which both have quite comparable installation size, I'm wondering which one (if any) should be included in the default install. Installation size (`apt install` in a unstable sbuild chroot): screen: 583 kB of archives. 1004 kB of additional disk space tmux: 420 kB of archives. 1022 kB of additional disk space (Includes libevent-2.0-5 libutempter0) Features: screen: Can talk to serial console. tmux: Does work after switch users (to non-root) I admit I personally prefer tmux as it keeps working after switching to another user. Ansgar
Bug#792799: override: screen:misc/standard
Package: ftp.debian.org Severity: normal Reasoning (and request) for the change from optional to standard can be found at https://bugs.debian.org/783524. Quoting from there: > screen is small and commonly required on a wide variety of systems where > only the standard system utilities (and openssh-server) are installed, > yet it needs to be installed separately each time. (Most frustrating > with newly installed virtual machines around the time of a release when > new images need testing.) > > Please seek a change of priority to standard. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org