2010-02-09 20:37:34 -0000, Stephane Chazelas: [...] > I've now found not too bad a work around: have a > /sbin/mount.bind like: > > #! /bin/sh -x > [ "$#" -ge 2 ] || exit > dev=$1 mount_point=$2; shift 2 > /bin/mount -i --bind -- "$dev" "$mount_point" || exit > [ "$1" != "-o" ] && exit > exec /bin/mount -i -o remount "$@" "$mount_point" > > and then: > > /here /there bind noexec 0 0 > > in fstab > > Of, course /sbin/mount.bind being a shell script, you don't want > to add the "user" option to the script, but that script could be > written in a safer language, you get the idea. [...]
Please ignore that last part, that script is run as the real user (I had assumed it was run as root because of mount's setuid). And "user" mounts wouldn't work anyway here. I can see mount.smbfs is a shell script as well. regards, Stephane -- remounts don't work with mountall https://bugs.launchpad.net/bugs/519380 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs