BAD SU- from a cronned expect script
I have made an expect script which telnets to a machine, and then su's. It works perfectly when this script is executed manually. However when i put it in a cronjob, i get the error "BAD SU-" on the remote machine. The passworsd, and groups are fine for the user, other wise I would have the same error when i execute the script manually.. what could be the problem?!?