Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 53236 - samba-3.0.2a doesn't install mount.cifs correctly.
Summary: samba-3.0.2a doesn't install mount.cifs correctly.
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's SAMBA Team
Depends on:
Reported: 2004-06-07 10:40 UTC by Jaco Kroon
Modified: 2005-07-28 05:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

Patch for samba-3.0.2a-r2.ebuild to rectify the mount.cifs problem (samba-3.0.2a-mount.cifs.patch,420 bytes, patch)
2004-06-07 10:41 UTC, Jaco Kroon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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
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 ...