Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
umount: only root can use "--types" option #8478
Describe the problem you're observing
When I try to create a volume as a non root user, I get a pretty warning explaining that as a non root user zfs can't mount the volume.
The equivalent error can be seen here:
$ /bin/umount x --types foo umount: only root can use "--types" option
Ideally, just as zfs create gives a human readable warning when it knows it can't mount a volume, zfs destroy should give a human readable warning when it knows it can't unmount a volume.
Describe how to reproduce the problem
$ sudo zfs allow user create,mount,destroy pool/vol $ zfs create pool/vol/test filesystem successfully created, but it may only be mounted by root $ sudo zfs mount pool/vol/test $ zfs destroy pool/vol/test umount: only root can use "--types" option cannot unmount '/vol/test': umount failed
Include any warning/errors/backtraces from the system logs
You can use sudo as a workaround and control which datasets and actions are allowed via the sudoers file (you also need to create a user of course), works fine for me.…
On Sat, May 25, 2019 at 1:38 AM minorsatellite ***@***.***> wrote: Any workarounds on the Linux side? I would prefer not the elevate to root for ordinary replication jobs. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#8478?email_source=notifications&email_token=AAIQO7CBV5UXTJIIX6Y2BNTPXB4BDA5CNFSM4G4HCNM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWGYONQ#issuecomment-495814454>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAIQO7F4NR6ZJAYB7DYDI7LPXB4BDANCNFSM4G4HCNMQ> .
@minorsatellite: with many many many security warnings, apparently there would be some way to work around this using