I am trying to list all the cron jobs for all the users in my Ubuntu system using the following command:
for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l; done
Why am I getting the following error:
must be privileged to use this -u