Bear Bibeault wrote:
Oladeji Oluwasayo wrote:Does this kind of thing work as expected?
What happened when you tried it?
And do you even know which user will be chosen?
Ah yes, there lies the rub.
A lot of people run tomcat as a root user (not recommended, for security reasons). And in Linux, the root home directory is /root, which isn't where I'd choose to have Tomcat store my files.
Those of us who are more paranoid run Tomcat under a server account such as "tomcat" or "apache". But these accounts may not have home directories, or their home directories might be read-only, or at a minimum, they may contain stuff that shouldn't be meddled with and/or that will get nuked when the server software is updated. I already made my opinion subtly clear on that issue earlier, as far as updating the webapps themselves goes.
The traditional place in Linux to put working files for an app is under /var/lib/xxxx, where "xxxx" is a directory that you create for the app itself (so xxxx is typically the appname). Other places sometimes used include the /opt/vendorname/xxxx directory or /srv/something-or-other.
In Windows there really aren't any conventions. Well, yes, there's "My Documents", I suppose. More recent versions of Windows have been converging towards a Unix/Linux type of directory structure, however.