I want to let a standard user change the system date.
So I created a named pipe. The standard user write a date to the named pipe and a root process listens to it and sets the date accordingly:
(user)
echo 122515502010 > /tmp/mypipe
(root)
date -s < /tmp/mypipe
Unfortunately this doesn't work. Where am I wrong?
I'm doing this from an embedded Linux (busybox) with bash.
Got it!
(root)
Thank you everybody! ;)
Why not give the user access to date via sudo ?