[Bug 1081323] Re: /bin/sh illegal option -p when using pam_namespace.so

Steve Langasek steve.langasek at canonical.com
Wed Nov 21 04:23:38 UTC 2012


This comes from the /etc/security/namespace.init file.  Feel free to
edit the file to be correct, changes will be preserved on upgrade.  If
you get this working to your satisfaction, patches will be welcome.

** Bug watch added: Debian Bug tracker #624842
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=624842

** Also affects: pam (Debian) via
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=624842
   Importance: Unknown
       Status: Unknown

** Changed in: pam (Ubuntu)
       Status: New => Triaged

** Changed in: pam (Ubuntu)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to pam in Ubuntu.
https://bugs.launchpad.net/bugs/1081323

Title:
  /bin/sh illegal option -p when using pam_namespace.so

Status in “pam” package in Ubuntu:
  Triaged
Status in “pam” package in Debian:
  Unknown

Bug description:
  When PAM is configured to use pam_namespace.so, something, presumably
  PAM, emits the line "/bin/sh: 0: Illegal option -p" once for every
  entry defined in /etc/security/namespace.conf.  Switching /bin/sh from
  dash to bash using dpkg-reconfigure dash avoids the problem.

  I have seen this problem when authenticating with login, sudo, and su,
  but not with ssh (sshd is configured with UsePAM yes).

  Is it possible that pam_namespace.so is making the assumption that
  /bin/sh is implemented by bash?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pam/+bug/1081323/+subscriptions




More information about the foundations-bugs mailing list