semanage not changing file contextSelinux: Managing ports; Semanage command not foundLinux - CentOS6 - semanage - command not foundCan't make SELinux context types permanent with semanageRHEL SELinux context differs between matchpathcon and restoreconConfiguration for Ubuntu SELinux with sshdSelinux “Add context Rule to Semanage”Trouble automounting NFS share on Centos 7Change selinux context for TLS cacert.pemCentOS 7 custom service failure (Interactive authentication required)Getting compiled Python mod_wsgi module working on Apache server with SElinux enforcing mode

Count all vowels in string

Why does the hash of infinity have the digits of π?

Find this cartoon

Is there a context where the expression `a.b::c` makes sense?

Python program to take in two strings and print the larger string

Job Market: should one hide their (young) age?

What does kpsewhich stand for?

Time complexity of an algorithm: Is it important to state the base of the logarithm?

How to let other coworkers know that I don't share my coworker's political views?

Manager questioning my time estimates for a project

Is superuser the same as root?

Of strange atmospheres - the survivable but unbreathable

Shorten or merge multiple lines of `&> /dev/null &`

Why did it take so long for Germany to allow electric scooters / e-rollers on the roads?

What is the use case for non-breathable waterproof pants?

WAS IT A CAT I SAW? Do Some Detective Work & Catch The Imposters

Can my floppy disk still work without a shutter spring?

Why would a rational buyer offer to buy with no conditions precedent?

WordPress 5.2.1 deactivated my jQuery

My players want to grind XP but we're using landmark advancement

Writing style before Elements of Style

Do photons bend spacetime or not?

Beginner looking to learn/master musical theory and instrumental ability. Where should I begin?

What is the meaning of "<&3" and "done < file11 3< file22"



semanage not changing file context


Selinux: Managing ports; Semanage command not foundLinux - CentOS6 - semanage - command not foundCan't make SELinux context types permanent with semanageRHEL SELinux context differs between matchpathcon and restoreconConfiguration for Ubuntu SELinux with sshdSelinux “Add context Rule to Semanage”Trouble automounting NFS share on Centos 7Change selinux context for TLS cacert.pemCentOS 7 custom service failure (Interactive authentication required)Getting compiled Python mod_wsgi module working on Apache server with SElinux enforcing mode






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








4















On my centos 7 machine, I have the following information:



[wmsodbc]> pwd
/WMSData1/tomcat/latest
[wmsodbc]> ls -lrt /WMSData1/tomcat/latest
lrwxrwxrwx. 1 tomcat tomcat 37 May 2 19:26 /WMSData1/tomcat/latest -> /WMSData1/tomcat/apache-tomcat-8.5.37
[wmsodbc]> ls -ltd logs
drwxr-xr-x. 2 tomcat tomcat 4096 May 10 13:05 logs
[wmsodbc]> ls -lZd logs
drwxr-xr-x. tomcat tomcat system_u:object_r:default_t:s0 logs
[wmsodbc]>


I have tried many times to set the file context to var_log_t, but it does not take. See attempts below. All steps taken from various websites online. First of all, attempt 1:



[wmsodbc]> ls -lZd logs
drwxr-xr-x. tomcat tomcat system_u:object_r:default_t:s0 logs
[wmsodbc]> more /etc/selinux/targeted/contexts/files/file_contexts.local
# This file is auto-generated by libsemanage
# Do not edit directly.

/WMSData1/tomcat/latest/logs(/.*)? system_u:object_r:var_log_t:s0
[wmsodbc]> sudo restorecon -vR logs/
[wmsodbc]> ls -lZd logs
drwxr-xr-x. tomcat tomcat system_u:object_r:default_t:s0 logs
[wmsodbc]>


And attempt 2, using a slightly different method:



[wmsodbc]> more /etc/selinux/targeted/contexts/files/file_contexts.local
# This file is auto-generated by libsemanage
# Do not edit directly.

[wmsodbc]> ls -lZd logs
drwxr-xr-x. tomcat tomcat system_u:object_r:default_t:s0 logs
[wmsodbc]> sudo chcon system_u:object_r:var_log_t:s0 /WMSData1/tomcat/latest/logs/
[wmsodbc]> ls -lZd logs
drwxr-xr-x. tomcat tomcat system_u:object_r:var_log_t:s0 logs
[wmsodbc]> more /etc/selinux/targeted/contexts/files/file_contexts.local
# This file is auto-generated by libsemanage
# Do not edit directly.

[wmsodbc]> sudo semanage fcontext -a -t var_log_t '/WMSData1/tomcat/latest/logs(/.*)?'
[wmsodbc]> ls -lZd logs
drwxr-xr-x. tomcat tomcat system_u:object_r:var_log_t:s0 logs
[wmsodbc]> sudo restorecon -v -R logs/
restorecon reset /WMSData1/tomcat/apache-tomcat-8.5.37/logs context system_u:object_r:var_log_t:s0->system_u:object_r:default_t:s0
[wmsodbc]>


So what am I doing wrong? Obviously, chcon is temporary. But it works, unlike semanage, in changing file context. And then we clearly see restorecon changing it back to "default_t". So a second question would be why is it changing it back to "default_t"?



Could it be the fact that "latest" is a softlink and semanage does not like softlink in the full path? I think I MIGHT have gotten it to work by going directly to directory "latest" points to and using THAT absolute path, but waiting to see if it fixes my issues. If someone could point me to proof that this is the issue, that would be great.










share|improve this question






























    4















    On my centos 7 machine, I have the following information:



    [wmsodbc]> pwd
    /WMSData1/tomcat/latest
    [wmsodbc]> ls -lrt /WMSData1/tomcat/latest
    lrwxrwxrwx. 1 tomcat tomcat 37 May 2 19:26 /WMSData1/tomcat/latest -> /WMSData1/tomcat/apache-tomcat-8.5.37
    [wmsodbc]> ls -ltd logs
    drwxr-xr-x. 2 tomcat tomcat 4096 May 10 13:05 logs
    [wmsodbc]> ls -lZd logs
    drwxr-xr-x. tomcat tomcat system_u:object_r:default_t:s0 logs
    [wmsodbc]>


    I have tried many times to set the file context to var_log_t, but it does not take. See attempts below. All steps taken from various websites online. First of all, attempt 1:



    [wmsodbc]> ls -lZd logs
    drwxr-xr-x. tomcat tomcat system_u:object_r:default_t:s0 logs
    [wmsodbc]> more /etc/selinux/targeted/contexts/files/file_contexts.local
    # This file is auto-generated by libsemanage
    # Do not edit directly.

    /WMSData1/tomcat/latest/logs(/.*)? system_u:object_r:var_log_t:s0
    [wmsodbc]> sudo restorecon -vR logs/
    [wmsodbc]> ls -lZd logs
    drwxr-xr-x. tomcat tomcat system_u:object_r:default_t:s0 logs
    [wmsodbc]>


    And attempt 2, using a slightly different method:



    [wmsodbc]> more /etc/selinux/targeted/contexts/files/file_contexts.local
    # This file is auto-generated by libsemanage
    # Do not edit directly.

    [wmsodbc]> ls -lZd logs
    drwxr-xr-x. tomcat tomcat system_u:object_r:default_t:s0 logs
    [wmsodbc]> sudo chcon system_u:object_r:var_log_t:s0 /WMSData1/tomcat/latest/logs/
    [wmsodbc]> ls -lZd logs
    drwxr-xr-x. tomcat tomcat system_u:object_r:var_log_t:s0 logs
    [wmsodbc]> more /etc/selinux/targeted/contexts/files/file_contexts.local
    # This file is auto-generated by libsemanage
    # Do not edit directly.

    [wmsodbc]> sudo semanage fcontext -a -t var_log_t '/WMSData1/tomcat/latest/logs(/.*)?'
    [wmsodbc]> ls -lZd logs
    drwxr-xr-x. tomcat tomcat system_u:object_r:var_log_t:s0 logs
    [wmsodbc]> sudo restorecon -v -R logs/
    restorecon reset /WMSData1/tomcat/apache-tomcat-8.5.37/logs context system_u:object_r:var_log_t:s0->system_u:object_r:default_t:s0
    [wmsodbc]>


    So what am I doing wrong? Obviously, chcon is temporary. But it works, unlike semanage, in changing file context. And then we clearly see restorecon changing it back to "default_t". So a second question would be why is it changing it back to "default_t"?



    Could it be the fact that "latest" is a softlink and semanage does not like softlink in the full path? I think I MIGHT have gotten it to work by going directly to directory "latest" points to and using THAT absolute path, but waiting to see if it fixes my issues. If someone could point me to proof that this is the issue, that would be great.










    share|improve this question


























      4












      4








      4








      On my centos 7 machine, I have the following information:



      [wmsodbc]> pwd
      /WMSData1/tomcat/latest
      [wmsodbc]> ls -lrt /WMSData1/tomcat/latest
      lrwxrwxrwx. 1 tomcat tomcat 37 May 2 19:26 /WMSData1/tomcat/latest -> /WMSData1/tomcat/apache-tomcat-8.5.37
      [wmsodbc]> ls -ltd logs
      drwxr-xr-x. 2 tomcat tomcat 4096 May 10 13:05 logs
      [wmsodbc]> ls -lZd logs
      drwxr-xr-x. tomcat tomcat system_u:object_r:default_t:s0 logs
      [wmsodbc]>


      I have tried many times to set the file context to var_log_t, but it does not take. See attempts below. All steps taken from various websites online. First of all, attempt 1:



      [wmsodbc]> ls -lZd logs
      drwxr-xr-x. tomcat tomcat system_u:object_r:default_t:s0 logs
      [wmsodbc]> more /etc/selinux/targeted/contexts/files/file_contexts.local
      # This file is auto-generated by libsemanage
      # Do not edit directly.

      /WMSData1/tomcat/latest/logs(/.*)? system_u:object_r:var_log_t:s0
      [wmsodbc]> sudo restorecon -vR logs/
      [wmsodbc]> ls -lZd logs
      drwxr-xr-x. tomcat tomcat system_u:object_r:default_t:s0 logs
      [wmsodbc]>


      And attempt 2, using a slightly different method:



      [wmsodbc]> more /etc/selinux/targeted/contexts/files/file_contexts.local
      # This file is auto-generated by libsemanage
      # Do not edit directly.

      [wmsodbc]> ls -lZd logs
      drwxr-xr-x. tomcat tomcat system_u:object_r:default_t:s0 logs
      [wmsodbc]> sudo chcon system_u:object_r:var_log_t:s0 /WMSData1/tomcat/latest/logs/
      [wmsodbc]> ls -lZd logs
      drwxr-xr-x. tomcat tomcat system_u:object_r:var_log_t:s0 logs
      [wmsodbc]> more /etc/selinux/targeted/contexts/files/file_contexts.local
      # This file is auto-generated by libsemanage
      # Do not edit directly.

      [wmsodbc]> sudo semanage fcontext -a -t var_log_t '/WMSData1/tomcat/latest/logs(/.*)?'
      [wmsodbc]> ls -lZd logs
      drwxr-xr-x. tomcat tomcat system_u:object_r:var_log_t:s0 logs
      [wmsodbc]> sudo restorecon -v -R logs/
      restorecon reset /WMSData1/tomcat/apache-tomcat-8.5.37/logs context system_u:object_r:var_log_t:s0->system_u:object_r:default_t:s0
      [wmsodbc]>


      So what am I doing wrong? Obviously, chcon is temporary. But it works, unlike semanage, in changing file context. And then we clearly see restorecon changing it back to "default_t". So a second question would be why is it changing it back to "default_t"?



      Could it be the fact that "latest" is a softlink and semanage does not like softlink in the full path? I think I MIGHT have gotten it to work by going directly to directory "latest" points to and using THAT absolute path, but waiting to see if it fixes my issues. If someone could point me to proof that this is the issue, that would be great.










      share|improve this question
















      On my centos 7 machine, I have the following information:



      [wmsodbc]> pwd
      /WMSData1/tomcat/latest
      [wmsodbc]> ls -lrt /WMSData1/tomcat/latest
      lrwxrwxrwx. 1 tomcat tomcat 37 May 2 19:26 /WMSData1/tomcat/latest -> /WMSData1/tomcat/apache-tomcat-8.5.37
      [wmsodbc]> ls -ltd logs
      drwxr-xr-x. 2 tomcat tomcat 4096 May 10 13:05 logs
      [wmsodbc]> ls -lZd logs
      drwxr-xr-x. tomcat tomcat system_u:object_r:default_t:s0 logs
      [wmsodbc]>


      I have tried many times to set the file context to var_log_t, but it does not take. See attempts below. All steps taken from various websites online. First of all, attempt 1:



      [wmsodbc]> ls -lZd logs
      drwxr-xr-x. tomcat tomcat system_u:object_r:default_t:s0 logs
      [wmsodbc]> more /etc/selinux/targeted/contexts/files/file_contexts.local
      # This file is auto-generated by libsemanage
      # Do not edit directly.

      /WMSData1/tomcat/latest/logs(/.*)? system_u:object_r:var_log_t:s0
      [wmsodbc]> sudo restorecon -vR logs/
      [wmsodbc]> ls -lZd logs
      drwxr-xr-x. tomcat tomcat system_u:object_r:default_t:s0 logs
      [wmsodbc]>


      And attempt 2, using a slightly different method:



      [wmsodbc]> more /etc/selinux/targeted/contexts/files/file_contexts.local
      # This file is auto-generated by libsemanage
      # Do not edit directly.

      [wmsodbc]> ls -lZd logs
      drwxr-xr-x. tomcat tomcat system_u:object_r:default_t:s0 logs
      [wmsodbc]> sudo chcon system_u:object_r:var_log_t:s0 /WMSData1/tomcat/latest/logs/
      [wmsodbc]> ls -lZd logs
      drwxr-xr-x. tomcat tomcat system_u:object_r:var_log_t:s0 logs
      [wmsodbc]> more /etc/selinux/targeted/contexts/files/file_contexts.local
      # This file is auto-generated by libsemanage
      # Do not edit directly.

      [wmsodbc]> sudo semanage fcontext -a -t var_log_t '/WMSData1/tomcat/latest/logs(/.*)?'
      [wmsodbc]> ls -lZd logs
      drwxr-xr-x. tomcat tomcat system_u:object_r:var_log_t:s0 logs
      [wmsodbc]> sudo restorecon -v -R logs/
      restorecon reset /WMSData1/tomcat/apache-tomcat-8.5.37/logs context system_u:object_r:var_log_t:s0->system_u:object_r:default_t:s0
      [wmsodbc]>


      So what am I doing wrong? Obviously, chcon is temporary. But it works, unlike semanage, in changing file context. And then we clearly see restorecon changing it back to "default_t". So a second question would be why is it changing it back to "default_t"?



      Could it be the fact that "latest" is a softlink and semanage does not like softlink in the full path? I think I MIGHT have gotten it to work by going directly to directory "latest" points to and using THAT absolute path, but waiting to see if it fixes my issues. If someone could point me to proof that this is the issue, that would be great.







      centos7 selinux






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 10 at 18:04







      user3329922

















      asked May 10 at 17:49









      user3329922user3329922

      1678




      1678




















          2 Answers
          2






          active

          oldest

          votes


















          5















          Could it be the fact that "latest" is a softlink and semanage does not like softlink in the full path?




          Yes, thats exactly why.



          From man 3 matchpathcon



          NAME
          matchpathcon, matchpathcon_index - get the default SELinux security context for the specified path from the file contexts configuration
          ...
          DESCRIPTION
          ...
          matchpathcon() matches the specified pathname, after transformation via realpath(3)...


          Just to clarify, realpath(3) expands all symbolic links in the path to attempt to define the absolute canonical path to the file.



          You could probably specify the PCRE as /WMSData1/tomcat/[^/]+/logs(/.*)? instead to avoid the problem in a manner that means you dont have to continually add new file contexts.






          share|improve this answer























          • Ok, that worked great: Ran sudo semanage fcontext -a -t var_log_t '/WMSData1/tomcat/[^/]+/logs(/.*)?', then sudo restorecon -R -vv */logs/

            – user3329922
            May 10 at 19:35











          • Detailed high quality answer, thank you. (Especially for the details in man 3 matchpathcon, didn't see that before.)

            – hargut
            May 10 at 20:24



















          2














          Path mismatch? Symlink?



          /WMSData1/tomcat/latest/logs



          vs.



          /WMSData1/tomcat/apache-tomcat-8.5.37/logs



          This:



          /WMSData1/tomcat/latest/logs(/.*)?



          is a regular expression, that does not match the apache-tomcat-8.5.37 path.



          For more details on regex see: https://regex101.com/






          share|improve this answer























          • Yep, and as per @Mathew lfe, because the lower level stuff dereferences link before doing it, it cannot find a match to apache path. Thanks.

            – user3329922
            May 10 at 19:36











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "2"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f966759%2fsemanage-not-changing-file-context%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          5















          Could it be the fact that "latest" is a softlink and semanage does not like softlink in the full path?




          Yes, thats exactly why.



          From man 3 matchpathcon



          NAME
          matchpathcon, matchpathcon_index - get the default SELinux security context for the specified path from the file contexts configuration
          ...
          DESCRIPTION
          ...
          matchpathcon() matches the specified pathname, after transformation via realpath(3)...


          Just to clarify, realpath(3) expands all symbolic links in the path to attempt to define the absolute canonical path to the file.



          You could probably specify the PCRE as /WMSData1/tomcat/[^/]+/logs(/.*)? instead to avoid the problem in a manner that means you dont have to continually add new file contexts.






          share|improve this answer























          • Ok, that worked great: Ran sudo semanage fcontext -a -t var_log_t '/WMSData1/tomcat/[^/]+/logs(/.*)?', then sudo restorecon -R -vv */logs/

            – user3329922
            May 10 at 19:35











          • Detailed high quality answer, thank you. (Especially for the details in man 3 matchpathcon, didn't see that before.)

            – hargut
            May 10 at 20:24
















          5















          Could it be the fact that "latest" is a softlink and semanage does not like softlink in the full path?




          Yes, thats exactly why.



          From man 3 matchpathcon



          NAME
          matchpathcon, matchpathcon_index - get the default SELinux security context for the specified path from the file contexts configuration
          ...
          DESCRIPTION
          ...
          matchpathcon() matches the specified pathname, after transformation via realpath(3)...


          Just to clarify, realpath(3) expands all symbolic links in the path to attempt to define the absolute canonical path to the file.



          You could probably specify the PCRE as /WMSData1/tomcat/[^/]+/logs(/.*)? instead to avoid the problem in a manner that means you dont have to continually add new file contexts.






          share|improve this answer























          • Ok, that worked great: Ran sudo semanage fcontext -a -t var_log_t '/WMSData1/tomcat/[^/]+/logs(/.*)?', then sudo restorecon -R -vv */logs/

            – user3329922
            May 10 at 19:35











          • Detailed high quality answer, thank you. (Especially for the details in man 3 matchpathcon, didn't see that before.)

            – hargut
            May 10 at 20:24














          5












          5








          5








          Could it be the fact that "latest" is a softlink and semanage does not like softlink in the full path?




          Yes, thats exactly why.



          From man 3 matchpathcon



          NAME
          matchpathcon, matchpathcon_index - get the default SELinux security context for the specified path from the file contexts configuration
          ...
          DESCRIPTION
          ...
          matchpathcon() matches the specified pathname, after transformation via realpath(3)...


          Just to clarify, realpath(3) expands all symbolic links in the path to attempt to define the absolute canonical path to the file.



          You could probably specify the PCRE as /WMSData1/tomcat/[^/]+/logs(/.*)? instead to avoid the problem in a manner that means you dont have to continually add new file contexts.






          share|improve this answer














          Could it be the fact that "latest" is a softlink and semanage does not like softlink in the full path?




          Yes, thats exactly why.



          From man 3 matchpathcon



          NAME
          matchpathcon, matchpathcon_index - get the default SELinux security context for the specified path from the file contexts configuration
          ...
          DESCRIPTION
          ...
          matchpathcon() matches the specified pathname, after transformation via realpath(3)...


          Just to clarify, realpath(3) expands all symbolic links in the path to attempt to define the absolute canonical path to the file.



          You could probably specify the PCRE as /WMSData1/tomcat/[^/]+/logs(/.*)? instead to avoid the problem in a manner that means you dont have to continually add new file contexts.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered May 10 at 19:24









          Matthew IfeMatthew Ife

          20.7k24663




          20.7k24663












          • Ok, that worked great: Ran sudo semanage fcontext -a -t var_log_t '/WMSData1/tomcat/[^/]+/logs(/.*)?', then sudo restorecon -R -vv */logs/

            – user3329922
            May 10 at 19:35











          • Detailed high quality answer, thank you. (Especially for the details in man 3 matchpathcon, didn't see that before.)

            – hargut
            May 10 at 20:24


















          • Ok, that worked great: Ran sudo semanage fcontext -a -t var_log_t '/WMSData1/tomcat/[^/]+/logs(/.*)?', then sudo restorecon -R -vv */logs/

            – user3329922
            May 10 at 19:35











          • Detailed high quality answer, thank you. (Especially for the details in man 3 matchpathcon, didn't see that before.)

            – hargut
            May 10 at 20:24

















          Ok, that worked great: Ran sudo semanage fcontext -a -t var_log_t '/WMSData1/tomcat/[^/]+/logs(/.*)?', then sudo restorecon -R -vv */logs/

          – user3329922
          May 10 at 19:35





          Ok, that worked great: Ran sudo semanage fcontext -a -t var_log_t '/WMSData1/tomcat/[^/]+/logs(/.*)?', then sudo restorecon -R -vv */logs/

          – user3329922
          May 10 at 19:35













          Detailed high quality answer, thank you. (Especially for the details in man 3 matchpathcon, didn't see that before.)

          – hargut
          May 10 at 20:24






          Detailed high quality answer, thank you. (Especially for the details in man 3 matchpathcon, didn't see that before.)

          – hargut
          May 10 at 20:24














          2














          Path mismatch? Symlink?



          /WMSData1/tomcat/latest/logs



          vs.



          /WMSData1/tomcat/apache-tomcat-8.5.37/logs



          This:



          /WMSData1/tomcat/latest/logs(/.*)?



          is a regular expression, that does not match the apache-tomcat-8.5.37 path.



          For more details on regex see: https://regex101.com/






          share|improve this answer























          • Yep, and as per @Mathew lfe, because the lower level stuff dereferences link before doing it, it cannot find a match to apache path. Thanks.

            – user3329922
            May 10 at 19:36















          2














          Path mismatch? Symlink?



          /WMSData1/tomcat/latest/logs



          vs.



          /WMSData1/tomcat/apache-tomcat-8.5.37/logs



          This:



          /WMSData1/tomcat/latest/logs(/.*)?



          is a regular expression, that does not match the apache-tomcat-8.5.37 path.



          For more details on regex see: https://regex101.com/






          share|improve this answer























          • Yep, and as per @Mathew lfe, because the lower level stuff dereferences link before doing it, it cannot find a match to apache path. Thanks.

            – user3329922
            May 10 at 19:36













          2












          2








          2







          Path mismatch? Symlink?



          /WMSData1/tomcat/latest/logs



          vs.



          /WMSData1/tomcat/apache-tomcat-8.5.37/logs



          This:



          /WMSData1/tomcat/latest/logs(/.*)?



          is a regular expression, that does not match the apache-tomcat-8.5.37 path.



          For more details on regex see: https://regex101.com/






          share|improve this answer













          Path mismatch? Symlink?



          /WMSData1/tomcat/latest/logs



          vs.



          /WMSData1/tomcat/apache-tomcat-8.5.37/logs



          This:



          /WMSData1/tomcat/latest/logs(/.*)?



          is a regular expression, that does not match the apache-tomcat-8.5.37 path.



          For more details on regex see: https://regex101.com/







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered May 10 at 19:10









          harguthargut

          1,78717




          1,78717












          • Yep, and as per @Mathew lfe, because the lower level stuff dereferences link before doing it, it cannot find a match to apache path. Thanks.

            – user3329922
            May 10 at 19:36

















          • Yep, and as per @Mathew lfe, because the lower level stuff dereferences link before doing it, it cannot find a match to apache path. Thanks.

            – user3329922
            May 10 at 19:36
















          Yep, and as per @Mathew lfe, because the lower level stuff dereferences link before doing it, it cannot find a match to apache path. Thanks.

          – user3329922
          May 10 at 19:36





          Yep, and as per @Mathew lfe, because the lower level stuff dereferences link before doing it, it cannot find a match to apache path. Thanks.

          – user3329922
          May 10 at 19:36

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Server Fault!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f966759%2fsemanage-not-changing-file-context%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

          What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

          Esgonzo ibérico Índice Descrición Distribución Hábitat Ameazas Notas Véxase tamén "Acerca dos nomes dos anfibios e réptiles galegos""Chalcides bedriagai"Chalcides bedriagai en Carrascal, L. M. Salvador, A. (Eds). Enciclopedia virtual de los vertebrados españoles. Museo Nacional de Ciencias Naturales, Madrid. España.Fotos