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 to enable SSH for customer on a limited time only?

Discussion in 'General Discussion' started by electric, Dec 8, 2006.

  1. electric

    electric Well-Known Member

    Joined:
    Nov 5, 2001
    Messages:
    697
    Likes Received:
    1
    Trophy Points:
    18
    I would like to enable SSH for customers only on a limited time basis. Is this possible?

    So basically, we turn on SSH, and specify a time when it should be automatically disabled. (ie: a month, a week, a day, etc...)

    Any ideas?
     
  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
    The simplest way would probably be to write a short script that you run via cron to switch their login shell in /etc/passwd from /usr/local/cpanel/bin/noshell to /bin/bash and back again.
     
  3. electric

    electric Well-Known Member

    Joined:
    Nov 5, 2001
    Messages:
    697
    Likes Received:
    1
    Trophy Points:
    18
    Good idea. A little time consuming to do this all manually, though.

    Would be great to see it added as a feature/option in WHM on the SSH control page... but I'm not going to even bother submitting a feature request into bugzilla, as I have zero belief the cpanel people give even one small piece of crap about making things "easier" or "better" for anyone.

    Thanks for your idea.
     
  4. ramprage

    ramprage Well-Known Member

    Joined:
    Jul 21, 2002
    Messages:
    667
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Canada
    Put a sticky note on your calendar :D
     
Loading...

Share This Page