1

I want to whitelist some of the commands for users. I am getting solution using LShell Limited Shell but I want to restrict subcommands as well.
I want user to access docker ps and docker logs only. How can I achieve it via LShell?

8
  • 4
    What is an LShell? Commented Oct 17, 2023 at 8:10
  • May this help you ? access.redhat.com/solutions/65822 Commented Oct 17, 2023 at 10:04
  • @ramius that doesn't use lshell though Commented Oct 17, 2023 at 10:05
  • 1
    lshell is more efficient that rbash. That's why, I looking for solutions in lshell. Commented Oct 17, 2023 at 10:09
  • 2
    I don't know much about lshell, but looking at the documentation it seems not possible to restrict access to subcommands. Do you think it may be possible to use a wrapper script for the docker executable ? Commented Oct 17, 2023 at 10:14

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.