Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 53236

Summary: samba-3.0.2a doesn't install mount.cifs correctly.
Product: Gentoo Linux Reporter: Jaco Kroon <jaco>
Component: New packagesAssignee: Gentoo's SAMBA Team <samba>
Status: VERIFIED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch for samba-3.0.2a-r2.ebuild to rectify the mount.cifs problem

Description Jaco Kroon 2004-06-07 10:40:17 UTC
the samba-3.0.2a-r2 ebuild installs mount.cifs in /usr/bin, whilst this is ok for normal users there is the annoying side effect that mount -t cifs doesn't work.  This also means that one cannot use cifs from /etc/fstab, nor from automount.  I've hacked around a bit with pam_mount and that works the way it is installed.

The fix imho opinion is simple, it's the same as for smbmount, which is symlinked to /sbin/mount.smbfs, simply install the file in /usr/bin (it's not required for boot in most cases I would wager and is deffinately not system critical) and symlink /sbin/mount.cifs -> /usr/bin/mount.cifs.  This works on my system and I'll attach a patch for the ebuild in a minute.

Reproducible: Always
Steps to Reproduce:
slowcoach tmp # mount -t cifs //pug/portage /tmp/portage
mount: wrong fs type, bad option, bad superblock on //pug/portage,
       or too many mounted file systems
slowcoach tmp # ln -s /usr/bin/mount.cifs /sbin/mount.cifs
slowcoach tmp # mount -t cifs //pug/portage /tmp/portage
Password: 
slowcoach tmp #
Comment 1 Jaco Kroon 2004-06-07 10:41:40 UTC
Created attachment 32882 [details, diff]
Patch for samba-3.0.2a-r2.ebuild to rectify the mount.cifs problem
Comment 2 Michael Glauche (RETIRED) gentoo-dev 2004-06-13 06:37:52 UTC
This should be fixed in the new samba-3.0.4-r1 ebuild, can you see if the new version works for you ?
Comment 3 Christian Andreetta (RETIRED) gentoo-dev 2004-06-18 03:08:22 UTC
while we're waiting for samba-3.0.4 to become stable, i'm committing changes to samba-3.0.2a-r2 (thanks :)
Comment 4 Jaco Kroon 2005-07-28 05:10:44 UTC
Long fixed ...