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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-27-2004, 07:29 AM
|
#1
|
LQ Newbie
Registered: Apr 2004
Location: Middle East
Distribution: RH9
Posts: 23
Rep:
|
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.
|
|
|
10-27-2004, 04:01 PM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
You should be able to set up sudo to let you run it as root.
|
|
|
10-28-2004, 01:23 AM
|
#3
|
LQ Newbie
Registered: Apr 2004
Location: Middle East
Distribution: RH9
Posts: 23
Original Poster
Rep:
|
unfortunately, my embedded linux doesn't have this sudo or at least I don't find it for some reason.
HTS
|
|
|
10-28-2004, 02:00 AM
|
#4
|
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852
|
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.
|
|
|
10-28-2004, 03:21 AM
|
#5
|
LQ Newbie
Registered: Apr 2004
Location: Middle East
Distribution: RH9
Posts: 23
Original Poster
Rep:
|
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 11:57 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|