Off the top of my head -- you can setuid the date program.
An alternative is - do you want each user to keep track of his own time and 
date?
You can come up with a simple program to generate the offset from the set time 
to the real time and store it somewhere in the person's login directory.  
Everytime this person executes that date command, it reads this offset and 
computes from the new time from the real time.
That way the user need not change the date.

But then some programs that get the date directly from the system will not 
work -- but then again, you could delve down to the source and change the 
library of gettime...

Depends on what you want to do...anyway...



On 20 Mar 02 at 16:45, vince cagud wrote:

> quick answer but yet to be tested, sudo+date.
> 
> --v
> 
> 
> ----- Original Message -----
> From: "philip" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, March 20, 2002 2:14 PM
> Subject: [plug] date command
> 
> 
> > im trying to allow an ordinary user config the date using the '*date* '
> > command. has anyone ever done this before?
> >
> > _
> > Philippine Linux Users Group. Web site and archives at
> http://plug.linux.org.ph
> > To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
> >
> > To subscribe to the Linux Newbies' List: send "subscribe" in the body to
> [EMAIL PROTECTED]
> >
> 
> 
> _
> Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
> To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
> 
> To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
>[EMAIL PROTECTED]
> 
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to