Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How is a specific command restricted under the Jail environment?

Discussion in 'General Discussion' started by PondRicefied, Jan 28, 2005.

  1. PondRicefied

    PondRicefied Well-Known Member

    Joined:
    Dec 13, 2004
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    156
    I think that I want to provide a user with Jail shell.
    However, I want to change it so that a user cannot run about a part of commands.

    How should I set up?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Well, the jailshell uses the per user directories under the /home/virtfs file system.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. PondRicefied

    PondRicefied Well-Known Member

    Joined:
    Dec 13, 2004
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    156
    Is deleting an unnecessary command file OK in the command put below on /home/virtfs/username?

    Are they the only copied files? Probably, it will be awful to delete, if they are Hard Link files.

    I will be glad if there is the method of setting to a Jailshell user's creation time so that an unnecessary command etc. may not be created by the script file which is creating the file below in a virtfs directory.

    Any idea?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    I haven't played around with virtfs myself. Hopefully someone will pop by who has.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. PondRicefied

    PondRicefied Well-Known Member

    Joined:
    Dec 13, 2004
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    156
    Please give me advice if you please.
    I want to allow a user jailshell.
    However, I want to deny for specific commands (top, netstat, etc.) to be used by the user.
    How should I set up in order to make it not include those specific commands in /home/virtfs/username? :confused:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice