Skip to main content

Thread: Deleting user data on logout


setting old pc, publicly accessible, putting .bash_logout , making 444... it's computer of these people have that's secure enough banking etc...

on #!...

code:
cd && ls -a | grep -ve "^\.(bash_logout|profile)$" | rm -rf
code:
cp /etc/defaultusersettings/ ~
will (in theory) work? should shred logout script every time logs out , copy default settings every login.

potential problems:
1. files ".bash_logout" in names not deleted, want clean every time. (used regex "^\.bash_logout$")
2. system work files missing? should recreate them every time but...
3. are there other ways "standard" users permanently write files disc... (only in tmp folder, that's erased every time system starts again anyway)
4. experimented , realized shred works on individual files... in addition, rm -rf deletes folders regardless of permissions... got lot more complicated...



Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] Deleting user data on logout


Ubuntu

Comments

Popular posts from this blog

Joomla site hacked, cant see front and - Joomla! Forum - community, help and support

Christian Home School Programs - Joomla! Forum - community, help and support

Trouble with PF_OutFlag_I_USE_AUDIO and PF_CHECKOUT_LAYER_AUDIO