[Samba] mount.cifs return code = -128
steve at steve-ss.com
Sat Nov 9 01:21:00 MST 2013
On Fri, 2013-11-08 at 14:06 +0000, Winkel, Richard J. wrote:
> I'm sure there are some code hackers on this list. This snippet from
> mount.h seems incapable of
> producing the value return value that I'm seeing, -128 (10000000). There
> must be something else going on but I'm flummoxed.
> /* exit status - bits below are ORed */
> #define EX_USAGE 1 /* incorrect invocation or permission */
> #define EX_SYSERR 2 /* out of memory, cannot fork, ... */
> #define EX_SOFTWARE 4 /* internal mount bug or wrong version */
> #define EX_USER 8 /* user interrupt */
> #define EX_FILEIO 16 /* problems writing, locking, ...
> mtab/fstab */
> #define EX_FAIL 32 /* mount failure */
> #define EX_SOMEOK 64 /* some mount succeeded */
> On 11/6/13 11:30 PM, Winkel, Richard J. wrote:
> > Could someone tell me what this return code means? This is mount.cifs
> > version 4.8.1 on a
> > centos 6.4 workstation joined to an AD domain, using automount with
> > auto.cifs containing
> > * -fstype=cifs,sec=krb5,user=&,uid=$UID,gid=$GID,cruid=$UID,noserverino
> > ://server.address.edu/&
> > When the machine is freshly booted, and for awhile afterwards, domain
> > accounts can mount with no problem.
> > But after some period of time, maybe day or so, the mount fails with the
> > above error. Rebooting fixes it.
> > Has anyone ever seen this before? I don't see how any combination of
> > the error codes listed in mount.h could
> > generate this number.
> > Thanks for any help!
> > Rich
Do you have all the $UID values in the keytab? You usually see -128 when
you don't. It's best to use an unprivileged user (say cifsuser), add him
to the keytab and use:
* -fstype=cifs,sec=krb5,username=cifsuser,multiuser,noserverino ://server.address.edu/&
If the domain user can get a ticket, then his share will be mounted. For this to work, make sure that you have configured cifs.upcall.
More information about the samba