From owner-freebsd-questions@freebsd.org Wed Apr 6 13:59:26 2016 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 1D57FB056A4 for ; Wed, 6 Apr 2016 13:59:26 +0000 (UTC) (envelope-from Albert.Shih@obspm.fr) Received: from mx-p1.obspm.fr (mx-p1.obspm.fr [145.238.193.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "*.obspm.fr", Issuer "TERENA SSL CA 3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B97211074 for ; Wed, 6 Apr 2016 13:59:25 +0000 (UTC) (envelope-from Albert.Shih@obspm.fr) Received: from pcjas.obspm.fr (pcjas.obspm.fr [145.238.184.233]) (authenticated bits=0) by mx-p1.obspm.fr (8.14.4/8.14.4/DIO Observatoire de Paris - 15/04/10) with ESMTP id u36DwfGk026942 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 6 Apr 2016 15:58:42 +0200 Date: Wed, 6 Apr 2016 15:58:41 +0200 From: Albert Shih To: FreeBSD-questions@freebsd.org Subject: chmod /var/run safe ? Message-ID: <20160406135841.GJ86675@pcjas.obspm.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.24 (2015-08-30) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.3.9 (mx-p1.obspm.fr [145.238.193.20]); Wed, 06 Apr 2016 15:58:42 +0200 (CEST) X-Virus-Scanned: clamav-milter 0.99 at mx-p1.obspm.fr X-Virus-Status: Clean X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Apr 2016 13:59:26 -0000 Hi, I've some issue to allow some of my user to restart tomcat7. All tomcat7 file owned by let's say tomcat:tomcat, the user can do a sudo tomcat. But he cannot restart tomcat7 because /var/run are owned by root and the right are 755 so tomcat cannot put the /var/run/tomcat7.pid Of course I can change the location of this file but for that I need to patch /usr/local/etc/rc.d/tomcat7 and that's mean each time this script are update, I need to refix it. So is it safe to do chmod 1777 /var/run or they are other solution ? regards -- Albert SHIH DIO bâtiment 15 Observatoire de Paris 5 Place Jules Janssen 92195 Meudon Cedex France Téléphone : +33 1 45 07 76 26/+33 6 86 69 95 71 xmpp: jas@obspm.fr Heure local/Local time: mer 6 avr 2016 15:55:45 CEST