The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    6
    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?
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Well, the jailshell uses the per user directories under the /home/virtfs file system.
     
  3. PondRicefied

    PondRicefied Well-Known Member

    Joined:
    Dec 13, 2004
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    6
    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?
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    I haven't played around with virtfs myself. Hopefully someone will pop by who has.
     
  5. PondRicefied

    PondRicefied Well-Known Member

    Joined:
    Dec 13, 2004
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    6
    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:
     
Loading...

Share This Page