1

sesu command prompt me to enter password.. I want to pass the password to shell script and login in my shell script.. Is it any better way to do this in shell script?

-bash-3.2$ sesu someusername
Please enter your password:
Zombo
  • 1
  • 62
  • 391
  • 407
Kittu
  • 29
  • 1
  • 5

1 Answers1

0

Perhaps this will work

echo password | sesu someusername
Zombo
  • 1
  • 62
  • 391
  • 407