Unix/Linux Go Back    



Help with su

UNIX for Advanced & Expert Users




Kindly Note - This is a Single User Post by Forum Member Taranjeet Singh Regarding:
Help with su.
Please Follow The Primary Link Above to View the Full Discussion.

   
Old Unix and Linux 02-26-2009
Taranjeet Singh Taranjeet Singh is offline
Registered User
 
Join Date: Dec 2008
Last Activity: 22 December 2009, 1:57 PM EST
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Help with su

I was trying to use "su - <account>" but it prompts me for password in interactive mode. How do I write main.sh script that executes various commands by logging in as different accounts and login profiles. Is there a way to automatically redirect the password for "su" command to accept the password.

Please guide me further...

Thanks...