Indeed, this receptionist wanted to keep my passport, even though I had paid in advance.
When I objected, he threw my money back at me and said: 'If you don't like it... get lost!'
I gave in for one night.
But I'm not the sort to let people walk all over me, and above all, I thought it unreasonable for a mere youth hostel to claim the right to keep my passport...
So I went to the Ministry of Tourism to lodge my complaint.
There, I was told that this practice had been widespread in order to control immigration more effectively, and that the police regularly visited all establishments to record the identities of foreigners...