[LEDE-DEV] running stuff as !root

Radu Anghel eu at smellmysocks.net
Wed May 18 02:13:28 PDT 2016


Replying to myself :)

On Wed, May 18, 2016 at 10:53 AM, Radu Anghel <eu at smellmysocks.net> wrote:
>
> step 1. add users to /etc/passwd (in the pre/post-install script
> probably, trying to use same uid/gid as major distributions would be
> nice)
> step 2. add config option for user/group in the relevant /etc/config/ file
> step 3. modify startup script to use the user/group options when
> generating daemon config file
> step 4. ???
> step 5. PROFIT!
>

This approach would also open up some interesting posibilities
(interesting for me at least) like the ability to add non-privileged
users that can perform configuration changes or backups but can't use
sysupgrade.



More information about the Lede-dev mailing list