Date: Sun, 5 Oct 2008 19:09:01 +0200 From: Mel <fbsd.questions@rachie.is-a-geek.net> To: freebsd-questions@freebsd.org Cc: DAve <dave.list@pixelhammer.com> Subject: Re: Running cron jobs as nobody Message-ID: <200810051909.01619.fbsd.questions@rachie.is-a-geek.net> In-Reply-To: <48E4E4B8.90202@pixelhammer.com> References: <48E4E4B8.90202@pixelhammer.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 02 October 2008 17:11:52 DAve wrote: > Good morning all, > > We have a cronjob we need to run as nobody from /etc/crontab and it > seems to be not working. The job runs, but not as user nobody. > > I noticed two things, > > 1) the job to update the locate DB runs as nobody, because the script > uses su to become nobody. > echo /usr/libexec/locate.updatedb | nice -5 su -fm nobody || rc=3 ^^^ -fm: Bypass .cshrc and only change user, use root env. > Is setting the user to nobody in /etc/crontab not possible? pw showuser operator pw showuser nobody Spot the difference (hint: /nonexistent) -- Mel Problem with today's modular software: they start with the modules and never get to the software part.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810051909.01619.fbsd.questions>