Date: Wed, 6 Apr 2016 15:58:41 +0200 From: Albert Shih <Albert.Shih@obspm.fr> To: FreeBSD-questions@freebsd.org Subject: chmod /var/run safe ? Message-ID: <20160406135841.GJ86675@pcjas.obspm.fr>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160406135841.GJ86675>