-
Notifications
You must be signed in to change notification settings - Fork 52
Closed
Description
Environment
- OS: Linux distribution / Windows version
Linux 5.17.6-1-MANJARO
- Dotter version: Find out using `dotter -V
Dotter 0.12.10
- Additional relevant information
Description
The watch
subcommand fails when not run as root.
Reproduction
> touch /tmp/global.toml
> dotter -g /tmp/global.toml -d watch
[ERROR] Failed to watch repository
Caused by:
run watch deploy
I/O error: Permission denied (os error 13)
> sudo dotter -g /tmp/global.toml -d watch
[sudo] password for :
[ WARN] It is not recommended to run Dotter as root, since the cache files and all files not marked with an `owner` field will default to being owned by root.
If you're truly logged in as root, it is safe to ignore this message.
Otherwise, run `dotter undeploy` as root, remove cache.toml and cache/ folders, then use Dotter as a regular user.
[Dotter] Deploying...
Expected behavior
watch
should work, and not require root privileges.
Actual behavior
watch
does not work at all when run not as root.
Metadata
Metadata
Assignees
Labels
No labels