Bash: Can't su Within while loop

view full story

http://www.linuxquestions.org – I have a while loop in a file that looks like: Code: while IFS=":" read name script do         su              exit         ...         <snip> done < /path/to/file Where I redirect the file into the loop, for some reason, I can't do an su when I redirect a file like that. I get the error, "su: must be run from a terminal." Why is this? How can I fix it? Thanks. (HowTos)