tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: George Gallen <ggallen () slackinc ! com>
To: tru64-unix-managers
Subject: Summary: cron & logins
Date: Wed, 10 Dec 1997 15:09:31 +0000	[thread overview]
Message-ID: <96078620310368.tru64-unix-managers.marc@archive.invalid> (raw)

original post:
------------------------------------------------------------------------
-------------------------------
Can cron trigger a login?	

What I want to do is:

have cron check every x minutes to see if a file exists. If it does
exist then
start a script which will start a login process which eventually die.
Can this
be done with 3.2c and C2. Unfortunatly,for now, this script will have to
have
passwords in it (not a major problem) for the login names I want to
force on
how do set those up in a script?

The problem is we are running a dbms program which is licensed for x #
of
users. I can setup phantom processes to run for each of the login names
I
need to check every x minutes and run the program needed, however each
phantom process takes up a user license. Our Unix has no limit (at least
no
where near the limit for our dbms). So instead, only when needed, I want
cron
to login the required login name and run the same program that the
phantom
would run, only one license would be used, and only when the that file
exists.

Thanx
George Gallen
ggallen@slackinc.com


ANSWERS:
------------------------------------------------------------------------
--------------------------------------------
Matt Moore , moorem@bucks.edu   suggested using su to for a forked
login.
which worked well when I placed it under root's cron, I didn't need a
password
to su username, so there was no security breech either.

Lucio Chiappetti , lucio@ifctr.mi.cnr.it  suggested using su as well,
also
   use of cron under each users name, or the use of rsh/rlogin.
------------------------------------------------------------------------
--------------------------------------------

I wound up using cron under each of the users account names, which seems
to
do the job just fine.


Thanx
George Gallen
ggallen@slackinc.com               

                 reply	other threads:[~1997-12-10 15:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox