I have a process that runs under a nologin user (in this case Tomcat server).I would like to execute some shell commands from that process but most of them are not available apart from standard utilities like ls, date etc...In my particular case I want to use some scripts that are available in /usr/local and for normal login users it's enough to just source an init script in .bashrcsource for nologin users doesn't seem to be working as well as the . operator. I've tried adding the necessary lines to /etc/profile or /etc/bash.bashrc but that also doesn't work. Is there any other way than just copying the binaries into /bin ? I'm using Ubuntu 14.04 right now.
Executing commands from a process running under a nologin user
bash;nologin