tomcat user permissions problem on Linux Ubuntu 22.04
by Spin123 from LinuxQuestions.org on (#6FFN4)
Hi I'm new to working on server. I'm ultimately trying to deploy a WAR file in a Tomcat Server. I'm stuck on tomcat user permissions.
So far I've done this:
sudo groupadd tomcat
sudo useradd -s /bin/false -g tomcat -d /opt/tomcat tomcat
sudo chown -R tomcat: /opt/tomcat
sudo sh -c 'chmod +i /opt/tomcat/bin/* .sh'
This last command is showing. chmod: invalid mode: i+*'
Any help would be much appreciated.
So far I've done this:
sudo groupadd tomcat
sudo useradd -s /bin/false -g tomcat -d /opt/tomcat tomcat
sudo chown -R tomcat: /opt/tomcat
sudo sh -c 'chmod +i /opt/tomcat/bin/* .sh'
This last command is showing. chmod: invalid mode: i+*'
Any help would be much appreciated.