I tried following this: https://linuxize.com/post/how-to-install-tomcat-9-on-ubuntu-18-04/
in the last part of the heading Step3: Install Tomcat when I run the command:
sudo useradd -r -m -U -d /opt/tomcat -s /bin/false tomcat
I get error:
chmod: cannot access '/opt/tomcat/latest/bin/*.sh': No such file or directory
what should I do? Or is there some simpler page out there? I do want to learn. But it seems lot of sites use "fancy" commands and dont tell what they do. And then when something like this happens, a noob is lost. Im guessing I had to change to "tomcat" user somewhere along the line, but it doesnt say where and how. I found that one can change by using su - tomcat. But following the site... i cant say where the passwd is set if at all. So im in a weird position where I dont even know what passwd tomcat user now has :-/.