I'm following a guide for installing tomcat on ubuntu, and I'm stuck on a step which is to run the following command:
sudo chmod g+r conf/*
What does the /*
mean? Does it mean make the change for all files in the /conf
folder? When I run the command, I get the following error:
chmod: cannot access 'conf/*': No such file or directory
This is what the folder looks like:
bin conf lib LICENSE logs ...
So the /conf
folder is in there - other commands I run on the folder work ok:
sudo chgrp -R tomcat conf
sudo chmod g+rwx conf
The guide is here.
I'm at "Step 4: Update Permissions".
Here is an ls -la
of the /opt/tomcat
folder:
drwxr-xr-x 9 root root 4096 Aug 15 03:15 .
drwxr-xr-x 3 root root 4096 Aug 15 03:14 ..
drwxr-x--- 2 root root 4096 Aug 15 03:15 bin
drwxrwx--- 2 root tomcat 4096 Jul 6 08:45 conf
drwxr-x--- 2 root root 4096 Aug 15 03:15 lib
-rw-r----- 1 root root 57092 Jul 6 08:45 LICENSE
drwxr-x--- 2 root root 4096 Jul 6 08:43 logs
-rw-r----- 1 root root 1723 Jul 6 08:45 NOTICE
-rw-r----- 1 root root 7063 Jul 6 08:45 RELEASE-NOTES
-rw-r----- 1 root root 15946 Jul 6 08:45 RUNNING.txt
drwxr-x--- 2 root root 4096 Aug 15 03:15 temp
drwxr-x--- 7 root root 4096 Jul 6 08:44 webapps
drwxr-x--- 2 root root 4096 Jul 6 08:43 work
and these are the files that are in the /conf folder:
sudo ls -al conf/
-rw------- 1 root tomcat 12502 Jul 6 08:45 catalina.policy
-rw------- 1 root tomcat 7203 Jul 6 08:45 catalina.properties
-rw------- 1 root tomcat 1338 Jul 6 08:45 context.xml
-rw------- 1 root tomcat 1149 Jul 6 08:45 jaspic-providers.xml
-rw------- 1 root tomcat 2358 Jul 6 08:45 jaspic-providers.xsd
-rw------- 1 root tomcat 3622 Jul 6 08:45 logging.properties
-rw------- 1 root tomcat 7283 Jul 6 08:45 server.xml
-rw------- 1 root tomcat 2164 Jul 6 08:45 tomcat-users.xml
-rw------- 1 root tomcat 2633 Jul 6 08:45 tomcat-users.xsd
-rw------- 1 root tomcat 168577 Jul 6 08:45 web.xml
ls -la
on the directory rather than just anls
– pcnate Aug 15 '16 at 3:31sudo chmod g+r ./conf/*
orsudo chmod -R g+r ./conf
? if those don't work, confirm your pwd. – Frank Thomas Aug 15 '16 at 4:15