Yes, "straight" lines on a manifold are geodesics, which obey the geodesic equation $$\frac{\text{d}^2x^\rho}{\text{d}\tau^2} = -\Gamma^\rho_{\mu\nu}\frac{\text{d}x^\mu}{\text{d}\tau}\frac{\text{d}x^\nu}{\text{d}\tau}$$
If we take the surface of a sphere as our manifold, the geodesics are great circles. A frictionless track will only be able to exert a perpendicular force on the object, so any object traveling along it will always remain at constant speed and will circle the Earth forever.
The first such force exerted by the track exerts two forces on the object. The first is the normal force which points upwardsradially. If the track is not a geodesicgreat circle, it will exert an additional force of constraint on the object which is tangential and also perpendicular to the track.