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.
First, you might want to backup the .w2web folder. For example:
username@computername:~/Desktop$ cp -r ~/.w2web ~/.w2web_old
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:
username@computername:~/Desktop$ cat
~/.w2web/computername/conf/w2web.conf | grep -E 'port|host'
port=7890
host=localhost
Next, remember to kill all currently running versions of w2web. For example:
username@computername:~/Desktop$ ps -e | grep w2web
4089 ? 00:00:00 w2web
username@computername:~/Desktop$ kill 4089
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:
username@computername:~/Desktop$ cat ~/.w2web/computername/conf/w2web.users
user1:9XDKy48uHtMo6
Just the w2web.users file was removed. For example with:
username@computername:~/Desktop$ rm ~/.w2web/computername/conf/w2web.users
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:
username@computername:~/Desktop$ w2web
#######################################################################
# w2web starter #
# Copyright (C) 2001 luitz.at #
#######################################################################
w2web installer on host computername
#######################################################################
# w2web installer #
# Copyright (C) 2001 luitz.at #
#######################################################################
Checking for Installation in /home/username/.w2web/computername
Installing w2web files ...
Please answer these questions for proper installaltion.
Just press enter for the default value of (in brackets).
Please enter the username: [admin] user1
Please enter the password: [password] 1234
user1:1234
Remember these. You will need them when you log in.
Select the port to run on: [7890]
Running on port 7890
Please enter this system's hostname: [computername] localhost
Using localhost
Is this your master node?: [y] y
Installing... Attempting to start now...
Trying to start /home/username/WIEN2k/SRC_w2web/bin/w2web
w2web server started, now point your web browser to
http://localhost:7890
done.
username@computername:~/Desktop$ cat ~/.w2web/computername/conf/w2web.users
user1:ttja7f2i1Z72.
The ttja7f2i1Z72 is the hash for my 1234 password. The password hash is
randomly generate each time, which is why it is different.
[1] http://perldoc.perl.org/functions/crypt.html
[2] http://susi.theochem.tuwien.ac.at/reg_user/textbooks/usersguide.pdf
(section "11.3.5 The password file conf/w2web.users" on page 224 of the
WIEN2k 16.1 usersguide)
On 4/1/2017 1:09 AM, shamik chakrabarti wrote:
Dear Xavier,
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.
with regards,
On Sat, Apr 1, 2017 at 12:11 AM, Xavier Rocquefelte
<xavier.rocquefe...@univ-rennes1.fr
<mailto:xavier.rocquefe...@univ-rennes1.fr>> wrote:
Dear Shamik
The userid and password are generated when you start for the first
time the w2web interface by typing in the unix terminal:
w2web
If it has been already generated, you have then created a
directory named .w2web which contains configuration files.
One easy solution is to remove this directory: rm -f .w2web
Then type: w2web and answer the questions which will lead to
recreate the directory with the userid and password you will choose.
Best Regards
Xavier
Le 31/03/2017 à 18:29, shamik chakrabarti a écrit :
Dear Wien2k users,
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.
Looking forward to your response in this regard.
with regards,
--
Dr. Shamik Chakrabarti
Research Associate
Electroceramics Lab
Dept. of Metallurgical & Materials Engineering
IIT Kharagpur
Kharagpur 721302
INDIA
_______________________________________________
Wien mailing list
Wien@zeus.theochem.tuwien.ac.at
http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien
SEARCH the MAILING-LIST at:
http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html