[fpc-pascal] shell script with root rights and automatic password

Marc Santhoff M.Santhoff at web.de
Sun Dec 6 19:15:45 CET 2015


On So, 2015-12-06 at 17:20 +0100, Rainer Stratmann wrote:
> How to do this?
> 
> I would like to run a script with root rights from an application.
> The password should be transferred automatically.

Others told that unix doesn't allow skripts run as root.

For your task sudo may help. With it you allow the user (or group) in
question to run programs with root rights, but they have to identify
with their own password. Lowering security risk ...

-- 
Marc Santhoff <M.Santhoff at web.de>




More information about the fpc-pascal mailing list