A huge feature of Socialism is democracy and extending democratic control as far as possible.
The belief is that if the people control the government and the government controls the means of production that means the people control the means of production.
A totalitarian nation like the Soviet Union was the opposite of Socialism.
I believe this was the original intent with Karl Marx´s statement, "dictatorship of the proletariat". But in countries where literacy and higher education was low, free democratic elections is tantamount to just giving away power to whoever has the most money. The Egyptian election is a good example. So it was impractical in those extremely poor countries, where communism was the most popular.
I´m not arguing for USSR, China or communist Cambodia. I´m just saying that the only way they could have held on to power was through dictatorship. And politics is the art of the possible.
This can be contrasted with socialism/communism in Sweden. Communism was extremely popular in Sweden, on par with pre-revolutionary China and Russia. But since 1850 huge amounts of money had been put into public schools. So Swedish workers had an almost total level of literacy at the peak of the revolutionary sentiment. Trade unions and socialist clubs organised night schools, that were real and proper schools teaching proper science. So the Swedish working class was relatively well educated. This meant that our "socialist revolution" led to liberal democracy. Without our literacy level Sweden could easily have gone the same way as USSR.
The influence of behaviourism and operate conditioning should not be underestimated. In the first half of the 20´th century. Influential and smart people seriously thought that an entire people could be conditioned to be selfless and boundlessly generous to one another. This explains how totalitarian communism could at all gain traction. There´s still people who buy into that shit.
One thing that I´ve always wondered is how the soviets and Chinese communist view class. Whoever is put in power is not working class any more. He´s comparable to royalty. Ie not working class any more. And today the higher echelons of China is a ruling elite who elect their ruling elite buddies. Belonging to this elite obviously makes them NOT working class. How do they justify it politically? How does the propaganda work?