From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <97429635515429.tru64-unix-managers.marc@archive.invalid> From: Padiyath Kumar Date: Wed, 15 Nov 2000 13:53:53 +0000 To: tru64-unix-managers Subject: SUMMARY: captive account - Is it possible in UNIX and how? X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=97429635515429 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.