Hacker News new | past | comments | ask | show | jobs | submit login

My Unix time question is, when I do “sudo date <DDMMhhmmyyyy>” and then get a sudo password prompt, is the time supposed to take effect before or after the sudo is authenticated?

Emprically it seems to be after but that seems wrong; shouldn’t the result of the command be the same regardless of how long it takes to type the sudoer’s pw?




After, because sudo won’t run any command until it authorizes that you’re allowed to run the command.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: