Score:0

LVM encryption - start background processes

es flag

I used LVM encryption during Ubuntu installation in order to protect my files. I am running on this machine mainly apache tomcat but the process doesn't start only after I enter passphrase. The process is started after I enter the correct passphrase but even before login, so my apache tomcat is accessible before login, and I want it to be available before passphrase is entered, so this machine gives "apache tomcat" service, but is protected and only exposes what the apache tomcat process exposes. Is this even possible ? My goal is to have a local server running tomcat application, which even physical access to the device, which usually allows resetting the root user password under "recovery mode", will not allow accessing and reading the java code files and data files. So as soon as the machine is powered up, it will provide apache tomcat service over LAN, but no further action will be required other then power up.

Thanks a lot.

ChanganAuto avatar
us flag
*I want it to be available before passphrase is entered* is absolutely NOT possible.
es flag
Thanks. I was afraid this is the case. Probably it's because ubuntu can't read its own files without the passphrase so it can't execute the background processes.
ChanganAuto avatar
us flag
No OS can. If you think otherwise you have a fundamental misunderstanding about what encryption is and what it does.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.