Re: Running something from cron as another user.

From: Andy Marden (amarden@usa.net)
Date: 02/18/02


From: "Andy Marden" <amarden@usa.net>
Date: Mon, 18 Feb 2002 22:48:07 GMT

Thanks for the pointer. That's exactly what I was looking for - not easy to
track down!

Cheers

Andy

"Juha Laiho" <Juha.Laiho@iki.fi> wrote in message
news:a4ob69$v30$1@ichaos.ichaos-int...
> "Andy Marden" <amarden@usa.net> said:
> >> The problem here is that there is already a user running the batch
> >> load. As part of the load, if files are detected, I want to be able
> >> to bring down Postgres in the manner stated, but then I HAVE to be
> >> the postgres user it seems, not just the group. Don't want to run
> >> this all as root, nor as the postgres user, but want to be able to
> >> shutdown postgres. Happy to incorporate a password if necessary.
>
> Check what "sudo" brings you. "man sudoers".
>
> No password required. Co-operative root required, but apparently you
> have root access already, so that shouldn't be a problem.
> --
> Wolf a.k.a. Juha Laiho Espoo, Finland
> (GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
> PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
> "...cancel my subscription to the resurrection!" (Jim Morrison)



Relevant Pages

  • Re: Running something from cron as another user.
    ... > The problem here is that there is already a user running the batch load. ... Don't want to run this all as root, ... > postgres user, but want to be able to shutdown postgres. ... >> 'man crontab' for more info. ...
    (comp.os.linux.security)
  • Re: Running something from cron as another user.
    ... >> The problem here is that there is already a user running the batch ... As part of the load, if files are detected, I want to be able ... >> the postgres user it seems, ... Co-operative root required, but apparently you ...
    (comp.os.linux.security)

Quantcast