How can i do a silent su (without having to type on the prompt the password) in a shell script.
I want sth like this:
unix commands (with user1)
su (to user2)
unix commands (with user2)
exit (to user1 back)
unix commands (with user1)
It should be executable from the prompt without having to type in passwords when it starts executing commands with user 2
ps: do i have to use su or su - ?
I want sth like this:
unix commands (with user1)
su (to user2)
unix commands (with user2)
exit (to user1 back)
unix commands (with user1)
It should be executable from the prompt without having to type in passwords when it starts executing commands with user 2
ps: do i have to use su or su - ?