How to schedule a .sh script that requires sudo?

view story

https://bbs.archlinux.org – Hello everyone,How do I schedule a custom .sh script that requires sudo?The situation I want is: The script runs according to schedule and appears in a terminal.  I have to type in a password before this script can run.  Then the script runs.Note:- The program I have for scheduling is cronie (default cron.)Here is the situation:I type: crontab -eIn the text editor, I add in: 0 17 * * * sudo sh /home/me/Name.shI save the file.The script does not run at this time (e.g. 5:00 p.m.)Here's Name.sh:#!/bin/bash # # Note: Insert your <user> and execute it with sudo for pacman &amp (HowTos)