allowing non root users to mount

Desmond Lee desmond.lee at
Thu Aug 28 20:50:02 PDT 2003


I'm trying to set up my system so that it can automatically mount some
file systems on boot. 

However, can you do this on freeBSD? I mean, with RedHat it does it for
you so that you have a floppy and cdrom icon on your desktop. But can
you do that w/ freeBSD? I don't think so cause if there is no floppy/zip
disk/ or cdRom in the drive when you mount, it will return you an error.
So trying to mount these on boot is not right... is this correct?

So far, I've just set up the /etc/fstab file so that the root can just
type "mount /floppy" or "mount /zip" or whatever to mount the drives as
needed. However, only root can do this and no other user is allowed to
do mounts. 

# Device		Mountpoint	FStype	Options		Dump
/dev/ad1s1b		none		swap		sw
0	0
/dev/ad1s1a		/		ufs		rw
1	1
/dev/ad1s1f		/usr		ufs		rw
2	2
/dev/ad1s1e		/var		ufs		rw
2	2
/dev/acd0c		/cdrom	cd9660	ro,noauto		0
/dev/fd0		/floppy	msdos   	rw,noauto
0	0
/dev/afd0s4		/zip		msdos		rw,noauto
0	0
proc			/proc		procfs	rw
0	0

Is there any way that I can get no root users to mount files systems
like cdrom, zip and floppy?

I tried to look this up and some people said to use the "user" option in
the /etc/fstab file, but this didn't work. Using the "nousid" option
didn't work either.

Thanks in advance.



More information about the freebsd-questions mailing list