[Bug 1083605] Re: env not changed in acc. with ~/.pam_environment if /home is on nfs

Steve Langasek steve.langasek at canonical.com
Sat Feb 2 08:24:47 UTC 2013


Yes, setresuid() does make a difference over NFS, but it's the wrong
interface.  You should be using setfsuid(), *not* setresuid().

If pam_env is already calling setfsuid() (which makes sense, as this is
mature and well-exercised code, including on NFS), then I don't know of
any other reason for the module to fail to read ~/.pam_environment on
NFS.  Someone who can reproduce this will need to trace the issue to see
what's happening.

-- 
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/1083605

Title:
  env not changed in acc. with ~/.pam_environment if /home is on nfs

Status in “accountsservice” package in Ubuntu:
  Fix Released
Status in “pam” package in Ubuntu:
  New

Bug description:
  When using localization setup from the login screen, the choice
  doesn't work because of a permission error, if the user's home
  directory is mounted with nfs. The problem happens because this is
  done by root, usually not able to write over nfs shares. The problem
  disappears if home directories are exported with no_root_squash
  option. So, something is making access as root, instead as user.

  I'm using Precise.

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




More information about the foundations-bugs mailing list