LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   hwclock - (https://www.linuxquestions.org/questions/linux-software-2/hwclock-247849/)

HTS 10-27-2004 06:29 AM

hwclock -
 
Hi,

Do you know how can I use hwclock as USER ?
I tried to chmod +s hwclock but when I back to USER it wrote that only superuser can use this command.
Since I am dealing with embedded RH-7 I need to use this command to make the CMOS clock the same as the clock determine by the command date.

thanx,
HTS.

david_ross 10-27-2004 03:01 PM

You should be able to set up sudo to let you run it as root.

HTS 10-28-2004 12:23 AM

unfortunately, my embedded linux doesn't have this sudo or at least I don't find it for some reason.
HTS

MS3FGX 10-28-2004 01:00 AM

You could set UID of the "hwclock" program to run as root.

Generally speaking, you shouldn't do this, but there isn't much security risk involved with users being able to set the BIOS clock, and (as far as I know) there aren't any vulnerabilities in that particular program.

HTS 10-28-2004 02:21 AM

Sorry,

set UID of the "hwclock" program to run as root.

Is it OK to ask HOW-TO?

thanx, HTS


All times are GMT -5. The time now is 03:01 AM.