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 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:
    737
    Likes Received:
    4
    Trophy Points:
    318
    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?
     
    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:
    22
    Trophy Points:
    463
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. electric

    electric Well-Known Member

    Joined:
    Nov 5, 2001
    Messages:
    737
    Likes Received:
    4
    Trophy Points:
    318
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. ramprage

    ramprage Well-Known Member

    Joined:
    Jul 21, 2002
    Messages:
    655
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Canada
    Put a sticky note on your calendar :D
     
    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