Announcement Announcement Module
Collapse
No announcement yet.
Disable built-in commands? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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, 06:50 AM.

    Comment


    • #3
      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

      Comment

      Working...
      X