Results 1 to 6 of 6

Thread: Temp shell access with expiration

  1. #1
    Member
    Join Date
    Dec 2001
    Location
    Long Beach, NY
    Posts
    287
    cPanel/WHM Access Level

    Root Administrator

    Default Temp shell access with expiration

    It would be great if a feature could be added so that a user can be granted interim shell access with an expiration so that the admin does not have to rely on remembering to revoke a temporary grant.

    For example -

    A client's web designer needs shell access for two days to work on a project over a weekend. You'd have another option in the Manage Shell Access screen where you can select and then enter the number of days or hours to grant, and then that access will automatically expire after that amount of time has elapsed.

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,307
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Temp shell access with expiration

    Are there any particular things you're finding people do via shell access repeatedly? I ask because this could be something we could consider for putting inside cPanel and thus further reduce the need for SSH.

    For example, some people used to want SSH just to use SFTP, but now we provide SFTP access even to those without SSH (admittedly, it is a very barebones access to their account). Others wanted SSH just so they could upload compressed files and then decompress them, so we added the ability to unzip files right into File Manager. If there's something people are doing via SSH often enough to establish a pattern of "hey, cPanel should add that as a feature" - we'd love to know about it.

  3. #3
    Member monarobase's Avatar
    Join Date
    Jan 2010
    Location
    France
    Posts
    494
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Temp shell access with expiration

    I can think of a few that some already have feature requests for (albeit quite old ones) :

    ability to upload from an URL (when installing scripts it's much quicker to do a wget then to download to PC and upload again).

    ability to recursivly download files from an external FTP account

    ability to reset all chmod recursivly (in our case with suphp set 644 for files and 755 for directories)

    ability to use git or another versioning tool

  4. #4
    Member
    Join Date
    Dec 2001
    Location
    Long Beach, NY
    Posts
    287
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Temp shell access with expiration

    wget is definitely a good idea, but the last user that asked for shell access simply wanted to be able to run scripts interactively to view errors directly. Otherwise, I barely get requests for ssh.

  5. #5
    BANNED
    Join Date
    Apr 2012
    Location
    Utah
    Posts
    117
    cPanel/WHM Access Level

    DataCenter Provider

    Default Re: Temp shell access with expiration

    This should go without saying but just to point out the obvious ....

    Shell access is EXTREMELY dangerous and very much not recommended even in a limited temporary capacity in any kind of shared hosting environment and I can't stress enough the dangers in allowing that even as "jailshell".

    I'd strongly recommend steering away from allowing shell access in any capacity unless you can personally vouche for the person who'd you'd be allowing shell access --- if the answer to that would be a "no", I wouldn't recommend allowing it! You are much better of doing for them on their behalf the tasks they want to do.

  6. #6
    Member
    Join Date
    Dec 2001
    Location
    Long Beach, NY
    Posts
    287
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Temp shell access with expiration

    Quote Originally Posted by NetMantis View Post
    This should go without saying but just to point out the obvious ....

    Shell access is EXTREMELY dangerous and very much not recommended even in a limited temporary capacity in any kind of shared hosting environment and I can't stress enough the dangers in allowing that even as "jailshell".

    I'd strongly recommend steering away from allowing shell access in any capacity unless you can personally vouche for the person who'd you'd be allowing shell access --- if the answer to that would be a "no", I wouldn't recommend allowing it! You are much better of doing for them on their behalf the tasks they want to do.
    The entire point of this feature request it so minimize the amount of time access is granted for when it must be granted. The risks are clearly understood, but you are not going to erase the need for functionality that grants it, so the best thing we can do is to minimize that access. This feature request works to that goal.

Similar Threads

  1. Replies: 0
    Last Post: 11-06-2006, 03:27 PM
  2. shell access - jail shell
    By ctbhost in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 01-27-2005, 09:29 AM
  3. using shell access, how to use it?
    By fuldfk in forum cPanel & WHM Discussions
    Replies: 4
    Last Post: 11-01-2004, 01:02 AM
  4. jailed shell access - how does it differ from normal shell?
    By spaceman in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 08-04-2004, 11:08 AM
  5. shell access
    By ljprevo in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 06-03-2003, 02:32 PM

Tags for this Thread