I need to make a script that runs when a user logs on that starts a graphical program as another user. i can do it by hand, su user2, user2's password, run command, but I have no idea how to automate that into a script, as I cannot feed the su the password automatically.
security of user2's password is not significant.
Bookmarks