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.

Enable/ Disable OpenSSH from WHM ?

Discussion in 'General Discussion' started by aitn, Mar 20, 2002.

  1. aitn

    aitn Member

    Joined:
    Mar 14, 2002
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Hi..

    How I can Enable or Disable OpenSSH for a spesifc site or the whole site ?


    And How I can enable/disable the TELNET to spesific site from the console ?


    Please HeLP
     
  2. awsol

    awsol cPanel Test Bitch

    Joined:
    Feb 8, 2002
    Messages:
    591
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Boston MA
    At the shell type

    pico /etc/passwd

    You will see lines with :/bin/bash at the end. Those are users with shell access. To change them to no access do this.

    Change :/bin/bash to :/usr/local/cpanel/bin/noshell and this will deny their login.
     
  3. powerhouse

    powerhouse Well-Known Member

    Joined:
    Nov 5, 2001
    Messages:
    93
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Ok
    Or login to Shell and type this:

    chsh username
    it will prompt you for the new shell, type this:

    to add shell access to a user:
    /bin/bash

    To remove shell access:
    /usr/local/cpanel/bin/noshell

    hit enter, and poof....
    Done
    :p
     
Loading...

Share This Page