I'm currently trying to mount a PTP camera as a user via fusefs_gphotofs.
It works as root but not as a user. I think I've done everything I'd expect/need to do to get this to work. There's not a great deal of info resulting from Google searches.
Any and all help/advice appreciated. Lots of details below, please tell me if you want/need more diags.
mount point is:
Mounting the camera:
No errors reported, no output to stdout.
Accessing the mountpoint:
output from mount command (local HDDs and NFS mount removed):
Processes:
Unmounting:
su to root then mount it:
Back to user dave:
(no output this time)
It works as root but not as a user. I think I've done everything I'd expect/need to do to get this to work. There's not a great deal of info resulting from Google searches.
Any and all help/advice appreciated. Lots of details below, please tell me if you want/need more diags.
Code:
uname -a
FreeBSD webmaker.asgard.uk 8.2-RELEASE-p1 FreeBSD 8.2-RELEASE-p1 #0: Mon Apr 25 18:54:10 BST 2011 root@:/usr/obj/usr/src/sys/WEBMAKER i386
Code:
ldstat | grep fuse
12 1 0xc5315000 e000 fuse.ko
Code:
/etc/devfs.conf
perm xpt0 0660
perm pass* 0660
own fuse* root:operator
perm fuse* 0666
perm ugen* 0666
perm usb* 0666
perm acd0 0660
perm cd0 0660
link cd0 cdrom
link cd0 dvd
Code:
cat /etc/devfs.rules
[system=10]
add path 'pass*' mode 0666
add path 'xpt0' mode 0666
add path 'unlpt*' mode 0666 group cups
add path 'ulpt*' mode 0666 group cups
add path 'lpt*' mode 0666 group cups
add path 'cdrom' mode 0666 group operator
add path 'fd0' mode 0666 group operator
add path 'dvd' mode 0666 group operator
add path 'da*' mode 0666 group operator
add path 'uscanner*' mode 0666 group operator
add path 'bktr' mode 0666 group operator
add path 'bktr0' mode 0666 group operator
add path 'tuner' mode 0666 group operator
add path 'tuner0' mode 0666 group operator
add path 'video*' mode 0666 group operator
add path 'cuse*' mode 0666 group operator
add path 'fuse*' mode 0666 group operator
add path 'ugen/*' mode 0666 group operator
add path 'usb/*' mode 0666 group operator
add path 'ugen*' mode 0666 group operator
add path 'usb*' mode 0666 group operator
Code:
pw groupshow operator
operator:*:5:root,dave
mount point is:
Code:
ll | grep camera
drwxr-xr-x 2 dave dave 0 Jan 1 1970 camera
Mounting the camera:
Code:
gphotofs ~/camera
No errors reported, no output to stdout.
Accessing the mountpoint:
Code:
ls camera/
ls: camera/: Protocol error
output from mount command (local HDDs and NFS mount removed):
Code:
mount
devfs on /dev (devfs, local, multilabel)
linprocfs on /usr/compat/linux/proc (linprocfs, local)
procfs on /proc (procfs, local)
/dev/fuse0 on /usr/home/dave/camcard (fusefs, local, nosuid, synchronous, mounted by dave)
/dev/fuse1 on /usr/home/dave/camcard (fusefs, local, nosuid, synchronous, mounted by dave)
/dev/fuse2 on /usr/home/dave/camera (fusefs, local, nosuid, synchronous, mounted by dave)
Processes:
Code:
ps -aux | grep gphoto
dave 58088 0.0 0.8 30680 8248 ?? Is 3:57PM 0:00.61 gphotofs /home/dave/camera
Code:
umount ~/camera
umount: /home/dave/camera: statfs: Protocol error
umount: /home/dave/camera: unknown file system
su to root then mount it:
Code:
gphotofs /home/dave/camera
ls camera/
store_00010001
ls camera/store_00010001/DCIM/999_FUJI/
DSCF9284.JPG DSCF9285.JPG DSCF9286.JPG DSCF9287.JPG DSCF9288.JPG DSCF9289.JPG
Code:
ps -aux | grep gphoto
dave 58088 0.0 0.8 30680 8260 ?? Ss 3:57PM 0:00.73 gphotofs /home/dave/camera
root 58435 0.0 0.8 31048 8560 ?? Ss 4:03PM 0:00.27 gphotofs /home/dave/camera
Code:
umount /home/dave/camera/
ps -aux | grep gphoto
dave 58088 0.0 0.8 30680 8260 ?? Is 3:57PM 0:00.73 gphotofs /home/dave/camera
Back to user dave:
Code:
umount ~/camera
umount: /home/dave/camera: statfs: Protocol error
umount: /home/dave/camera: unknown file system
ps -aux | grep gphoto
dave 58088 0.0 0.8 30716 8272 ?? Ss 3:57PM 0:00.85 gphotofs /home/dave/camera
kill -HUP 58088
ps -aux | grep gphoto