Find the answer to your Linux question:
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 ...
  1. #1
    Just 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
    Code:
    30 * * * * root /usr/sbin/ntpd -q -u ntp:ntp
    */usr/sbin/ntpd will run on every 30min as user ntp:ntp

    What does this root means?

  2. #2
    Linux Newbie
    Join Date
    Mar 2009
    Posts
    228
    From the 'man 5 crontab'

    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.
    The system crontab is /etc/crontab. The 'root' in your example means to run the command that follows as user root.

  3. #3
    Just Joined!
    Join Date
    Jul 2009
    Posts
    4
    That is what I suppose it to be. I forgot to look at man.

    Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...