Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Allow non-Admin users to modify system preferences' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Allow non-Admin users to modify system preferences
Authored by: mc717990 on Aug 01, '03 10:22:30AM

Couldn't you use an AppleScript to execute a setuid root command line app to set the date and time?

sudo chmod +s /bin/date

The command:

date 8506131627

sets the date to ``June 13, 1985, 4:27 PM''.

So, just create an apple script which generates the information, and sends it to the date command.



[ Reply to This | # ]
Allow non-Admin users to modify system preferences
Authored by: masskinner on Aug 06, '03 08:11:02AM

Ideally, you would SUID root the actual DateAndTime preference pane bundle. Unfortunately, this has no effect, which sort of makes sense given that these are "extensions" and not really applications.



[ Reply to This | # ]