How su utility works ?

Is there any difference between
‘su’ and ‘login root’ ?

What scripts su execute ?

su changes your effective user ID.

su keeps the env of the previous user, “su -” would make a valid full login :stuck_out_tongue:

The doc on su is I think rather clear on this.