[Pkg-samba-maint] Bug#558267: smbfs: mount.cifs fails from crontab

Frederic Mothe mothe at nancy.inra.fr
Fri Nov 27 14:01:11 UTC 2009


Package: smbfs
Version: 2:3.4.3-1
Severity: normal

Hello,

I use an automatic backup script which mount a samba share, call 
backup2l and umount the share. It is launched daily from crontab 
and worked well from several years. Since a few weeks, it does not 
work anymore.

The script still works from the command line, and I can mount the 
samba share with:

/sbin/mount.cifs //mandragore/qualbois /tmp/mnt \
	-o credential=/tmp/credential

or

/sbin/mount.cifs //mandragore/qualbois /tmp/mnt \
	-o user=NANCY/fmothe,pass=password

But when I try it from crontab using a line like:

30 8 * * * /sbin/mount.cifs //mandragore/qualbois /tmp/mnt \
	-o credential=/tmp/credential >/tmp/output.txt 2>&1

nothing happens at 8:30 and tmp/output.txt is created empty.

I also tried to launch it from gnome-schedule and got a terminal window
with a "Password:" prompt.
Replying with the good password gives:

mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Please, let me know if you think that this is not related to samba.

Thanks,
Frédéric Mothe


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (600, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.30
Locale: LANG=fr_FR at euro, LC_CTYPE=fr_FR at euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages smbfs depends on:
ii  libc6                  2.9-4             GNU C Library: Shared libraries
ii  libcap2                2.11-2            support for getting/setting POSIX.
ii  libcomerr2             1.41.3-1          common error description library
ii  libgssapi-krb5-2       1.7dfsg~beta3-1   MIT Kerberos runtime libraries - k
ii  libk5crypto3           1.7dfsg~beta3-1   MIT Kerberos runtime libraries - C
ii  libkeyutils1           1.2-9             Linux Key Management Utilities (li
ii  libkrb5-3              1.7dfsg~beta3-1   MIT Kerberos runtime libraries
ii  libldap-2.4-2          2.4.11-1          OpenLDAP libraries
ii  libtalloc2             2.0.0-1           hierarchical pool based memory all
ii  libwbclient0           2:3.4.3-1         Samba winbind client library
ii  netbase                4.37              Basic TCP/IP networking system
ii  samba-common           2:3.4.3-1         common files used by both the Samb
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime

smbfs recommends no packages.

Versions of packages smbfs suggests:
ii  smbclient                     2:3.4.3-1  command-line SMB/CIFS clients for 

-- debconf-show failed





More information about the Pkg-samba-maint mailing list