Not to mention that capable users can turn it off, which may or may not be desirable.SirDice said:You could simply start it through their ~/.profile. That would be the easiest way. But that would require editing the user's profile each time you add a new user.
shell prog Session shell to execute
rather than the shell speci-
fied in the passwd file. The
SHELL environment variable
will contain the shell speci-
fied in the password file.
Or, combining the two above: set the shell directive in login.conf to a simple script that first runs the binary and then execs the shell in /etc/(master.)passwd:SirDice said:Depending on the binary you could set the user's shell to that binary. If they exit the application they'd log off.
#!/bin/sh
# Run the binary.
/path/to/binary option1 option2 etc.
# When done, replace the script with the shell.
exec ${SHELL}
I wanted to write exactly this above - but only without detailsfonz said:Or, combining the two above