You need to have CAP_SYS_ADMIN privileges to mount something, period, end of story, no exceptions.
The 'user' option in /etc/fstab works because /bin/mount is a setuid executable,
always running as root. It must check whether you're allowed to mount anything by itself, and checks against /etc/fstab, a file only modifiable by root.
gnome gets away with it by installing hooks into PAM to give it lots of permissions you're probably unaware of. It definitely needed root to install all those.
autofs gets away with it by running a system daemon with root permissions that mounts things for you. Naturally to install it you need root.
If you find any way to mount a filesystem without needing root's authority to configure or install anything, that is a bug and should be fixed.
---------- Post updated at 03:31 PM ---------- Previous update was at 03:29 PM ----------
Quote:
Originally Posted by
metallica1973
Was wondering about using the noauto option. If this is used will it still mount the drive after the boot automatically, or would i still have to mount the share after login manually?
It won't mount automatically, no.
It won't hang the system if it doesn't work, either.
I'd put
@reboot /bin/mount /path/to/mountpoint in your user crontab instead, or perhaps
/bin/mount /path/to/mountpoint in /etc/local.start instead if I wanted it to not depend on any user. It won't halt the boot process if mount fails in those places.