Weirdness with permissions after mounting USB flash drive
Paul Murphy
pnmurphy at cogeco.ca
Mon Oct 20 19:52:37 PDT 2003
usbd.conf snippet:
device "Flash Drive"
devname "umass0"
vendor 0x0ea0
product 0x2168
release 0x0200
attach "/sbin/mount -t msdos /dev/da0s1 /flash_drive"
permissions of '/flash_drive' before mounting:
drwxrwxrwx 2 root wheel 512 Oct 20 22:27 flash_drive
permissions of '/flash_drive' after mounting:
d--------- 1 root wheel 22016 Dec 31 1979 flash_drive
(notice the date too!)
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?
[earth] /: usbdevs -v
Controller /dev/usb0:
addr 1: self powered, config 1, UHCI root hub(0x0000), VIA(0x0000), rev
1.00 port 1 powered
port 2 addr 2: power 200 mA, config 1, Flash Disk (0x2168), USB
(0x0ea0), rev 2.00
[earth] /: uname -a
FreeBSD earth.upton.net 4.9-RC FreeBSD 4.9-RC #0: Fri Oct 17 17:05:59
EDT 2003 root at earth.upton.net:/usr/obj/usr/src/sys/EARTH_ACPI i386
/var/log/messages snippet:
Oct 20 22:41:55 earth /kernel: umass0: USB Flash Disk , rev
2.00/2.00, addr 2
Oct 20 22:41:55 earth /kernel: da0 at umass-sim0 bus 0
target 0 lun 0
Oct 20 22:41:55 earth /kernel: da0: <OTi Flash Disk 2.00> Removable
Direct Access SCSI-2 device
Oct 20 22:41:55 earth /kernel: da0: 650KB/s transfers
Oct 20 22:41:55 earth /kernel: da0: 125MB (256000 512 byte sectors: 64H
32S/T 125C)
--
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/20031020/019c1619/attachment.bin
More information about the freebsd-questions
mailing list