LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-27-2004, 06:29 AM   #1
HTS
LQ Newbie
 
Registered: Apr 2004
Location: Middle East
Distribution: RH9
Posts: 23

Rep: Reputation: 15
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.
 
Old 10-27-2004, 03:01 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
You should be able to set up sudo to let you run it as root.
 
Old 10-28-2004, 12:23 AM   #3
HTS
LQ Newbie
 
Registered: Apr 2004
Location: Middle East
Distribution: RH9
Posts: 23

Original Poster
Rep: Reputation: 15
unfortunately, my embedded linux doesn't have this sudo or at least I don't find it for some reason.
HTS
 
Old 10-28-2004, 01:00 AM   #4
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
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.
 
Old 10-28-2004, 02:21 AM   #5
HTS
LQ Newbie
 
Registered: Apr 2004
Location: Middle East
Distribution: RH9
Posts: 23

Original Poster
Rep: Reputation: 15
Sorry,

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

Is it OK to ask HOW-TO?

thanx, HTS
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
hwclock problems =[ alphisb0t Linux - General 1 03-16-2005 09:43 PM
hwclock alaios Linux - General 1 11-02-2004 08:40 AM
hwclock problem conure Linux - Newbie 2 04-11-2004 07:10 PM
Hwclock ? TZ ? GMT ? membrax Linux - Newbie 1 02-07-2003 09:36 AM
hwclock problem???? cancel_T Linux - General 2 08-02-2002 04:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration