If I put a script in /etc/cron.daily on CentOS what user will it run as? Do they all run as root or as the owner?
They all run as
root. If you need otherwise, use
su in the script or add a crontab entry to the user’s crontab (
man crontab) or the system-wide crontab (whose location I couldn’t tell you on CentOS).
Leave a comment
- Cron expression that runs every 5 minutes from 1:30 am – 6:00 am [duplicate]
- Understanding redundant power supplies
- Is there a way for administrators to disable users from installing Firefox extensions?
- Is there research material on NTP accuracy available?
- How to create a limited “domain admin” that does not have access to domain controllers?