Results 1 to 3 of 3
Hello,
I have used cron over 10 years, but now I first time saw user-id on parameter. I tried to google it, but there was no success. Can somebody explain ...
- 08-01-2009 #1Just Joined!
- Join Date
- Jul 2009
- Posts
- 4
cron params
Hello,
I have used cron over 10 years, but now I first time saw user-id on parameter. I tried to google it, but there was no success. Can somebody explain me?
This is on root's crontab
*/usr/sbin/ntpd will run on every 30min as user ntp:ntpCode:30 * * * * root /usr/sbin/ntpd -q -u ntp:ntp
What does this root means?
- 08-01-2009 #2Linux Newbie
- Join Date
- Mar 2009
- Posts
- 228
From the 'man 5 crontab'
The system crontab is /etc/crontab. The 'root' in your example means to run the command that follows as user root.The format of a cron command is very much the V7 standard, with a number of upward-compatible extensions.
Each line has five time and date fields, followed by a user name if this is the system crontab file, fol-
lowed by a command.
- 08-03-2009 #3Just Joined!
- Join Date
- Jul 2009
- Posts
- 4
That is what I suppose it to be. I forgot to look at man.
Thanks!


Reply With Quote