Terminal Date command

Discussion in 'Mac Basics and Help' started by saelius88, Feb 1, 2011.

  1. saelius88 macrumors newbie

    Joined:
    Feb 1, 2011
    #1
    Hello all,

    In terminal when i enter the command $ date 0701102010 I get the following message

    date: bind: Permission denied
    date: settimeofday (timeval): Operation not permitted

    If I understand correctly this should change the date to January 10, 2007 8:10 PM right?

    How can I change this so that I get the proper permission?

    Thanks
     
  2. calderone macrumors 68040

    calderone

    Joined:
    Aug 28, 2009
    Location:
    Seattle
    #2
    Throw a sudo in front of that.

    If it was your last command, you can just do:

    Code:
    sudo !!
    To re-run it with superuser.
     

Share This Page