From owner-freebsd-questions@FreeBSD.ORG Tue Dec 23 23:24:27 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9A79DB0D for ; Tue, 23 Dec 2014 23:24:27 +0000 (UTC) Received: from mail-qg0-f41.google.com (mail-qg0-f41.google.com [209.85.192.41]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5F3B664D09 for ; Tue, 23 Dec 2014 23:24:27 +0000 (UTC) Received: by mail-qg0-f41.google.com with SMTP id e89so3397680qgf.0 for ; Tue, 23 Dec 2014 15:24:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=oDj8ANHAWSC7JpAf+eUhovOKzkuDpmYalDIAA39xmMU=; b=MzeXHjjrGpuM4tyaWTKx3eRml09OZHFM/FsraXDOdk+TZStzyJH/OA/cC8x6+PyS84 bypSwY541pQV0byZ/lJnMsliHI9baVpdl3kD0ethXf108Y2OjkHyxUSMGjcI/0eIhzTJ 63cPEBk43eJ3G6uz21EI11FcfuHPGP5aMqp+TfEycgSqZlpmk8oQxiuU1uDJOWcrYgzo 6/8Lz2KcBW2dYvIvyNqMC9kqMOoOFvc33WZTJ/ZXPSMcPas8THP/Vtzx9EFpCBlM0dv7 zXviQM9TgU7pbLOi7/S7HPzJ/SQJl95mB9iHhijcN0HoocHuHYDPkUzmXtVT/Ql8qF9I wW/g== X-Gm-Message-State: ALoCoQkBlMW6lVvCyomu+lkC+HolM2w2ZJIHFAF3HhBwue+nf5uKpyaNgyzkSR9UE4tU7vp/YiKK MIME-Version: 1.0 X-Received: by 10.224.96.129 with SMTP id h1mr49900149qan.46.1419377066037; Tue, 23 Dec 2014 15:24:26 -0800 (PST) Received: by 10.229.48.202 with HTTP; Tue, 23 Dec 2014 15:24:25 -0800 (PST) Date: Tue, 23 Dec 2014 15:24:25 -0800 Message-ID: Subject: Starting Tomcat with Security Manager From: Tim Gustafson To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Dec 2014 23:24:27 -0000 Hi, I was reading on the Tomcat web site that in order to start Tomcat with a security manager active, you have to pass the "-security" flag when starting the server: http://tomcat.apache.org/tomcat-8.0-doc/security-manager-howto.html I tried adding that to my rc.conf like this: tomcat8_java_opts="-security" But that throws the following error on re-start: Starting tomcat8. Invalid option -security Cannot parse command line arguments /usr/local/etc/rc.d/tomcat8: WARNING: failed to start tomcat8 Googling for "freebsd tomcat security manager" found nothing. Where is the proper place in FreeBSD to indicate to Tomcat that I want it to run with the security manager enabled? -- Tim Gustafson tjg@tgustafson.com