su shelltool (SunOS4.0)

Mark Johnson OPER mj at elmgate.UUCP
Tue Mar 21 08:35:49 AEST 1989


	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 at host% su rocky
	Password:
	rocky at host% whoami
	rocky
	rocky at 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."



More information about the Comp.unix.questions mailing list