From owner-freebsd-questions@FreeBSD.ORG Wed Feb 6 15:51:24 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E0E916A468 for ; Wed, 6 Feb 2008 15:51:24 +0000 (UTC) (envelope-from zszalbot@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.freebsd.org (Postfix) with ESMTP id 7CB4D13C44B for ; Wed, 6 Feb 2008 15:51:23 +0000 (UTC) (envelope-from zszalbot@gmail.com) Received: by ug-out-1314.google.com with SMTP id y2so609920uge.37 for ; Wed, 06 Feb 2008 07:51:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=4+bRGsaG8Bru/xpyJoftp2jayoVWp63kLzGjd9Nks40=; b=MywImMebDfpriqmxURc5/LO/r7gD1kKTeHcNmJVPL0guUoGiWJ5BsrBqaGgxOrnM5CMS7T86WHMQE7seSahM2ku91OvYrPqRfbwLQrb/01/ORTsLMH3yGWGqo2HuOXopSLibCq8IOjEHDgY9AVToFEnyrfRlRq+1qUqcsmUcGos= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=JHwuljX7gLIe9CcaltSJVceqBmoh0xCLOBVuGxhWoJnynn51GPXfTlOPyTsayyGksrc7A/mbAUa87kCxGzieG9Jr8u2gEwaE8VqPBqyl61W6ghIOSPm6Ds6LVjIEaerX6ebiQZoJ6GPML3s81RiKRllqSh4S/7aTK8UTEi8OAcM= Received: by 10.78.21.7 with SMTP id 7mr17912260huu.5.1202313080729; Wed, 06 Feb 2008 07:51:20 -0800 (PST) Received: by 10.78.130.5 with HTTP; Wed, 6 Feb 2008 07:51:20 -0800 (PST) Message-ID: <94136a2c0802060751o7952c2f8w639139271c946e98@mail.gmail.com> Date: Wed, 6 Feb 2008 16:51:20 +0100 From: "Zbigniew Szalbot" To: freebsd-questions MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: /usr/local/etc/rc.d/ scripts and 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: Wed, 06 Feb 2008 15:51:24 -0000 Hello, I have looked at my /usr/local/etc/rc.d/ and realized that the symlink I put there has the root as owner. It all works but I would rather use a non-root user for to run that script. $ ls -l /usr/local/etc/rc.d/ lrwxr-xr-x 1 root wheel 40 May 9 2007 sender.sh -> /usr/home/api/sender/start.sh So I tried: $ sudo chown api /usr/local/etc/rc.d/sender.sh No error but no change either. The original start.sh file has user api but the symlink is owned by root. How can I make sure that the file is indeed run as user api? Thanks! Zbigniew Szalbot