If I logout on terminal, old contents are still possible to be read. I was trying to get it to work using pam_exec, by adding
Code:
session optional pam_exec.so /usr/script/clrscr
to my /etc/pam.d/login, with /usr/script/clrscr contents
Code:
#!/bin/bash
export TERM="linux"
exec clear
This however didn't do antyhing. How to make it work using pam? I know that i can simply add some control codes to /etc/issue to get basically the same effect, but i wanted to do it using pam. Anybody knows how to?