[url=http://www.linux.com/articles/56443]screen for multiple users howto[/url] [url=http://ozlabs.org/~jk/docs/screen-x.php]another howto[/url] -------- Multiple Users Finally, screen allows several users to connect to a single session at the same time. It provides an access list for the session and allows you to set read/write/execute permissions for each user on that list. It even provides a way to set up user groups. One good reason for this multiple user feature is that you can interactively have several people looking at some source code so there's no confusion as to what part you're talking about. Before anyone else can connect to your screen sessions, you have to enable multiuser mode with ^A :multiuser on. Then, you give another user permission to connect with ^A :aclchg david +r "#". This means that the system user has read permission on all windows. You can specify multiple users, write and execute permissions, and certain windows. Be especially careful with the execute permission as that will let other people create new windows and change the acl permissions themselves. Now the user you granted access to can connect with: $ screen -r chris/ At any time, you can delete other users with acldel david. As with any system that involves multiple users, there are a lot of security implications and access features. Use carefully and see the man page for the details. (from [url=http://www.bangmoney.org/presentations/screen.html]here[/url]) [quote=[url=http://linuxwiki.de/screen]quelle[/url]]Wie kann man mittels screen mehrere Benutzer auf eine Sitzung zugreifen lassen? Antwort: Ein Benutzer startet "screen" und gelangt mit Strg-A in den Kommandomodus und mit ":" in die Befehlszeile. Er aktiviert den Mehrbenutzerbetrieb mit "multiuser on". Danach kann er mit Strg-A : acladd beliebig viele Benutzer berechtigen, den screen zu sehen. Der zweite Nutzer kann an der Sitzung mit "screen -x /" teilnehmen.[/quote] Erklärungen von uname im df.de: ---- Aufruf immer per "screen -xRR". Beide Benutzer nutzen die selbe Kennung und treffen sich im selben Fenster. Man kann auch verschiedene Kennungen nutzen, das geht dann aber komplizierter ("multiuser"). Advanced-Setting: - Restricted-Shell /usr/local/bin/restricted (gesetzt als Shell in /etc/passwd): Code: Alles auswählen #!/bin/sh if [ -z $STY ]; then /usr/bin/screen -xRR; else /usr/bin/screen -X hardstatus alwayslastline '[%H] %Lw%=%u %d.%m.%y %c ' befehl="/bin/rm $HOME/.ssh/known_hosts "; $befehl 2> /dev/null; echo -n "ssh " read eingabe; befehl="/usr/bin/ssh $eingabe"; $befehl; fi Der größte Teil in "else" ist optional und könnten durch "/bin/bash" ersetzt werden und ist nur wichtig für: Advanced-Setting2 - Fernwartung - Fernzuwartender installiert SSH-Server (Zugriff auf localhost ausreichend, gerne hinter NAT-Router) - Fernzuwartender ruft auf: Code: Alles auswählen ssh -R 2222:localhost:22 restricted@server (server muss erreichbar sein, z.B. per dyndns oder v-Server) - Anmeldung per Benutzer oder Key - gemeinsam dann Code: Alles auswählen ssh user@localhost -p 2222 und damit zurück zum zu adminstrierenden Rechner. ----- http://debianforum.de/forum/viewtopic.php?f=28&t=120587