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

From: Antoni Grzymala <antoni_AT_chopin.edu.pl>
Date: Sat, 4 Dec 2010 20:29:19 +0100

Gene Auyeung dixit (2010-12-04, 11:23):

> 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?

Simplest way:

<your-user> ALL=(ALL) NOPASSWD: ALL

The safer way would obviously be if you limit this to /bin/mount.

Regards,

-- 
[a]
Received on Sat Dec 04 2010 - 20:29:19 CET

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