From owner-freebsd-questions@FreeBSD.ORG Fri Jan 19 22:55:42 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EB5B716A401 for ; Fri, 19 Jan 2007 22:55:42 +0000 (UTC) (envelope-from gregoryba@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by mx1.freebsd.org (Postfix) with ESMTP id 82C8313C45B for ; Fri, 19 Jan 2007 22:55:42 +0000 (UTC) (envelope-from gregoryba@gmail.com) Received: by nf-out-0910.google.com with SMTP id k27so597591nfc for ; Fri, 19 Jan 2007 14:55:41 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=E6jDukp0PpM5k77xeLYZE4B6VVHanMXqBGvwTanhqAMFo3JoQ8fJLhArJxNMyOUxMTWf6tqfJt7BfsJjoTfbxtcNiGnMff8uexBDJ0W1YVwG6GEjRg7pyifcG7h8KqQpwqFtRuMQ8ztNw+wJSxYc/f0Ua6FC8lhm0lcxU23vmgE= Received: by 10.49.36.6 with SMTP id o6mr3055830nfj.1169247340772; Fri, 19 Jan 2007 14:55:40 -0800 (PST) Received: by 10.48.223.12 with HTTP; Fri, 19 Jan 2007 14:55:40 -0800 (PST) Message-ID: <39ed86f90701191455y821a960hf95ea27a544b110f@mail.gmail.com> Date: Fri, 19 Jan 2007 14:55:40 -0800 From: "Greg Albrecht" To: "Don Munyak" In-Reply-To: <6207f7d90701191429x4ce667afyf4cf53d9388c7381@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6207f7d90701191429x4ce667afyf4cf53d9388c7381@mail.gmail.com> Cc: FreeBSD Questions Subject: Re: startup script with non-root user X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Jan 2007 22:55:43 -0000 according to rc.subr(8): ${name}_user User to run command as, using chroot(8). if ${name}_chroot is set, otherwise uses su(1). Only supported after /usr is mounted. so in your /etc/rc.conf you could put: hobbit_enable=YES hobbit_user="hobbit" -g On 19/01/07, Don Munyak wrote: > Hello, > > I have an application I'd like to startup at boot, however, the script > needs to be started by a non-user account. > > If I put the startup script in /usr/local/etc/rc.d/hobbit.sh > > How do I get it to start using the user account 'hobbit' > > Thanks > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > -- Greg Albrecht (gregoryba@gmail.com) An Indie, Hip Hop and IDM Podcast: The Letter G http://theletterg.org