Ending a session when user exits a program.

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Jeremy C. Reed
Date:  
Subject: Ending a session when user exits a program.
On Mon, 24 Feb 2003, Kyle Faber wrote:

> I have a user who, when the login will have a simple program running, called
> from .bashrc. This program gives them guided access to some system
> resources, like Lynx, pine and some others.
>
> What I want to eliminate is the ability for that user to exit the program, and
> drop to shell. But so far as I can tell, I have to allow them this same
> shell access in order to get in. If they were logged out when they exited
> this program, that would be sufficient.


Don't use a real shell for their login command (last field in
/etc/passwd). Just have it run that simple program.

Or use some type of restricted shell, like rbash, and force them to only
have limited commands.

Jeremy C. Reed
http://bsd.reedmedia.net/