It is currently Sun May 19, 2013 2:51 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Unsafe log off in tty
PostPosted: Fri Sep 25, 2009 11:10 am 
Regular Zenwalker
Regular Zenwalker
User avatar

Joined: Thu Jan 15, 2009 11:40 am
Posts: 24
Location: Netherlands
When you log off a session in tty*, the screen does not get cleared before the login prompt is shown. This way, other people can see what you where doing last, which is IMO a security issue. Why isn't the screen cleared by default in Zenwalk?


 Profile Send private message  
 
 Post subject: Re: Unsafe log off in tty
PostPosted: Wed Sep 30, 2009 9:06 pm 
Regular Zenwalker
Regular Zenwalker

Joined: Thu Jul 02, 2009 12:07 pm
Posts: 22
The screen is not cleared because neither users nor root have a .bash_logout file in their home directory in the default config.

To fix this issue, create a ~/.bash_logout file and add the following lines to it:
Code:
if [ $SHLVL == "1" ]
       then /usr/bin/clear
fi

The first line is to make sure exiting the shell will lead to a log out. :)


 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


 Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: