-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
zpool command complains about /etc/exports.d #10785
Labels
Type: Defect
Incorrect behavior (e.g. crash, hang)
Comments
@richardelling thanks for filing the issue, I'm working on fixing this and will open a PR soon. |
12 tasks
it also affects grub in a funny way https://bugs.gentoo.org/742503 |
behlendorf
pushed a commit
that referenced
this issue
Sep 25, 2020
If the /etc/exports.d directory does not exist, then we should only create it when we're performing an action which already requires root privileges. This commit moves the directory creation to the enable/disable code path which ensures that we have the appropriate privileges. Reviewed-by: Richard Elling <Richard.Elling@RichardElling.com> Reviewed-by: Matthew Ahrens <mahrens@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: George Wilson <gwilson@delphix.com> Closes #10785 Closes #10934
behlendorf
pushed a commit
that referenced
this issue
Oct 1, 2020
If the /etc/exports.d directory does not exist, then we should only create it when we're performing an action which already requires root privileges. This commit moves the directory creation to the enable/disable code path which ensures that we have the appropriate privileges. Reviewed-by: Richard Elling <Richard.Elling@RichardElling.com> Reviewed-by: Matthew Ahrens <mahrens@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: George Wilson <gwilson@delphix.com> Closes #10785 Closes #10934
jsai20
pushed a commit
to jsai20/zfs
that referenced
this issue
Mar 30, 2021
If the /etc/exports.d directory does not exist, then we should only create it when we're performing an action which already requires root privileges. This commit moves the directory creation to the enable/disable code path which ensures that we have the appropriate privileges. Reviewed-by: Richard Elling <Richard.Elling@RichardElling.com> Reviewed-by: Matthew Ahrens <mahrens@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: George Wilson <gwilson@delphix.com> Closes openzfs#10785 Closes openzfs#10934
sempervictus
pushed a commit
to sempervictus/zfs
that referenced
this issue
May 31, 2021
If the /etc/exports.d directory does not exist, then we should only create it when we're performing an action which already requires root privileges. This commit moves the directory creation to the enable/disable code path which ensures that we have the appropriate privileges. Reviewed-by: Richard Elling <Richard.Elling@RichardElling.com> Reviewed-by: Matthew Ahrens <mahrens@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: George Wilson <gwilson@delphix.com> Closes openzfs#10785 Closes openzfs#10934
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
System information
Describe the problem you're observing
If the /etc/exports.d directory does not exist, then
libshare_nfs_init()
attempts tocreate it. This can and should fail for non-root users. However, attempts
to run
zpool
as a non-root user are rewarded withDescribe how to reproduce the problem
zpool list
Include any warning/errors/backtraces from the system logs
The text was updated successfully, but these errors were encountered: