Club In 1958, only a couple of years after ending his playing career, Rahim took charge of
Dhaka Wanderers and guided the club to their seventh league title, having won the previous six as a player. Rahim remained at the helm until 1972, in a period which saw the club rarely challenging for the league title. In 1973, Rahim received advanced coaching training from
Germany. In 1975, Rahim managed
Victoria SC, and although during his tenure at the club they languished in mid-table, he notably converted central defender
Sheikh Mohammad Aslam into a forward in 1979. Aslam went on to score a record 177 domestic league goals over the next two decades. He is also credited for scouting
Khurshid Alam Babul, a player who later captained the national team. In 1981, he coached
Abahani Krira Chakra to the club's third
First Division title. In 1982, after Abahani lost the league title to arch-rivals
Mohammedan SC, Rahim departed the club, stating "আমি কুফা কোচ আর কোচিং করবো না" (). In 1983, Rahim joined Mohammedan as assistant to head coach
Golam Sarwar Tipu. Following his stint with Mohammedan, Rahim went onto coach mid-table club
Rahmatganj MFS, before focusing on grassroots football. Rahim was also one of the first coaches in the country to introduce monthly salaries for players in the domestic league during his time with Victoria. Later, Rahim served as the assistant coach of
Bangladesh U19 during the
1978 AFC Youth Championship held in Dhaka. In October 1979, Rahim was appointed as the head of the Bangladesh national team for the
1980 AFC Asian Cup. Despite almost a year of training, Bangladesh failed to secure a victory in any of the tournament games, although they put up a good fight against
North Korea and
Syria, both of which ended in defeat. Rahim's Bangladesh squad was one of the youngest in the tournament, featuring teenage forwards
Mohammed Mohsin and
Abdus Salam Murshedy. The game is also renowned for
Ashrafuddin Ahmed Chunnu's hat-trick, marking the first in the national team's history. Rahim remained in charge during the Merdeka Cup later that year. In January 1985, Rahim took charge of the national team for the fifth time in preparation for the
1986 FIFA World Cup qualification – AFC first round. It marked the first time the country would participate in the FIFA World Cup qualifiers. After three consecutive defeats, Rahim's side secured their first victory in the qualifiers by defeating
Indonesia 2–0 at the
Bangladesh Army Stadium on 2 April 1985. Bangladesh finished their qualifying campaign at the bottom of their group with two victories and four defeats from six games. Rahim returned once again as the national team coach for the
1987 South Asian Games held in
Calcutta. Rahim's side entered the tournament without key players
Mohamed Mohsin,
Sheikh Aslam and
Ranjit Saha, as Bangladesh failed to qualify for the finals for the first time. They also lost the bronze medal match to
Pakistan. Rahim served as head coach of
Bangladesh U16 at the
1990 AFC U-16 Championship qualifiers and left a notable mark despite not advancing to the main round. Draws against
Japan U16 and
Thailand U16, coupled with a 4–0 victory over
Malaysia U16, secured a group runners-up finish. His seventh and final stint as senior national team coach was at the
1990 Asian Games, where Bangladesh finished at the bottom of their group with heavy defeats against Asian giants
Japan and
Saudi Arabia. ==Personal life and death==