mj@elmgate.UUCP (Mark Johnson OPER) (03/21/89)
I can't get a shelltool to run su. Say I'm logged in as bullwinkle, and I want to get a shelltool running as login rocky on my station (3/50 diskless - putt-putt-putt) so I can dbxtool programs as rocky, for instance. -> Note that since I want to use my window environment "shelltool rlogin host -l rocky" is the wrong answer. So, I try this: bullwinkle@host% su rocky Password: rocky@host% whoami rocky rocky@host% shelltool A shelltool appears. It runs .cshrc, including setting ignoreeof. Then the shelltool prompts me, and treats every keystroke as EOF! Every time I hit a key, I get Use "logout" to log out. After repeated failures, the shell gives up the ghost and the window disappears. OR - A shelltool appears. It runs .cshrc, including setting ignoreeof. Then the shelltool prompts me, and everything works fine. I get a shell with both ruid and euid set to rocky. There seems to be no way to predict whether it will succeed or not. It seems completely arbitrary. Yes, I have checked 'stty' on the fubar pty - it's identical to the others. I've tried 'reset' on it - no dice. "shelltool su - rocky" gives much the same behavior. I have not succeeded in writing a program that execl's shelltool after performing su - ALL shells done this way fail in the manner I've described. Anyone care to take a shot at it? AtDhVaAnNkCsE ------------------------------------------------------------------------------- Mark A Johnson Eastman Kodak Company - SISD UUCP: rochester!kodak!elmgate!mj USPS: 222 Norman Road, Rochester NY 14623 WORK: (716) 726-7035 "Quidquid latine dictum, altum videtur."