[comp.windows.x] X application as login process: how?

sherouse@godot.RadOnc.UNC.EDU (George W. Sherouse) (11/02/90)

We need to create a passwordless account for users of a specific X
application.  We are concerned about balancing user convenience
against security.  Hence, login to the account in question should:

1) Fail or exit immediately if not from the console (an X display, of
course)

2) Startup twm and the application in question if login was from
console, and logout when the application quits.

The solution must not interfere with normal use of the machine by
normal passworded users.

Our X seats are all running MIT R4, including xdm.  I have tried
various combinations of the login-shell field of /etc/passwd,
.xsession, .login, .profile, etc. but have not been able to invoke the
desired behavior.  Pointers gratefully received.

- George