Je suis un guide d'installation de tomcat sur Ubuntu et je suis bloqué sur une étape qui consiste à exécuter la commande suivante:
sudo chmod g+r conf/*
Qu'est-ce que cela /*signifie? Est-ce que cela signifie faire la modification pour tous les fichiers du /confdossier? Lorsque j'exécute la commande, l'erreur suivante apparaît:
chmod: cannot access 'conf/*': No such file or directory
Voici à quoi ressemble le dossier:
bin conf lib LICENSE logs ...
Donc le /confdossier est dedans - les autres commandes que je lance sur le dossier fonctionnent bien:
sudo chgrp -R tomcat conf
sudo chmod g+rwx conf
Le guide est ici .
J'en suis à "Étape 4: Mettre à jour les autorisations".
Voici un ls -ladu /opt/tomcatdossier:
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
et ce sont les fichiers qui se trouvent dans le dossier / conf:
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
sudo chmod g+r ./conf/* ou sudo chmod -R g+r ./conf? si ceux-ci ne fonctionnent pas, confirmez votre pwd.
ls -lasur le répertoire plutôt que juste unls