Protect Console Screen Session

From D3xt3r01.tk
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

WHY

Because I often keep my IM ( finch ) in a screen session. I don't want the other users which I give root access ( via sudo for example ) to be able to attach to my session.

HOW

1. Generate a password

htpasswd -n doesntmatterwhatyouwritehere

Enter your password twice and copy the part after : in the output

2. Put that encrypted password in .screenrc like this

password 3ncr1pt3dpassw0rdh3r3

3. Other recommended settings in .screenrc

caption always '%c:%s'
password 3ncr1pt3dpassw0rdh3r3
addacl youruserhere
hardstatus on
startup_message off
vbell off
autodetach on