SUMMARY: captive account - Is it possible in UNIX and how?

From: Padiyath Kumar <Kumar.Padiyath_at_psi.ch>
Date: Wed, 15 Nov 2000 14:53:53 +0100

  I got another answer (perhaps an easier one) from Danielle of Compaq. Many
thanks. I thought that
 perhaps you people are interested to read it.


  Here is a better way even still to restrict the users if restricting them
to certain commands on certain files is what you are after.

You can make their shell entry in /etc/passwd a program instead of a shell.
This means that when the user logs in they dont even get to the shell prompt
at all, they get the running program which is started as their shell. In our
case this is a menu system that only provides the options to run commands
they need. If they terminate the program somehow, then their login is ended
and they are logged out automatically. Does this sound like what you want?

The entry in /etc/passwd looks like ...

username:password:uid:gid:stuff:homedir:/usr/local/bin/captivemenu

it can be a shell script or an executable.
Received on Wed Nov 15 2000 - 13:55:00 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:41 NZDT