[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: [BusyBox] allow non-root to do `hwclock --sysohc`
From: magicfox <magicfox () magic ! fr>
Date: 2004-05-25 17:17:13
Message-ID: 40B37F99.5020300 () magic ! fr
[Download RAW message or body]
> Is the above title possible? If so, how? I already did a chmod a+rwx on
> /dev/rtc,
> and even made my busybox binary suid (although a no-no), but still, my
> non-root
> user can't do a `hwclock --sysohc`. Any tips?
>
> TIA - Vic
Hi,
You have to enable CONFIG_FEATURE_SUID with /etc/busybox.conf option active.
Do a chmod u+s /bin/busybox (root.root)
Create a /etc/busybox.conf file containing
----
[SUID]
hwclock = ssx 0.0
----
then a normal user can run specified command with root rights
and $ hwclock -w works for me.
kind regards.
_______________________________________________
busybox mailing list
busybox@mail.busybox.net
http://codepoet.org/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic