Codiad-Terminal icon indicating copy to clipboard operation
Codiad-Terminal copied to clipboard

Why a password

Open wernight opened this issue 8 years ago • 3 comments

It's be useful that you explain why there should be a password. I guess it's only because all there is no terminal access per user and all Codiad users run under the same UID/GID, and I guess there is no "public" exploit known risks (i.e. from non-logged in users). Those are all guesses and it'd be nice to update the README with a bit of details.

wernight avatar Jun 23 '16 09:06 wernight

It'd be also good to allow having no password if one trusts all users on its system (or single user).

wernight avatar Jun 23 '16 09:06 wernight

+1

ScrumpyJack avatar Jul 08 '16 12:07 ScrumpyJack

FYI, you can disable auth completely in terminal by commenting out the following lines in term.php :

  • 15:
  // Password

and:

  • 175 - 189
      //  $_SESSION['term_auth'] = 'false';
       // $output = '[CLOSED]';
        
    // }else if(! isset($_SESSION['term_auth']) || $_SESSION['term_auth']!='true'){
        
        //////////////////////////////////////////////////////////////
        // Authentication
        //////////////////////////////////////////////////////////////
        
      //          if($command==PASSWORD){
      //      $_SESSION['term_auth'] = 'true';
      //      $output = '[AUTHENTICATED]';
      //  }else{
      //      $output = 'Enter Password:';
       // }

Screenshot:

image

seanvree avatar Aug 10 '17 12:08 seanvree