From owner-freebsd-questions@freebsd.org Fri Dec 18 21:29:54 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DB4B8A4C321 for ; Fri, 18 Dec 2015 21:29:54 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [IPv6:2607:f3e0:0:1::12]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "smarthost.sentex.ca", Issuer "smarthost.sentex.ca" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id ABA341A84 for ; Fri, 18 Dec 2015 21:29:54 +0000 (UTC) (envelope-from mike@sentex.net) Received: from [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a] (saphire3.sentex.ca [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a]) by smarthost1.sentex.ca (8.15.2/8.15.2) with ESMTP id tBILTsQw075066 for ; Fri, 18 Dec 2015 16:29:54 -0500 (EST) (envelope-from mike@sentex.net) Subject: Re: sftp, syslog level, chrooted users in a jail To: freebsd-questions References: <5671882E.3040509@sentex.net> From: Mike Tancsa Organization: Sentex Communications Message-ID: <56747ACB.40502@sentex.net> Date: Fri, 18 Dec 2015 16:29:47 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <5671882E.3040509@sentex.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.75 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Dec 2015 21:29:55 -0000 On 12/16/2015 10:50 AM, Mike Tancsa wrote: > > In the dev directory, if I make > # ls -l /home/test1sftp/dev/ > total 2 > drwxrwxr-x 2 root wheel uarch 4 Dec 16 10:37 . > drwxr-xr-x 5 root wheel uarch 5 Dec 16 10:04 .. > srw-rw-rw- 2 root wheel uarch 0 Dec 16 10:05 log > srw------- 2 root wheel uarch 0 Dec 16 10:05 logpriv > > > > ln /var/run/logpriv logpriv > ln /var/run/log log > > I can get it to work. OK, next problem. If syslogd stops and is restarted, the hardlinks to /var/run/log go away. I have to delete the links I created and recreate them. Symlinks dont work. Any other way around this ? ---Mike -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/