Re: [dev] Remount rootfs sync on impending battery depletion.

From: Troels Henriksen <athas_AT_sigkill.dk>
Date: Sat, 04 Dec 2010 20:28:19 +0100

Gene Auyeung <quaker4lyf_AT_gmail.com> writes:

> Hi,
>
> Just curious, how would the script get permission to mount? You can't
> type the password for sudo because it's not interactive. And you can't
> rely on the limited time that sudo grants access if you run the script
> with sudo, because presumably the battery lasts much longer than that?

sudo can be configured to permit certain users (such as your user
account) to run specific commands (such as mount) without prompting for
a password. It's a rather flexible tool.

-- 
\  Troels
/\ Henriksen
Received on Sat Dec 04 2010 - 20:28:19 CET

This archive was generated by hypermail 2.2.0 : Sat Dec 04 2010 - 20:36:03 CET