pam_mount home directory (using SSHFS) can't log in
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
user-mounts |
New
|
Undecided
|
Unassigned | ||
Ubuntu |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hello all - first of all, great work on Ubuntu! Been using it for years and love it!
I'm not sure if this is a bug or a lack of knowledge on my part. The newest documentation that I've been able to find was from 2008 and it was mediocre at best and not ubuntu-specific. On a separate note, it would be helpful if someone knowledgeable on this topic could write a how-to.
Anyway, here it goes:
My user account information is stored on a remote LDAP server host name 'fileserver' running Ubuntu 11.10. I'm using pam_mount on my workstations to auto-mount a directory (also located on 'fileserver') when a user logs in to Ubuntu. User home directories are also on this network directory. Here's the problem. Sometimes it works, sometimes it doesn't.
On previous releases of Ubuntu, after typing my login credentials, I ALWAYS get an error indicating something to the effect that it couldn't access the .ICEAuthority file. If I wait a few seconds, then click close, everything works OK. If I click close immediately, it logs me in but without mounting the network directory (in effect, I get the desktop of a brand new user).
On Ubuntu 11.10, when I get the ICEAuthority error, my only choice is to log out - that brings me back to the login screen. No way to "pass go" it seems.
This sounds to me like some kind of timing issue. I'm guessing that my user account info (home directory, shell, etc) is pulled from LDAP much faster than pam_mount can mount the network directory. Ubuntu is probably expecting my home directory to exist immediately after I log in. Maybe I need some way to insert a delay between logging in and when Ubuntu looks for the existence of my home directory - to give pam_mount time.
Anyone have any ideas here?
Here's my pam_mount.conf.xml file in case it helps:
<!DOCTYPE pam_mount SYSTEM "pam_mount.
<!--
See pam_mount.conf(5) for a description.
-->
<pam_mount>
<!-- debug should come before everything else,
since this file is still processed in a single pass
from top-to-bottom -->
<debug enable="1" />
<!-- Volume definitions -->
<!-- pam_mount parameters: General tunables -->
<!--
<luserconf name=".
-->
<!-- Note that commenting out mntoptions will give you the defaults.
You will need to explicitly initialize it with the empty string
to reset the defaults to nothing. -->
<mntoptions allow="
ther" />
<!--
<mntoptions deny="suid,dev" />
<mntoptions allow="*" />
<mntoptions deny="*" />
-->
<mntoptions require=
<logout wait="0" hup="0" term="0" kill="0" />
<!--<fusemount>
<volume fstype="fuse" path="sshfs#
ptions=
<mkmountpoint enable="1" remove="true" />
</pam_mount>
Changed in ubuntu: | |
status: | New → Invalid |
I first asked this in the "Questions" section and didn't receive a response (I let it linger for about a week). If I need to provide more information, please let me know what to provide and I'd be happy to!