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

Using the X-mount.idmap option in fstab #2829

Open
uleysky opened this issue Mar 7, 2024 · 2 comments
Open

Using the X-mount.idmap option in fstab #2829

uleysky opened this issue Mar 7, 2024 · 2 comments

Comments

@uleysky
Copy link

uleysky commented Mar 7, 2024

I want to automatically mount cephfs from a remote cluster on my machine. Since the users and groups on the local and remote machines are different, I use idmap. However, there is no way to add such a mount point to /etc/fstab. User and group mappings must be separated by a space, which results in a read error. Specifying the X-mount.idmap option twice does not work. Specifying a file with mappings as a parameter results in the "Inappropriate ioctl for device" error.

In my Gentoo I solved the problem by making a patch that adds "_" as an alternative separator. But I would like this problem to be solved properly.

@karelzak
Copy link
Collaborator

You can use name="value", for example: X-mount.idmap="u:1000:0:1 g:1001:1:2 5000:1000:2"

@uleysky
Copy link
Author

uleysky commented Mar 20, 2024

Not in fstab
mount: /etc/fstab: parse error at line 47 -- ignored

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