Weirdness with permissions after mounting USB flash drive

Jean-Baptiste Quenot jb.quenot at caraldi.com
Tue Oct 21 05:26:20 PDT 2003


* Paul Murphy:

> Jean-Baptiste Quenot <jb.quenot at caraldi.com> wrote:
>
> > * Paul Murphy:
> >
> > >  I _can_ read/write to it as root,  but I would really like to use
> > > it as a non-root user. Any thoughts as to why this is happening?
> >
> > [...] in  /etc/fstab you may  adjust the  mode, see below  -m700 for
> > msdos filesystem:
> >
> > /dev/da0s1 /mnt/usbkey msdos rw,-m700,noauto 0 0
>
> fstab: /dev/da0s1 /flash_drive msdos rw,-m775,noauto 0 0
>
>
> mounted  permisions:  d---------  1  root  wheel  22016  Dec  31  1979
> flash_drive

FWIW you could check if your  specific FreeBSD supports the -m switch by
looking at the mount_msdosfs man page.

>  As a side  note, the device has  a little slider that  is supposed to
> lock the  drive from  being written  to. Does FreeBSD  honour this? Is
> this a software  or hardware lock?  I'm pretty sure  in the above case
> it is in the unlock position.

No, AFAIK the write lock is a  hardware lock that has nothing to do with
the mount process.

Best regards,
-- 
Jean-Baptiste Quenot
http://caraldi.com/jbq/


More information about the freebsd-questions mailing list