hello, i'm trying to create a bash file that will do multiple tasks using multiple users, i'm stuck where i'm trying to switch from a user to another for example:
Code:
su - user1
task1
exit (here exit will exit the whole bash, is there another way to switch between users ? )
su - user2
task2
exit