Date: Fri, 13 Mar 2009 21:50:22 -0400 From: Steve Bertrand <steve@ibctech.ca> To: Jonathan Chen <jonc@chen.org.nz> Cc: Polytropon <freebsd@edvax.de>, freebsd-questions@freebsd.org Subject: Re: Execute and lock a user into a program upon login Message-ID: <49BB0D5E.7080309@ibctech.ca> In-Reply-To: <20090314014535.GB94130@osiris.chen.org.nz> References: <49BB0161.3070800@ibctech.ca> <49BB0467.6090606@ibctech.ca> <20090314021827.1ada6548.freebsd@edvax.de> <20090314014535.GB94130@osiris.chen.org.nz>
next in thread | previous in thread | raw e-mail | index | archive | help
Jonathan Chen wrote: > 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. Thank you. This appears to be what I want. I was trying it with the previous setup, but I had to put the user in the wheel group. I haven't yet figured where permissions were going astray. Your procedure will allow me to put the user in the wheel group for now, knowing that logout will occur as soon as the program terminates. This way, I can safely know it works, and make myself a note for Monday to fix the permissions issues ;) Regards, Steve
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49BB0D5E.7080309>