Article View: comp.sys.sequent
Article #779Answer to su in crontab
From: Dewey Henize
Date: Tue, 14 Mar 1989 21:43
Date: Tue, 14 Mar 1989 21:43
22 lines
1261 bytes
1261 bytes
Thanks to everyone that responded with ideas that worked to change the effective user id for a process started from crontab. The key seems to be to use the '-c "command line"' option to su. Strangely there doesn't seem to be any mention of it in the man pages on our sequent, although after it was pointed out to me (thanks rich) I found it documented on a couple other systems we have, and it does seem to be working fine here. example line: 30 * * * * su uucp -c "/bin/sh /usr/lib/news/cleanstuff" Dewey Henize Execucom Systems. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | There is nothing in the above message that can't be explained by sunspots. | | execu!dewey Dewey Henize | | Can you say standard disclaimer? I knew you could. Somehow... |
Technical Details
Message-ID:
<387@sequoia.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!execu!sequoia!deweyShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!execu!sequoia!dewey From: dewey@sequoia.UUCP (Dewey Henize) Newsgroups: comp.sys.sequent Subject: Answer to su in crontab Message-ID: <387@sequoia.UUCP> Date: 14 Mar 89 21:43:06 GMT Reply-To: dewey@sequoia.UUCP (Dewey Henize) Organization: Home for Recalcitrant Hackers Lines: 22