> what happens to the bounty

Bounty amount goes 

![enter image description here][1]

> Does the only answer get the bounty despite it not being accepted assuming the answer is right

No. 

> But then what if the user does not log in within that period to check the answer??

Refer [fossfreedom's answer][2].

>  And plus what if the bounty has been offered by someone who edited the post and not by the actual user who questioned

Doesn't matter, it's the same.

> I am talking about this one-askubuntu.com/questions/134577

-  If [Eliah](https://askubuntu.com/users/22949/eliah-kagan) doesn't login and award the bounty & you don't get a score of 2, you won't get the bounty.
-  If Eliah doesn't login & your answer get a score of 2, you get half the bounty. 
-  If Eliah accepts your answer but doesn't login, after the bounty period +24 hours, you get the full bounty. 


  [1]: https://i.sstatic.net/4Z9Mt.jpg
  [2]: http://meta.askubuntu.com/a/3138/1182