Hi all, Got a small problem thats just driving me nuts. I have an MP3 player that appears as a memory stick - from dmesg: umass0: iRiver Limited. iRiver Internet Audio Player IFP-700, rev 2.00/0.01, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: <iriver MassStorage Disc > Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: 500MB (1024001 512 byte sectors: 64H 32S/T 500C) (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x10, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x10, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x10, scsi status == 0x0 The mount-point is owned by root:operator, and my user is a member of the operator group. I have vfs.usermount=1 in sysctl.conf. I have a devfs.rules file: [riff_usb=10] # Make USB drives readable to those in the "operator" group add path 'da*' mode 0660 group operator and it is referenced in rc.conf. But .. loop@riff ~ % mount /flash mount_msdosfs: /dev/da0: Operation not permitted loop@riff ~ % ls -la /dev/da0 crw-rw---- 1 root operator 0, 122 Feb 8 22:24 /dev/da0 Can anyone shed some light on what is happening here? Cheers, rob
On Wed, 8 Feb 2006 22:40:04 +1100 Rob <rbyrnes@mailshack.com> wrote:> Can anyone shed some light on what is happening here?AFAIK, only root can mount things under FreeBSD, period. I could be wrong on this... but I looked around a while ago for something to do the job of the Linux 'user' option, and found nothing. I kinda remember trying changing permissions too. If I'm wrong, I'd love to be corrected :-). - Michael
Rob <rbyrnes@mailshack.com> writes:> Got a small problem thats just driving me nuts. I have an MP3 player that > appears as a memory stick - from dmesg: > > umass0: iRiver Limited. iRiver Internet Audio Player IFP-700, rev 2.00/0.01, > addr 2 > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: <iriver MassStorage Disc > Removable Direct Access SCSI-0 device > da0: 1.000MB/s transfers > da0: 500MB (1024001 512 byte sectors: 64H 32S/T 500C) > (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x10, scsi status > == 0x0 > (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x10, scsi status > == 0x0 > (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x10, scsi status > == 0x0 > > The mount-point is owned by root:operator, and my user is a member of the > operator group. I have vfs.usermount=1 in sysctl.conf. I have a devfs.rules > file: > > [riff_usb=10] > # Make USB drives readable to those in the "operator" group > add path 'da*' mode 0660 group operator > > and it is referenced in rc.conf. > > But .. > > loop@riff ~ % mount /flash > mount_msdosfs: /dev/da0: Operation not permitted > loop@riff ~ % ls -la /dev/da0 > crw-rw---- 1 root operator 0, 122 Feb 8 22:24 /dev/da0 > > Can anyone shed some light on what is happening here?Hard to say. Can you make the mount as root? [If not, maybe you're using the wrong device; these kinds of gadgets are generally sliced. Or maybe the failing SCSI commands are a problem.] If you can make the mount as root, check the sysctl and user's groups from the command line to make sure that the settings are being done properly.
Rob <rbyrnes@mailshack.com> wrote: > The mount-point is owned by root:operator, and my user is a member of the > operator group. I have vfs.usermount=1 in sysctl.conf. The mount point must be owned by the user. Being in the group of the mount point is not sufficient. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "To this day, many C programmers believe that 'strong typing' just means pounding extra hard on the keyboard." -- Peter van der Linden
> Date: Wed, 8 Feb 2006 06:46:37 -0600 > From: Michael Ekstrand <lists@elehack.net> > Subject: Re: Trouble with mounting USB stick as user > To: freebsd-stable@freebsd.org > Message-ID: <20060208064637.11c015ee.lists@elehack.net> > Content-Type: text/plain; charset=US-ASCII > > On Wed, 8 Feb 2006 22:40:04 +1100 > Rob <rbyrnes@mailshack.com> wrote: > > Can anyone shed some light on what is happening here? > > AFAIK, only root can mount things under FreeBSD, period. I could be > wrong on this... but I looked around a while ago for something to do > the job of the Linux 'user' option, and found nothing. I kinda remember > trying changing permissions too. > > If I'm wrong, I'd love to be corrected :-). > > - Michael# portupgrade -N security/sudo # man sudo