Dhaka Metropolitan Magistrate Rajesh Chowdhury granted them bail after hearing the petitions of the six accused on Sunday.
They are Tamjid Haider, Nozib Amir Chowdhury Joy, Akib Ahmed, Arafat Saad, Nazifa Jannat and Joyoti Chakrabarty.No bail petition was filed for another accused - ASM Tanjimur Rahman.
Arafat is involved with the Samajtantrik Chhatra Front while the rest are members of Bangladesh Students’ Union.
The leftist student organisations marched with torches on the Dhaka University campus on Feb 26 amidst protests over Mushtaq’s death.
Clashes erupted with the police charging baton on the protesters who retaliated by throwing brickbats. The seven were arrested at the scene.
Later, the police brought charges of attempted murder and obstruction to government duty against the demonstrators.
The court refused to remand the students in police custody for questioning.