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

mount -r seems to be ignored for non-root users #1235

Closed
zeha opened this issue Jan 24, 2021 · 2 comments
Closed

mount -r seems to be ignored for non-root users #1235

zeha opened this issue Jan 24, 2021 · 2 comments

Comments

@zeha
Copy link
Contributor

zeha commented Jan 24, 2021

Debian bug#980828 reports that mount -r previously worked for non-root users.

I've quickly checked on 2.36.1: mount -r with a user-/etc/fstab entry indeed silently mounts read-write.

Ref: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=980828

@karelzak
Copy link
Collaborator

The option "-r" is between allowed options for non-root users in mount.c. Unfortunately, libmount uses "replace" mode for all options from the command line for non-root users, so all is overwritten by options from fstab.

It seems like a bug, a pretty old bug.

@zeha
Copy link
Contributor Author

zeha commented Jan 25, 2021

Thanks!

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