<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">The id seems recoverable from the
      w2web.users file.  However, the password seems not easily
      recoverable (as it should be!) as the perl documentation says
      "There is no decrypt function" [1].  Therefore, deleting
      w2web.users [2] (or .w2web) is the way to do it.<br>
      <br>
      First, you might want to backup the .w2web folder.  For example:<br>
      <br>
      username@computername:~/Desktop$ cp -r ~/.w2web ~/.w2web_old<br>
      <br>
      Or at least, you will probably want to get and write down what the
      port and host that are in the w2web.conf file before removing the
      .w2web folder:<br>
      <br>
      username@computername:~/Desktop$ cat
      ~/.w2web/computername/conf/w2web.conf | grep -E 'port|host'<br>
      port=7890<br>
      host=localhost<br>
      <br>
      Next, remember to kill all currently running versions of w2web.
      For example:<br>
      <br>
      username@computername:~/Desktop$ ps -e | grep w2web<br>
       4089 ?        00:00:00 w2web<br>
      username@computername:~/Desktop$ kill 4089<br>
      <br>
      For example, my username is user1 and password is 1234.  The
      username is clearly seen in w2web.users and 9XDKy48uHtMo6 is the
      hash for my 1234 password:<br>
      <br>
      username@computername:~/Desktop$ cat
      ~/.w2web/computername/conf/w2web.users <br>
      user1:9XDKy48uHtMo6<br>
      <br>
      Just the w2web.users file was removed. For example with:<br>
      <br>
      username@computername:~/Desktop$ rm
      ~/.w2web/computername/conf/w2web.users <br>
      <br>
      Next, I was able set a new id and password, but I used the same
      ones again.  I also used the port and host that I had before in
      the w2web.conf file:<br>
      <br>
      username@computername:~/Desktop$ w2web<br>
#######################################################################<br>
      # w2web
      starter                                                       #<br>
      # Copyright (C) 2001
      luitz.at                                         #<br>
#######################################################################<br>
      w2web installer on host computername<br>
      <br>
#######################################################################<br>
      # w2web
      installer                                                     #<br>
      # Copyright (C) 2001
      luitz.at                                         #<br>
#######################################################################<br>
      <br>
      Checking for Installation in /home/username/.w2web/computername<br>
      <br>
      <br>
      Installing w2web files ... <br>
      Please answer these questions for proper installaltion. <br>
      Just press enter for the default value of (in brackets).<br>
      <br>
      Please enter the username: [admin] user1<br>
      Please enter the password: [password] 1234<br>
      user1:1234<br>
      Remember these. You will need them when you log in.<br>
      <br>
      Select the port to run on: [7890] <br>
      Running on port 7890<br>
      <br>
      Please enter this system's hostname: [computername] localhost<br>
      Using localhost<br>
      <br>
      Is this your master node?: [y] y<br>
      Installing... Attempting to start now...<br>
      <br>
      Trying to start /home/username/WIEN2k/SRC_w2web/bin/w2web<br>
      w2web server started, now point your web browser to<br>
      <a class="moz-txt-link-freetext" href="http://localhost:7890">http://localhost:7890</a><br>
      <br>
      done.<br>
      username@computername:~/Desktop$ cat
      ~/.w2web/computername/conf/w2web.users <br>
      user1:ttja7f2i1Z72.<br>
      <br>
      The ttja7f2i1Z72 is the hash for my 1234 password.  The password
      hash is randomly generate each time, which is why it is different.<br>
      <br>
      [1] <a class="moz-txt-link-freetext" href="http://perldoc.perl.org/functions/crypt.html">http://perldoc.perl.org/functions/crypt.html</a><br>
      [2]
      <a class="moz-txt-link-freetext" href="http://susi.theochem.tuwien.ac.at/reg_user/textbooks/usersguide.pdf">http://susi.theochem.tuwien.ac.at/reg_user/textbooks/usersguide.pdf</a>
      (section "11.3.5 The password file conf/w2web.users" on page 224
      of the WIEN2k 16.1 usersguide)<br>
      <br>
      On 4/1/2017 1:09 AM, shamik chakrabarti wrote:<br>
    </div>
    <blockquote
cite="mid:CAMqRRNbEPQ7+p5jt31zxG-xWYNMWzMiuHRJihZXZva771VCRLA@mail.gmail.com"
      type="cite">
      <div dir="ltr">Dear Xavier,
        <div><br>
        </div>
        <div>               if without deleting the .w2web file, if I
          run ./userconfig_lapw, whether that will give me new id &
          password for graphical interface?...As the installation of
          wien2k itself is a tough job, I do not want to take risk of
          deleting any files, as long as we have other ways to do it.</div>
        <div><br>
        </div>
        <div>with regards,  </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Sat, Apr 1, 2017 at 12:11 AM, Xavier
          Rocquefelte <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:xavier.rocquefelte@univ-rennes1.fr"
              target="_blank">xavier.rocquefelte@univ-rennes1.fr</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF">
              <p>Dear Shamik</p>
              <p>The userid and password are generated when you start
                for the first time the w2web interface by typing in the
                unix terminal: <br>
              </p>
              <p>w2web</p>
              <p>If it has been already generated, you have then created
                a directory named .w2web which contains configuration
                files. <br>
              </p>
              <p>One easy solution is to remove this directory: rm -f
                .w2web</p>
              <p>Then type: w2web and answer the questions which will
                lead to recreate the directory with the userid and
                password you will choose. <br>
              </p>
              <p>Best Regards</p>
              <p>Xavier<br>
              </p>
              <div>
                <div class="h5"> <br>
                  <div class="m_-5442830660916242249moz-cite-prefix">Le
                    31/03/2017 à 18:29, shamik chakrabarti a écrit :<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <div dir="ltr">Dear Wien2k users,
                      <div><br>
                      </div>
                      <div>                          I am now try to
                        work in a system, in which while giving the port
                        number to the address bar of a browser & it
                        is then asking for user id & password to
                        open graphical interface of wien2k.
                        Unfortunately I do not know the id & the
                        password for the interface to open. Is there any
                        file or directory in which I can get the log in
                        information for graphical interface.</div>
                      <div><br>
                      </div>
                      <div>Looking forward to your response in this
                        regard.</div>
                      <div><br>
                      </div>
                      <div>with regards, <br clear="all">
                        <div><br>
                        </div>
                        -- <br>
                        <div
                          class="m_-5442830660916242249gmail_signature"
                          data-smartmail="gmail_signature">
                          <div dir="ltr">
                            <div>
                              <div dir="ltr">
                                <div>Dr. Shamik Chakrabarti<br>
                                  Research Associate</div>
                                <div><span style="font-size:12.8px">Electroceramics
                                    Lab</span><br>
                                  Dept. of Metallurgical & Materials
                                  Engineering<br>
                                  IIT Kharagpur<br>
                                  Kharagpur 721302<br>
                                  INDIA</div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </blockquote>
        </div>
      </div>
    </blockquote>
  </body>
</html>