Re: Execute and lock a user into a program upon login

2009-03-15 Thread gs_stol...@juno.com
And I think the cleanest solution would be to link .login to vtysh , make sure that your system logs out when it finishes this command or you can't use this technique. Steve Bertrand wrote (earlier today): > I think the cleanest solution would be to create a match block for your > user, and ap

Re: Execute and lock a user into a program upon login

2009-03-15 Thread Mister Olli
hi... have a look here: http://docs.hp.com/en/5991-7517/ch01s04.html I think the cleanest solution would be to create a match block for your user, and apply the forcecommand within that block... -- Olli On Fr, 2009-03-13 at 21:50 -0400, Steve Bertrand wrote: > Jonathan Chen wrote: > >

Re: Execute and lock a user into a program upon login

2009-03-13 Thread Steve Bertrand
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

Re: Execute and lock a user into a program upon login

2009-03-13 Thread Jonathan Chen
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 vtys

Re: Execute and lock a user into a program upon login

2009-03-13 Thread Steve Bertrand
Polytropon wrote: > On Fri, 13 Mar 2009 21:12:07 -0400, Steve Bertrand wrote: >> Steve Bertrand wrote: >>> Hi everyone, >>> >>> Although the application of my question focuses on network operation, I >>> believe that the objective fits this list. >>> >>> Mostly irrelevant, I have been working on s

Re: Execute and lock a user into a program upon login

2009-03-13 Thread Polytropon
On Fri, 13 Mar 2009 21:12:07 -0400, Steve Bertrand wrote: > Steve Bertrand wrote: > > Hi everyone, > > > > Although the application of my question focuses on network operation, I > > believe that the objective fits this list. > > > > Mostly irrelevant, I have been working on securing my network

Re: Execute and lock a user into a program upon login

2009-03-13 Thread Steve Bertrand
Steve Bertrand wrote: > Hi everyone, > > Although the application of my question focuses on network operation, I > believe that the objective fits this list. > > Mostly irrelevant, I have been working on securing my network perimeter. > I have a FreeBSD box that acts as a host-based BGP peer to a

Execute and lock a user into a program upon login

2009-03-13 Thread Steve Bertrand
Hi everyone, Although the application of my question focuses on network operation, I believe that the objective fits this list. Mostly irrelevant, I have been working on securing my network perimeter. I have a FreeBSD box that acts as a host-based BGP peer to all edge connected routers. I use th