USB flash not mounting on insertion

Bug #94721 reported by Stefano Rivera
6
Affects Status Importance Assigned to Milestone
hal (Ubuntu)
Invalid
Undecided
Unassigned
kde-hal-device-manager (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: hal

This may be a duplicate of Bug #86292 - I don't know.

However, I have quite a bit of debugging information, as this is a lab of 84 PCs, and we'd like to get this working.

Background:
Authentication is via LDAP (to eDirectory), and accounts are shared via NIS from the local LAB server. /home is NFS from the same server.

We have one user (TeePOG, the LAB admin, who's account isn't on eDirectory, but in /etc/passwd on the server), and flash drives work for him in KDE. In GNOME they work manually (gnome-mount), but not automatically.
He is a member of "admin".

We have another non-eDirectory user, except not in "admin", and it doesn't work for him.

We are using Feisty, because of bug #65827.

It seems like HAL is picking up the drive insertion, but GNOME or KDE doesn't get any further.

Revision history for this message
Stefano Rivera (stefanor) wrote :
Revision history for this message
Stefano Rivera (stefanor) wrote :
Revision history for this message
Stefano Rivera (stefanor) wrote :

Gnome Mount doesn't seem to work for users:

gnome-mount 0.5

** (gnome-mount:6415): WARNING **: Failed to initialize libhal context: (null) : (null)

Revision history for this message
Stefano Rivera (stefanor) wrote :

ID output for a sample user:

uid=1157(rvrste001) gid=1157(rvrste001) groups=24(cdrom),24(cdrom),25(floppy),25(floppy),29(audio),29(audio),44(video),44(video),46(plugdev),46(plugdev),1157(rvrste001)

pmount seems to work...

Revision history for this message
Stefano Rivera (stefanor) wrote :
Revision history for this message
TeePOG (arno-breedt) wrote :
description: updated
Revision history for this message
Martin Pitt (pitti) wrote :

manager.c/3302: gvm_user_active_at_console: check-foreground-console returned with 1

This seems to be the reason. Does /etc/pam.d/common-session contain

  session optional pam_foreground.so

?

Changed in hal:
status: Unconfirmed → Needs Info
Revision history for this message
Stefano Rivera (stefanor) wrote :

No, and I've never heard of that :-)

TeePOG?

Revision history for this message
William Grant (wgrant) wrote :

Not a kde-hal-device-manager bug.

Changed in kde-hal-device-manager:
status: Unconfirmed → Rejected
Revision history for this message
TeePOG (arno-breedt) wrote : Re: USB flash not mounting / PAM

The contents of /etc/pam.d/common-auth:

auth optional pam_group.so
auth sufficient pam_ldap.so
auth required pam_unix.so nullok_secure try_first_pass

Contents of /etc/pam.d/common-session:

session required pam_unix.so

Should I try changing the "required" in common-session to "optional"? Or is there something more elegant?

Revision history for this message
Stefano Rivera (stefanor) wrote :

Thanks, it was pam_foreground.so

Changed in hal:
status: Needs Info → Rejected
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.