allowing non root users to mount

Desmond Lee desmond.lee at
Fri Aug 29 00:24:25 PDT 2003

Thanks for your help Lowell and others who replied :)

I apologize for asking a question that was already posted on the FAQ
FreeBSD site. I should have looked at the obvious resource for that.

I followed the instructions on the FAQ section about making non-root
users able to mount file systems and that worked fine, but it only works
if the target of the mounting point is accessible by that user.

So, 'mount -t msdos /dev/fd0 ~/myFloppy'

would only work if ~/myFloppy was a directory that was accessible by the
user who executed the mount command. Thus, if you were a non-root user
the stuff in the /etc/fstab would not be useful since the target of the
mount commands were only accessible by the root.

Thanks for the help


-----Original Message-----
From: owner-freebsd-questions at
[mailto:owner-freebsd-questions at] On Behalf Of Lowell Gilbert
Sent: Thursday, August 28, 2003 9:01 PM
To: freebsd-questions at
Subject: Re: allowing non root users to mount

Desmond Lee <desmond.lee at> writes:

> However, can you do this on freeBSD? I mean, with RedHat it does it
> 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
> disk/ or cdRom in the drive when you mount, it will return you an
> So trying to mount these on boot is not right... is this correct?

The usual approach for this is an automounter: see amd(8).

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

Yes.  See the FreeBSD FAQ: "How do I let ordinary users mount
floppies, CDROMs and other removable media?"

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

That advice is for Linux.  
freebsd-questions at mailing list
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe at"

More information about the freebsd-questions mailing list