Clicking pics of trains is not illegal ..nowadays ..
Only those areas are restricted..where some confidential things are der or written that ..no photography ....
Also for ur information ..Railway Ministry now now host "rail dristi " ..where railway is itself asking for pics for choosing best pics among them ....
Many twitter pics and photos used in Advertisements are taken from some...
more... railfan photo galleries only ..
But accessing to loco cabin is not at all permitted ..
Neither for you Nor anyone ..except railway officials ..
For this u have to take permission from division headquarters ..
Got it ..:-)
And iri is not illegal else ..yeh kabkaa band ho gaya hotaaa ..
Iss site pey post daaltein bhi ho aur issey illegal bhi kehtein ho ....
Kamaal hai..