Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. MIX and TransSECS both support setting the date/time on the system on which they are running. This wiki page is specific to Linux but many concepts apply to other OSs. For Windows specifics see [[windows_setting_the_date_and_time_from_secs|Setting the Date and Time on Windows from TransSECS Applications]] To do this, the property <file> date.setter </file> must be configured in the mix.properties (MIX) or ErgoTechConfiguration.properties (TransSECS). For example: <file> date.setter=sudo date </file> or <file> date.setter=sudo date -u </file> If the system clock is set to UTC (many Linux systems). On a Linux or similar system, the command to set the date is "date". Setting the date is privileged, that is you need root permission (sudo) to set this. You can test this by running the date command from a shell. Log in as the user running the application and type: <code bash> date 101216552002.23 </code> If the return is: <code bash> date: cannot set date: Operation not permitted Sat Oct 12 16:55:23 MDT 2002 </code> You do not have sufficient privileges to set the date. Running <code bash> sudo date 101216552002.23 </code> should prompt for a password and then set the date. However, the password prompt is a problem when running within MIX/TransSECS. To remove the prompt edit the file /etc/sudoers and, towards the end of that file add the line: <file> mix ALL=(ALL) NOPASSWD: /usr/bin/date </file> where "mix" is the name of the user running the application. You can also use a group name, eg <file> %wheel ALL=(ALL) NOPASSWD: /usr/bin/date </file> The %wheel is a group name, any member of that group can now run the date command without a prompt. There are more details of this approach here: https://unix.stackexchange.com/questions/18830/how-to-run-a-specific-program-as-root-without-a-password-prompt linux_setting_the_date.txt Last modified: 2021/04/09 14:20by wikiadmin