From: Padiyath Kumar <Kumar.Padiyath () psi ! ch>
To: tru64-unix-managers
Subject: SUMMARY: captive account - Is it possible in UNIX and how?
Date: Wed, 15 Nov 2000 13:53:53 +0000 [thread overview]
Message-ID: <97429635515429.tru64-unix-managers.marc@archive.invalid> (raw)
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.
next reply other threads:[~2000-11-15 13:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-15 13:53 Padiyath Kumar [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-11-15 7:50 SUMMARY: captive account - Is it possible in UNIX and how? Padiyath Kumar
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox