[Xorp-hackers] Shell command suppport
Ray Qiu
Ray Qiu <ray.qiu@gmail.com>
Fri, 20 Aug 2004 00:03:25 -0700
I see. Is it because of the security concern? Thanks.
--Ray
On Thu, 19 Aug 2004 23:03:51 -0700, Atanu Ghosh <atanu@icsi.berkeley.edu> wrote:
> If you have installed xorpsh as a login shell then we do *not* want to
> allow shell commands to be executed. Which is why João explained how it
> is possible to distinguish a xorpsh login shell from a xorpsh started
> from the command line.
>
> Atanu.
>
> >>>>> "Ray" == Ray Qiu <ray.qiu@gmail.com> writes:
>
> Ray> I made a patch to add command "shell" to the operational mode.
> Ray> It uses system() call. It can be used to execute Unix shell
> Ray> commands. I didn't see any problems even when I configured to
> Ray> use xorpsh as the login shell. Screen capture is attached.
>
> Ray> Did I miss anything?
>
> Ray> --Ray
>
> Ray> On Thu, 19 Aug 2004 22:17:31 -0300, João Carlos Mendes Luís
>
>
> Ray> <jonny@jonny.eng.br> wrote:
> >> In Unix, if it is a login shell, two conditions will occur:
> >>
> >> - $SHELL wil be set to /path/xorpsh - argv[0] of the runnig
> >> process will have a '-' as the first character
> >>
> >> Both of these, especially the last, could be checked to verify if
> >> it is a login shell, and decide to allow or not shell commands.
> >>
> >>
> >>
> >> Atanu Ghosh wrote: > If the xorpsh is installed as a login shell
> >> it may not be desirable > to allow the execution of shell
> >> commands.
> >> >
> >> > Atanu.
> >> >
> >> >
> >> >>>>>>"Ray" == Ray Qiu <ray.qiu@gmail.com> writes:
> >> >
> >> >
> >> > Ray> Hi, Is there any particular reason that XORP doesn't
> >> support > Ray> executing shell commands from the CLI?
> >> >
> >> > Ray> Thanks.
> >> >
> >> > Ray> --Ray _______________________________________________ >
> >> Ray> Xorp-hackers mailing list Xorp-hackers@icir.org > Ray>
> >> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers >
> >> _______________________________________________ > Xorp-hackers
> >> mailing list > Xorp-hackers@icir.org >
> >> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers
> >>
> >> --
> >>
> >> Jonny
> >>
> >> --
> >> João Carlos Mendes Luís - Networking Engineer -
> >> jonny@jonny.eng.br
> >> _______________________________________________
> >>
> >>
> >> Xorp-hackers mailing list Xorp-hackers@icir.org
> >> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers
> >>
>