Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
only50000hours
@only50000hours@mastodon.bsd.cafe  ·  activity timestamp 3 months ago

Today I read through zfs-allow(8) and spent some time to create the perfect permission set for my experiment. It bothered me that the chmod command in Example 1 was not based on #FreeBSD chmod(1). So I came up with a fancy setfacl -a 0 user:zfsrecvuser:rwxp—aARWcCos:dir_inherit:allow /myrecvzpool/myvmbackup and all that did was to change the “cannot mount” message from “failed to create mountpoint: Permission denied” to “Insufficient privileges” in spite of vfs.usermount=1 in my sysctl.conf. I was frustrated. Then I thought mac(3) could solve my problem until I found out that this would be based on #posix and I probably do not want to change the default nfsv4 acltype of my #ZFS dataset. Then it finally occured to me that I could just chown the directory in question to zfsrecvuser which did the trick. Then I realised that this scary error message did not harm the smooth arrival of my beautiful snapshot with carefully crafted properties anyway. I just had to mount manually with sufficient privileges. Next time I will just use zfs-autobackup. But being aware of some details does not hurt I guess.

  • Copy link
  • Flag this post
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0-rc.2.21 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login