Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Use a resticted shell, start the program via .profile and trap exiting the program with a logout. The user might close the program that way, but will be logged off. Commented Jul 11, 2023 at 11:31
  • Alternatively link an ssh login to the command and trap it. Commented Jul 11, 2023 at 11:38
  • Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Commented Jul 11, 2023 at 12:40