All Questions
Tagged with doas non-root-user
2
questions
0
votes
1
answer
49
views
Why isn't this command from this script run by the user specified by doas -u when this script is copied and run by an ansible playbook?
I wrote a simple playbook, open-links.yml, that is meant to run a script on one of my remote hosts:
- name: Run Bash script
hosts: myhosts
gather_facts: false
vars:
au: "j"
tasks:...
2
votes
1
answer
238
views
Why doesn't this script succeed from crontab as it does when manually run?
This script works when executed with doas ./backup_cron_root.sh
#!/usr/bin/bash
/usr/bin/crontab -l> "/tmp/cron.$(whoami).$(hostname)" && /bin/date>>"/tmp/cron.$(...