[Samba] Problem mounting with credentials file

Guenter Kukkukk linux at kukkukk.com
Sat Oct 28 00:00:15 GMT 2006


Am Freitag, 27. Oktober 2006 19:29 schrieb Jonathan Duncan:
> On Fri, 27 Oct 2006, Ethy H. Brito wrote:
> > On Fri, 27 Oct 2006 10:55:08 -0600 (MDT)
> >
> > Jonathan Duncan <jonathan at nacnud.com> wrote:
> >> I am mounting as the root user because I have not given my user
> >> permission to mount this share.
> >>
> >> Following is the results of the troubleshooting steps that you gave me.
> >> I did not understand what would be wrong from looking at the strace.
> >
> > Please run "locate mount.cifs" or, if you dont have it installed,
> > "find / -name mount.cifs 2>/dev/null"
> >
> > It seems that you do not have mount.cifs installed or it is out of your
> > search PATH. "mount" is looking for it at /sbin. Provide a link, please.
> >
> > Ethy
> >
> >> lstat64("/etc/mtab", {st_mode=S_IFREG|0644, st_size=286, ...}) = 0
> >> stat64("/sbin/mount.cifs", 0xbffa1e70)  = -1 ENOENT (No such file or
> >> directory)
> >> rt_sigprocmask(SIG_BLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0
> >> mount("//192.168.0.2/share", "/mnt/share", "cifs",
> >> MS_POSIXACL|MS_ACTIVE|MS_NOUSER|0xec0000, 0x80638f0) = -1 EINVAL
> >> (Invalid argument)
> >> rt_sigprocmask(SIG_UNBLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0
> >> write(2, "mount: wrong fs type, bad option"..., 111mount: wrong fs type,
> >> bad option, bad superblock on //192.168.0.2/share,
> >>         missing codepage or other error
> >> ) = 111
>
> locate and find both turned up nothing.
>
> Apparently I do not have mount.cifs on my filesystem.  That does not make
> sense to me.  CIFS works when I specify a username and password directly
> but not when I use the credentials option.  It would seem that CIFS is
> installed.
>
> Regards,
> Jonathan

Hi Jonathan,

you _need_ mount.cifs when using a credentials file!
mount.cifs reads and parses the credentials file - the cifs kernel module does _not_!

Good luck - Guenter Kukkukk


More information about the samba mailing list