What you describe can't be done in fstab.
The following are the typical ways to mount disks:
- Add them to fstab so they are automatically mounted at boot. (The option
defaults or auto in fstab does this.)
- Mount them manually, either as root with all parameters specified, or manually as only a mount point or device with remaining options from fstab, or as a user for entries listed in fstab with the
noauto,user options in the fourth column.
- Use udisks to automatically mount hot insert disks, such as cdroms and usb sticks, usually on the
/media directory. This however, only unmounts on user demand. Udisks typically mounts on device insertion, but it can also be triggered from the command line.
- Use autofs to mount them on demand, when the directory is referenced, and unmount them after a timeout and they are no longer in use.
Autofs is configured by listing managed top directories one per line in /etc/auto.master with a config file per managed directory, with each config file listing subdirectories of the managed directories.
For example, auto.master may list /etc/auto.misc which in turn may list a number of filesystems or devices with potential filesystems. The default auto.misc that comes with autofs lists floppy (commented out by default) which would be mounted on /misc/floppy if it was accessed and a filesystem was available on that device.
Sample lines from auto.master:
/misc /etc/auto.misc
/home /etc/auto.home
/disks /etc/auto.disks --timeout=3600
Sample line from auto.misc:
floppy -fstype=auto :/dev/fd0
Sample line from auto.home:
someuser homeserver:/export/home/someuser
Autofs can do everything you asked for except set the permissions, which typically are inherited from the permissions of the root directory on the mounted filesystem, or mount options if the filesystem supports that. The above (untested) disks line would require a corresponding /etc/auto.disks file describing the filesystems you want mounted in /disks/