Thank you very much, lucamar, for your help and that idea. It works after I modified it to:
Yeah, sorry: I copied the wrong line from a diff
But in this case I must compile my current Linux password in my programs
There are lots of other options: getting it from the command line, from a (temp) file, etc.
I changed "users" into "user" in /etc/fstab (and rebooted Linux), but I still need sudo to mount a partition.
"man mount" says: "Only the user that mounted a filesystem can unmount it again. If any user should be able to unmount it, then use users instead of user in the fstab line".
And "users" does appear in https://help.ubuntu.com/community/Fstab.
So from my knowledge both options exist: "user" and "users". But both do not have the expected result on my system :-(
Oh, I see. Sorry again: I'm on an Ubuntu 11 box which doesn't seem to know about "users"
In theory, adding "user" (or "users") to
fstab should be enough but you may be finding some kind of interaction with other security features of the system ... for example, that
mount itself can't be run by normal users or something like that.
ETAI've been investigating a little and finally found this by a simple try:
lucamar@selene:~$ uname -srvmo
Linux 2.6.38-16-generic #67-Ubuntu SMP Thu Sep 6 18:00:43 UTC 2012 i686 GNU/Linux
lucamar@selene:~$ mount /media/Backs/
Unprivileged user can not mount NTFS block devices using the external FUSE
library. Either mount the volume as root, or rebuild NTFS-3G with integrated
FUSE support and make it setuid root. Please see more information at
http://ntfs-3g.org/support.html#unprivileged
It seems
mount needs to be sudo
ed to mount ntfs volumes.