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 #
Created attachment 32882 [details, diff] Patch for samba-3.0.2a-r2.ebuild to rectify the mount.cifs problem
This should be fixed in the new samba-3.0.4-r1 ebuild, can you see if the new version works for you ?
while we're waiting for samba-3.0.4 to become stable, i'm committing changes to samba-3.0.2a-r2 (thanks :)
Long fixed ...