Tu aimes screen (RTFM), mais franchement, t'es pas le seul sur la machine… alors, pour rester bon voisin, tu suis la doc (man screen) et utilises l'option password
dans ton ~/.screenrc
:
# PASSWORD # =============================================================== # This commands sets the *internal* password for the screen session. # WARNING!! If this is set then a "lock" command will only let you in to the # session after you enter the user's account password and then *also* # the internal password for that session. This gives additional safety but, # if you forget the internal password then you cannot resume your session. # Use :password to generate a password # password ODSJQf.4IJN7E # "1234"
Bon, d'accord, mais comment on génère ces p$#!@ de passwords pour screen ? Ben, une fois sous screen, tu tappes C-A :password
et tu y rentres celui de ton choix
New screen password: Retype new password: [ Password moved into copybuffer ]
Puis, tout gaillard, et toujours sous screen, tu demandes une copie du buffer de screen dans un fichier C-A >
et pan, screen t'indiques qu'il l'a collé dans /tmp/screen-exchange
.
Copybuffer written to "/tmp/screen-exchange".
Presto, tu récupères ton super password de ce fichier et files vivre ta vie tranquille au soleil de mexicooooooo.
Accessoirement, ne vire pas le fichier /tmp/screen-exchange
: pourrait toujours te servir pour d'autres copy-paste (man screen là encore…) - contente toi d'en virer ton password chiffré de dedans.