grue@caen.engin.umich.edu (Paul Howell) (09/30/90)
We're running X11R4 on DECstations (Ultrix 3.1d) and using XDM to log people in. We have a program (not an X client) that we want only the person logged in at the console to be able to run. But unlike login, XDM doesn't change the ownership of /dev/console to the person currently logged in. So you can't stat /dev/console and get the person logged in. How can you tell if the person running your program is logged in at the console? Thanks. --- Paul Howell grue@caen.engin.umich.edu
rws@EXPO.LCS.MIT.EDU (Bob Scheifler) (10/01/90)
How can you tell if the person running your program is logged in at the console? This will be easier in R5, but have your xdm run a special startup/reset script for the server on the console. Have the startup script chown /dev/console to $USER, and have the reset script chown it back to root and chmod it back to 622.