Rabidmonkey1, (hehe, I enjoy saying that) so you can play with fstab with impunity:
Code:
sudo cp /etc/fstab /etc/fstab-worksok
Then you can experiment/play with /etc/fstab, and if you don't like the changes, then you can revert by running
Code:
sudo cp /etc/fstab-worksok /etc/fstab
To allow any user to mount a filesystem, just add the 'user' option:
Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda1
UUID=483835a4-10ed-4b28-aa0e-309daab4dd0f / ext3 defaults,errors=remount-ro 0 1
# /dev/sda5
UUID=5739bd42-d709-48f9-bbba-1eafd78a4b10 none swap sw 0 0
/dev/sdb1 /media/sdb1 ntfs-3g user,fmask=0111,dmask=0000 0 0
/dev/sdc1 /media/sdc1 ext3 rw,suid,dev,exec,auto,user,async 0 0
Notice that for /dev/scd1, 'defaults' became 'rw, suid, dev, exec, auto, user, async'. That's because defaults is shorthand for
rw, suid, dev, exec, auto, nouser, async. I simply changed nouser to user.
Here is a list of common options and what they mean:
Code:
defaults rw, suid, dev, exec, auto, nouser, async.
user Permit any user to mount the filesystem. This automatically implies noexec, nosuid,nodev unless overridden.
ro Mount read-only.
rw Mount read-write.
auto The filesystem can be mounted automatically at bootup. This is really unnecessary as this is the default action of mount -a anyway.
noauto The filesystem will NOT be automatically mounted at startup, or when mount passed -a. You must explicitly mount the filesystem.
dev/nodev Interpret/Do not interpret character or block special devices on the file system.
exec / noexec Permit/Prevent the execution of binaries from the filesystem.
suid/nosuid Permit/Block the operation of suid, and sgid bits.
nouser Only permit root to mount the filesystem. This is also a default setting.
_netdev this is a network device, mount it after bringing up the network. Only valid with fstype nfs.
fmask file permission mask (for vfat/ntfs). fmask=0111 means world readable,writable
dmask directory permission mask (for vfat/ntfs). dmask=0000 means world readable,writable,executable
sync/async All I/O to the file system should be done (a)synchronously.
My information comes from bodhi.zazen's excellent How to fstab tutorial
Bookmarks