I have two users, that have the same home directory:
useradd -m -d /home/mydir user1 useradd -m -d /home/mydir user2
and they are in the same group.
But I have a problem, when someone logged in the shell, in mydir appears the
.bash_history file, of the first user with the commands he made.
Then if the user2 joins and start to make commands, the
.bash_history remains of the first user with his commands. Is it possible to create bash history for both users?