BANGOR, Maine — Fingerprints and a previous arrest record helped Los Angeles police investigators put a name to the face of a homeless man allegedly shot to death by a Greenville man and his friend on the street two weeks ago, California officials said.

Troy T. McVey, 22, the accused gunman, and Colby R. Kronholm, 21, who both moved from Greenville, Maine, to California in the fall, were arrested together Jan. 5 and charged with murder about 15 minutes after the fatal shooting. McVey also faces a gun charge.

The identity of the homeless man was discovered earlier this week, but is being withheld because his family has not been contacted, Los Angeles Police Department Detective Scott Masterson said Friday, saying he could not release man’s name until the coroner approves it.

Masterson was able to say the victim was 52 years old and had lived in southern California and Florida, and that he was identified through fingerprints and an FBI arrest record.

A Los Angeles County Department of Medical Examiner-Coroner representative said Friday afternoon that officials were still trying to make contact with the man’s family.

He was shot multiple times at about 11:55 p.m. Jan. 4 and was taken to an area hospital where he later died of his wounds, a news release from the Los Angeles Police Department issued the day following the shooting stated.

The shooting, which was witnessed by an off-duty LAPD police officer, occurred in the area of Hollywood and North Cahuenga boulevards in Hollywood, a district in central Los Angeles. The off-duty officer and others gave chase and McVey and Kronholm were arrested at a nearby apartment. Both have had minor brushes with the law in Maine.

Witnesses saw McVey smashing windows and then confronting the victim and demanding money, the LAPD statement said.

McVey, a former Maine Maritime Academy student, enrolled at the California Maritime Academy in Vallejo, California, in September. He is still a student there but was not enrolled in spring semester classes that began the day he was arrested for the murder, the school’s spokesman said. He declined to say if McVey, a Greenville High School graduate, had been involved in any disciplinary problems at the California school.

Kronholm’s Facebook page said he left Maine in August to travel to California and he posted that he established residency in Vallejo on Sept. 9, 2014.

Several messages left for McVey’s mother, Greenville High School principal Kelly MacFadyen, have not been returned, and Kronholm’s father, Boyd Kronholm, who works as the deputy superintendent of operations for Mountain View Youth Development Center in Charleston has declined to comment.

McVey and Kronholm are each being held on $1 million bail and were moved to different jails earlier this week, with McVey heading Monday to the Twin Tower Correctional Facility in downtown LA, and Kronholm moving Wednesday to the North County Correctional Facility in Castaic, California. Twin Towers is the world’s largest jail, according to its website.

Both McVey and Kronholm went to Los Angeles Municipal Court two days after their arrests and their arraignments were continued until Wednesday, Jan. 21, according to the LA County district attorney’s office.

BDN writer Dawn Gagnon contributed to this report.