umount problems
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I have the following entry in fstab
//pooh/backup /bak/pooh/mnt smbfs
ro,user,noauto,uid=backup,credentials=/etc/smbfs/backup 0 0
(The above is all one line)
I have a cron job that runs as user backup and attempts to mount //pooh/backup
do the backup and then unmount it again. It used to work, but recently I
have been finding that the job has left the file share mounted. I checked
manually, and sure enough - as user backup I can mount the file but not
umount it.
The man pages say that if I have the "user" option it should allow a user to
mount it and to unmount it, and that it writes the user name in /etc/mtab. I
checked and no user is in the file. Indeed - checking though various
permissions, /etc/mtab is only writeable by root, /bin/mount appears to have
a setuid bit set, but /sbin/mount.smbfs is a symlink to /usr/bin/smbmount
which does not have the set uid bit set.
Is this a bug? in what ? (I am running sarge)
I can get round the problem by changing "user" to "users" in the /etc/fstab
line
Due to strange internet routing problems I can't get to bugs.debian.org at the
moment to search for a bug, so I haven't submitted any bug report. Should I?
- --
Alan Chandler
alan@chandlerfamily.org.uk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+iIXtuFHxcV2FFoIRAjeGAKChNYzeo2I02UzoOsuY1XCMj4+Z2ACfdtfu
R0CGEucuhB9D4q54SgW7fQQ=
=7Niw
-----END PGP SIGNATURE-----
Reply to: