Results 1 to 3 of 3

Thread: Disable built-in commands?

  1. #1

    Default Disable built-in commands?

    I might run a shell with different privileges than the user to provide a controlled list of things the user can do in that context. Is it possible to disable the ! and 'script' commands?

    Thanks!

  2. #2
    Join Date
    Sep 2012
    Posts
    2

    Default Disable built-in commands?

    If computer file does not contain a reduce, or if PATH_DIRS is set, the shell looks in the elements of $path to find the listing containing computer file. Files in the current listing are not study unless ‘.’ appears somewhere in $path. If a computer file named ‘file.zwc’ is found, is more recent than computer file, and is the collected form (created with the zcompile builtin) of computer file, then orders are study from that computer file instead of computer file.
    Last edited by edwardmaya; Sep 20th, 2012 at 06:50 AM.
    edwardmaya

  3. #3
    Join Date
    Sep 2004
    Location
    Leuven, Belgium
    Posts
    1,853

    Default

    Spring Shell 1.0.0 does not have a direct way to disable the built-in commands.
    However, what you could do is setup your own launcher iso using the org.springframework.shell.Bootstrap one that comes with Spring Shell. That will give you full control over what commands are available.

    Erwin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •