My users are on Ubuntu running Docker and mounting directories in their sessions. The problem is that any non-existing directory or file mounted with Docker is owned by root.
I would like to allow my users to remove any root-owned file or directory under their $HOME
directory with an /etc/sudoers
directive. Something like :
# /!\ This is not working
%MyUsers ALL=NOPASSWD: /bin/rm $HOME/*
- Is it possible within
/etc/sudoers
? - What options do I have ?
Thanks for your help.
Using Docker-rootless mode is not an option for us.