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

Mounting nul1fs with custom uid/gid #4

Closed
fspv opened this issue Mar 6, 2014 · 1 comment
Closed

Mounting nul1fs with custom uid/gid #4

fspv opened this issue Mar 6, 2014 · 1 comment

Comments

@fspv
Copy link

fspv commented Mar 6, 2014

Imagine that we have user "user" with uid=500 in group "group" with gid 500.
One can mount nul1fs to some place with uid and gid options. There is no problems here.

[root@host nullfs]# ./nul1fs -o uid=500,gid=500 /tmp/nul1fs
[root@host nullfs]# ls -lad /tmp/nul1fs
drwxrwxrwx 2 user group 0 Мар  6 16:43 /tmp/nul1fs

But later when we want to read or write something to this directory we will get "Permission denied"

[root@host nullfs]# su - user
[user@host ~]$ touch /tmp/nul1fs/sdf
touch: cannot touch `/tmp/nul1fs/sdf': Permission denied
[user@host ~]$ ls /tmp/nul1fs
ls: /tmp/nul1fs: Permission denied

But from "root" account we still can read and write as usual. And it returns us file with user:group ownerships.

[user@host nullfs]# ls -la /tmp/nul1fs/sdfdsf
-rw-rw-rw- 1 user group 0 Мар  6 17:04 /tmp/nul1fs/sdfdsf
@fspv fspv closed this as completed Mar 6, 2014
@fspv
Copy link
Author

fspv commented Mar 6, 2014

I have missed the mount option allow_other. With this option everything is working like a charm.

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

1 participant