Faillures with pam_mount in openSUSE 12.3

Hello,

I have been banging my head for 5 consecutive days on pam_mount, I just can’t seem to get it to work the way I need it to.
Let me explain the situation; I’ve installed openSUSE 12.3 x64 version on one of my Desktops and successfully joined it to my Windows Domain.
Everything works as it should, but here’s the problem; I want to have pam_mount mount a user share from the Windows 2008 R2 file server.
From what I’ve read I should stick to cifs, I’ve tried %(USER) and %(USER_DOMAIN) variables and eventually ditched that to return to the basics, mount one simple share!
If I do it from within Dolphin there are no issue’s whatsoever, but within pam_mount it just won’t work.
the code in pam_mount.conf.xml is now very simple, and still it refuses to work:


<volume options="user=*" server="FILESERVER01" path="/SH-TEST" mountpoint="~/" fstype="cifs" />

It doesn’t get much simpler then that, however when I use that and try to login with a domain user I get the following error:
“Cannot enter home directory. Using /.” followed by this error: “Call to lnusertemp failed (temporary directories full?). Check your installation.”

And yes, I’ve cleared /tmp and /var/tmp every time I test, removed the users home directories, rebooted etc.
I am at a loss, I’ve tried everything I could think of, everything I could find using google and everything else, use / before the share, check share permissions, check NTFS permissions on the share, change mount points etc.
Everything I do either gives me the above error message or just let’s the user log in but not mount a single thing.
Oh and by now every pam_* package is installed, Kerberos is configured, etc.
I hope one of you guru’s could shed some light on this.
[FONT=trebuchet ms]

[/FONT]

Although I haven’t tried what you’re attempting, some Q come to mind…

How are you instantiating the mount? Remember that when Linux first boots up, no User is defined. It’s only ofter a User logs in that a User is defined so can then provide credentials for any User-based actions.

Have you or are you attempting to mount from the User console manually, or are you attempting to configure an automatic mount?

Dolphin and other Desktop apps perform actions and pass credentials a bit differently than non-Desktop apps, so no surprise Dolphin is working but may not be helpful to what I think you are trying to do.

If you want to mount something on system bootup, maybe mount a generic share, but within that share configure permissions so that when a User later logs in they only have access to a subdirectory of the original share? Am just speculating…

Recommend maybe experimenting with a different directory than /home. It might be easier to investigate with a directory or mount that isn’t critical to a Linux system bootup.

HTH,
TSU

Hi TSU,

Thank you for replying, the mount is automatic but is only started once the user logs in.
So when the user supplies the username, password and Domain Name and presses enter, thats when the pam_mount kicks off.
I’ve tried a generic share as well, created a test share with full share and NTFS permissions.

On 2013-03-25 20:56, apronk wrote:
> So when the user supplies the username, password and Domain Name and
> presses enter, thats when the pam_mount kicks off.

I would try mounting a local, linux, filesystem first, to see if
pam_mount triggers. I have never played with that thing, so I can’t
offer much help.

Have you tried on another openSUSE version, like 12.2? If it works
there, then it may be a bug in 12.3.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

Hi Carlos,

Unfortunately I don’t have another linux like system available to test it on.
And no, I haven’t tried it on 12.2 or 12.1 yet, that will be my last ditch effort.
Thanks for your help though!

I think I have found the exact issue causing this, relating to KDE: KDE4.6 with cifs home directories, lnusertemp error • KDE Community Forums