Ubuntu enable bash history


I observed that in Ubuntu 12.04 by default bash history not enabled that is, history not stored in .bash_history file.

When I am looking at .bash_history file permissions its owned by root user and root group.

Due to this history is not stored in .bash_history.

To resolve this issue I changed owner and group of the .bash_history file  (in our case its guest user and guest group) with following command:

$ chown guest:guest .bash_history

After updating owner and group history is getting stored in .bash_history file.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s