Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jan 1999 12:45:14 -0800
From:      Eric Hodel <hodeleri@seattleu.edu>
To:        cjc@scitec.com
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: su in sh scripts
Message-ID:  <369A62DA.F68EDED7@seattleu.edu>
References:  <199901111556.KAA20912@newmail.scitec.com>

next in thread | previous in thread | raw e-mail | index | archive | help
SciTec Postman wrote:
<snip> 
> So what I want to know is, what is the most graceful way to execute a
> couple of commands as another user from a shell script?

I don't know either, but an example is in /etc/periodic/310.locate as that
script su's to nobody then builds the locate database.
-- 
Eric Hodel
hodeleri@seattleu.edu

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?369A62DA.F68EDED7>