Uploaded image for project: 'JBoss Enterprise Web Server'
  1. JBoss Enterprise Web Server
  2. JBEWS-364

EWS on Windows: Post-install script should check for Admin privileges

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: EWS 1.0.1
    • Fix Version/s: EWS 1.0.1
    • Labels:
      None

      Description

      postinstall.bat tries to create NTFS soft-links using the bundled bin/mkslink. exe .
      However, this needs the Administrator account, or at least SeCreateSymbolicLinkPrivilege.
      When this privilege is not satisfied, it fails silently, the link is not created, and EWS does not work - e.g.

      c:\Program Files\Red Hat\Enterprise Web Server\bin>httpd
      httpd: Syntax error on line 124 of C:/Program Files/Red Hat/Enterprise Web Server/etc/httpd/conf/httpd.conf: Cannot load c:/Program Files/Red Hat/Enterprise Web
      Server/etc/httpd/modules/mod_auth_basic.so into server: The specified module could not be found.

      So I think that the post-install script should check for admin privileges, to prevent such problems.
      Stating the Admin rights requirement in the readme is imho insufficient.
      Or at least, either mkslink.exe should fail, or the script should check whether the links were really created.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                permaine Permaine Cheung
                Reporter:
                ozizka Ondrej Zizka
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: