Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Mar 2009 14:45:35 +1300
From:      Jonathan Chen <jonc@chen.org.nz>
To:        Polytropon <freebsd@edvax.de>
Cc:        Steve Bertrand <steve@ibctech.ca>, freebsd-questions@freebsd.org
Subject:   Re: Execute and lock a user into a program upon login
Message-ID:  <20090314014535.GB94130@osiris.chen.org.nz>
In-Reply-To: <20090314021827.1ada6548.freebsd@edvax.de>
References:  <49BB0161.3070800@ibctech.ca> <49BB0467.6090606@ibctech.ca> <20090314021827.1ada6548.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Mar 14, 2009 at 02:18:27AM +0100, Polytropon wrote:

[..]
> If the user's shell is csh (FreeBSD's standard dialog shell), you
> could achieve the goal:
> 
> 	~/.login
> 	vtysh
> 	logout
> 
> Only problem: I don't know how the shell will act when the user
> terminates the vtysh application (^C)...

Change the contents of ~/.login to:

    exec vtysh

This overlays the shell with "vtysh". When it exits, the session will
be closed.
-- 
Jonathan Chen <jonc@chen.org.nz>
------------------------------------------------------------------------
"We laugh in the face of danger, we drop icecubes down the vest of fear"
                                                 - Edmond Blackadder III



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090314014535.GB94130>