On Mon, 20 Jul 2020 at 12:52, Alvaro <[email protected]> wrote: > Thanks Maxim, but i mean for tomcat3 script. > > sudo -u nobody $CATALINA_HOME/bin/startup.sh > > ...this command is for running from terminal, but > for tomcat3 script, how? > > Is it right this?: > > $CATALINA_HOME/bin/startup.sh -u nobody > > If i put the first command i get: > > [root@archi]: /home/guadal># /etc/init.d/tomcat3 start > Using CATALINA_BASE: /opt/open500 > Using CATALINA_HOME: /opt/open500 > Using CATALINA_TMPDIR: /opt/open500/temp > Using JRE_HOME: /usr > Using > CLASSPATH: > /opt/open500/bin/bootstrap.jar:/opt/open500/bin/tomcat-juli.jar > touch: no se puede efectuar `touch' sobre > '/opt/open500/logs/catalina.out': Permiso denegado > /opt/open500/bin/catalina.sh: línea 505: /opt/open500/logs/catalina.out: > Permiso denegado > [root@archi]: /home/guadal># > > `startup.sh` doesn't support `-u` option the only option is to use `sudo -u .....`
your error 'Permiso denegado' is caused by incorrect permissions on folder please do `sudo chown -R nobody:nogroup /opt/open500` then the run should be successful > Thanks > > > ........................................ > > > > El lun, 20-07-2020 a las 12:02 +0700, Maxim Solodovnik escribió: > > Hello Alvaro, > > On Sun, 19 Jul 2020 at 17:00, Alvaro <[email protected]> wrote: > > Hello Maxim, > > Is it right this cpmmand to run OM as nobody user?: > > $CATALINA_HOME/bin/startup.sh -u nobody > > > No this will not work this way > you need to run ir as > `sudo -u nobody $CATALINA_HOME/bin/startup.sh` > > > > Thanks > > > > .................... > > > > -- > Best regards, > Maxim > > -- Best regards, Maxim
