mkmountpoint fails with long path names.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libpam-mount (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: libpam-mount
Hi,
Upgrading from 10.04 LTS to 11.04 (libpam-mount from 1.3.2 to 2.8), I have few errors with the mounting of cifs shares.
More precisely in the creation of the mount point. It fails half the time. (Try1 fails, then Try2 succeeds, then Try3 fails, Try4 succeeds, Try 5 fails, etc, etc...)
auth.log relevant part when it fails on the first try is :
May 24 18:21:50 db-computer sshd[20079]: pam_mount(
May 24 18:21:50 db-computer sshd[20079]: pam_mount(
May 24 18:21:50 db-computer sshd[20079]: pam_mount(
May 24 18:21:50 db-computer sshd[20079]: pam_mount(
ycipher="(null)" fskeyhash="(null)" options=
May 24 18:21:50 db-computer sshd[20079]: pam_mount(
May 24 18:21:50 db-computer sshd[20079]: pam_mount(
May 24 18:21:50 db-computer sshd[20079]: pam_mount(
May 24 18:21:50 db-computer sshd[20079]: pam_mount(
May 24 18:21:50 db-computer sshd[20079]: pam_mount(
May 24 18:21:50 db-computer sshd[20079]: pam_mount(
May 24 18:21:50 db-computer sshd[20079]: command: 'mount' '-t' 'cifs' '//zeus/testlogin' '/home/
May 24 18:21:50 db-computer sshd[20081]: pam_mount(
May 24 18:21:50 db-computer sshd[20081]: pam_mount(
May 24 18:21:50 db-computer sshd[20079]: pam_mount(
May 24 18:21:50 db-computer sshd[20079]: pam_mount(
May 24 18:21:50 db-computer sshd[20079]: pam_mount(
May 24 18:21:50 db-computer sshd[20079]: pam_mount(
auth.log relevant part when it succeeds on the next try is :
May 24 18:22:15 db-computer sshd[20240]: pam_mount(
May 24 18:22:15 db-computer sshd[20240]: pam_mount(
May 24 18:22:15 db-computer sshd[20240]: pam_mount(
May 24 18:22:15 db-computer sshd[20240]: pam_mount(
May 24 18:22:15 db-computer sshd[20240]: pam_mount(
May 24 18:22:15 db-computer sshd[20240]: pam_mount(
May 24 18:22:15 db-computer sshd[20240]: pam_mount(
May 24 18:22:15 db-computer sshd[20240]: pam_mount(
May 24 18:22:15 db-computer sshd[20240]: pam_mount(
May 24 18:22:15 db-computer sshd[20240]: pam_mount(
May 24 18:22:15 db-computer sshd[20240]: command: 'mount' '-t' 'cifs' '//zeus/testlogin' '/home/
May 24 18:22:15 db-computer sshd[20242]: pam_mount(
May 24 18:22:15 db-computer sshd[20242]: pam_mount(
Looks like pam_mount is not able to create the moint point in one step. Or maybe the chown command fails.
chown /home/department -> 3653:206158431263 looks weared, uh ?
Anyway, when falling back to libpam-mount 1.3.2 (on 11.04), it works just fine like before.
Any help ?
Frédéric Nass
IUT de Metz.
/etc/security/
<debug enable="1" />
<volume user="*" fstype="cifs" server="zeus" path="%(USER)" mountpoint="~" uid="1000-65535" options=
<volume user="*" fstype="cifs" server="zeus" path="commun" mountpoint=
<logout wait="10000" hup="yes" term="yes" kill="yes" />
<mkmountpoint enable="1" remove="true" />
(Auth is LDAP with nslcd configured. But things work fine with libpam-mount 1.3.2)
description: | updated |
summary: |
- mkmountpoint fails with long path... + mkmountpoint fails with long path names. |
Changed in libpam-mount (Ubuntu): | |
status: | Confirmed → Fix Released |
On the first try (when it fails) /home directory contains :
root@db- computer: /home# tree -p -d /home
/home
└── [drwx--x--x] department
Then on the second try (when it succeeds) /home directory contains :
root@db- computer: /home# tree -p -d /home
/home
└── [drwx--x--x] department
└── [drwx--x--x] group
└── [drwx-----x] testlogin
Frédéric.