pifs icon indicating copy to clipboard operation
pifs copied to clipboard

Permissions issue

Open ghost opened this issue 12 years ago • 4 comments

I compiled πfs and tried to mount a directory with it:

$ ls 
bin  mdd  root
$ ./bin/πfs root -o mdd=mdd
$ cd root
-bash: cd: root: No such file or directory
$ ls -lh | grep root
d????????? ? ?    ?       ?              ? root

What's wrong?

ghost avatar Aug 15 '13 22:08 ghost

I use x86_64 Linux.

ghost avatar Aug 21 '13 07:08 ghost

@therussianphysicist I didn't say that you did. I linked to this issue because the actual issue both of you are facing is the same. Neither of you are able to access the filesystem once it is mounted, which is the same issue I am facing as well.

G3n3r0 avatar Aug 22 '13 19:08 G3n3r0

I've tried to mount pifs and got the same issue. The reason is in pifs_getattr. It handles root pifs directory incorrectly when metadata directory specified as relative. So quick workaround: use absolute paths:

pifs -o mdd=`pwd`/metadata/ mnt/

pasis avatar Aug 22 '13 19:08 pasis

Mine wouldn't work with the mount path in my user's /home/username/mountpoint directory. I had to have both the mountpoint & meta directories in /mnt: /mnt/pifs/mountpoint/ & /mnt/second-hdd/pifsmeta/

Then I was able to have it autostart using root's crontab: @reboot /usr/local/bin/πfs -o mdd=/mnt/second-hdd/pifsmeta/ /mnt/pifs/mountpoint/

Doing this allows root access to the pifs mountpoint, but not user access unfortunately. I don't know a solution to that & will have to use the dir as root all the time. Chown user:user /path didn't work.

ghost avatar Nov 01 '15 07:11 ghost