title: Unable to use sudo command because pam_open_session module is unknown
body: <p><em>It is showing.......</em></p>
  
  <p><strong>sudo: pam_open_session: Module is unknown
  sudo: policy plugin failed session initialization</strong></p>
  
  <p><strong>I can use pkexec command but sudo isn't running. Can anyone help me?</strong></p>
  
  <p>My pam.config file looks like</p>
  
  <pre><code># ---------------------------------------------------------------------------#
  # /etc/pam.conf                                  #
  # ---------------------------------------------------------------------------#
  #
  # NOTE
  # ----
  #
  # NOTE: Most program use a file under the /etc/pam.d/ directory to setup their
  # PAM service modules. This file is used only if that directory does not exist.
  # ---------------------------------------------------------------------------#
  
  # Format:
  # serv. module     ctrl       module [path] ...[args..]          #
  # name  type       flag                              #
  </code></pre>
  
  <p>My pam.d/sudo file looks like</p>
  
  <pre><code>#%PAM-1.0
  
  session    required   pam_env.so readenv=1 user_readenv=0
  session    required   pam_env.so readenv=1 envfile=/etc/default/locale user_readenv=0
  @include common-auth
  @include common-account
  @include common-session-noninteractive
  session required /home/iknownothing/simple-pam/mypam.so
  </code></pre>