Conversation
Notices
-
Does anyone know how to use ACLs in Linux to allow a non-root user to do mounts? Like specifically I need a user to be able to mount an LVM in a container. So I can't make it a user mount in fstab because it's not being mounted on the host.
-
I know its possible because proxmox does it
-
I tried just using setfacl to make the lvm device rwx for the user but that did not work.
-
@Moon facls work at the fs level so I don't think you can do it that way. You can allow mount to be run with sudo (specific command not all root capabilities) but facls need the filesystem to be mounted to have an effect.
-
@Moon why not set the exact mount command and arguments in sudoers?