Weirdness with permissions after mounting USB flash drive

Paul Murphy pnmurphy at cogeco.ca
Tue Oct 21 04:15:45 PDT 2003


On Tue, 21 Oct 2003 09:15:58 +0200
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?
> 
> See FreeBSD  FAQ[1].  Also, in /etc/fstab  you may adjust the  mode,
> see below -m700 for msdos filesystem:
> 
> /dev/da0s1 /mnt/usbkey msdos rw,-m700,noauto 0 0
> 

usbd.conf:
device "Flash Drive"
        devname "umass0"
        vendor 0x0ea0
        product 0x2168
        release 0x0200
        attach "/sbin/mount /flash_drive"


fstab:
/dev/da0s1	/flash_drive	msdos	rw,-m775,noauto	0	0


mounted permisions:
d---------    1 root  wheel    22016 Dec 31  1979 flash_drive


cd to /flash_drive as non-root user:
flash_drive: Permission denied.

FWIW:
vfs.usermount: 1

(Mounting is no problem, usbd does that for me. It's _how_ it's mounted
that is the problem)


 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.

-- 
Cogeco ergo sum
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20031021/4f567e99/attachment.bin


More information about the freebsd-questions mailing list