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

--uid/gid not working #63

Closed
tomercagan opened this issue Mar 3, 2016 · 5 comments
Closed

--uid/gid not working #63

tomercagan opened this issue Mar 3, 2016 · 5 comments

Comments

@tomercagan
Copy link

Hi,

I have a node.js app and thought to share a mount between nodes in my cluster (EC2 instance) using an S3 mount (for users upload, which will be served through a static s3 site).

I am trying to use goofys for mounting the S3 bucket.

I followed the installation instruction and I am able to mount my bucket and see the files as the root user (centos). I am not able to access it as the web user (which supposed to run the node.js application):

[centos@ip-172-31-16-222` ~]$ id web
uid=995(web) gid=992(web) groups=992(web)
[centos@ip-172-31-16-222 ~]$ $GOPATH/bin/goofys --uid "995" --gid "992" -o allow_other my-app-static /mymount
[centos@ip-172-31-16-222 ~]$ cd /mymount/share/
files/      index.html  store/      uploads/    users/
[centos@ip-172-31-16-222 ~]$ sudo su web
[web@ip-172-31-16-222 centos]$ cd /mymount/share
bash: cd: /mymount/share: Permission denied
[web@ip-172-31-16-222 centos]$

Am I doing something wrong?

PS - the installed version I have is goofys version 0.0.4... shouldn't I get the latest version following the install directions in the main readme page?

@kahing
Copy link
Owner

kahing commented Mar 3, 2016

you do want 0.0.5, you may need to use go get -u instead of just go get. I will look into the other problem later

@tomercagan
Copy link
Author

I tried to use go get -u but it seems not to update... does my syntax using the uid/gid seem correct?

@kahing
Copy link
Owner

kahing commented Mar 8, 2016

the uid/gid usage seems correct. What does ls -l /mymount say?

@tomercagan
Copy link
Author

I kind of tried another solution. I will try to replicate and report back (thanks for taking the time to help!)

@kahing
Copy link
Owner

kahing commented Mar 9, 2016

Understood. It's odd because I cannot reproduce it here.

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

No branches or pull requests

2 participants