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

Rainer Stratmann rainerstratmann at t-online.de
Mon Dec 7 00:51:56 CET 2015

 On Sunday 06 December 2015 19:15:45 you wrote:
> 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.

That seens to be true. Nothing found about that.

What works is an entry in the sudoers file.
And then the program/script you can call with root rights.
> 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 ... 

What do you mean exactly with "with their own password"?

More information about the fpc-pascal mailing list