Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permissions issue #5

Open
ghost opened this issue Aug 15, 2013 · 4 comments
Open

Permissions issue #5

ghost opened this issue Aug 15, 2013 · 4 comments

Comments

@ghost
Copy link

ghost commented Aug 15, 2013

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
Copy link
Author

ghost commented Aug 21, 2013

I use x86_64 Linux.

@G3n3r0
Copy link

G3n3r0 commented Aug 22, 2013

@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.

@pasis
Copy link

pasis commented Aug 22, 2013

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/

@ghost
Copy link

ghost commented Nov 1, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants