# Several passwords issues

**URL:** <https://community.neo4j.com/t/several-passwords-issues/17844>\
**Category:** Python\
**Created:** [April 29, 2020, 4:08pm UTC](https://community.neo4j.com/t/several-passwords-issues/17844 "2020-04-29T16:08:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![math](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/math/32/3913_2.png) [@math](https://community.neo4j.com/u/math)\
**Post date:** [April 29, 2020, 4:08pm UTC](https://community.neo4j.com/t/several-passwords-issues/17844/1 "2020-04-29T16:08:13Z")

</div>

Hey ! newbie here. Thx for stoping by 🙂

I got several issues with the passeword :  
I've read here and there, we just have to enter neo4j/neo4j at the beginning, delete a files into dbms or change something into conf  
But, first it has never asked for the login/passeword at the beginning (just to create a password when we create a new database). And for the other stuff, didn't change anything

So :

- If i change the passeword of the database i got a window "passeword have been changed"  
and neither the first password nor the new one works

- And second, impossible to connect to the database with python.  
I always got something :  
-if it's not, "AuthError: The client is unauthorized due to authentication failure".  
-It's "FileNotFoundError: [Errno 2] No such file or directory"  
-or i don't even know what anymore, i had several errors

here's the code :  
I get some data from an excel files. And i gonna make my request into the loop to create all the nodes / relationships i need.  
(just put a print so far, didn't worked on the query yet, since i can't connect to the database)

```auto
import pandas as pd
from neo4j import GraphDatabase
from py2neo import Graph, Node, Relationship

uri = "bolt://localhost:7687"
driver = GraphDatabase.driver(uri, auth=("neo4j", "neo4j"))

def initialisation_base_de_donnees():
    
    xl = pd.ExcelFile("initialisation_base.xlsx")    
    df = {}
    
    for sheet in xl.sheet_names:
        df[f'{sheet}'] = pd.read_excel(xl, sheet_name = sheet)
             
    graph = Graph()
    tx = graph.begin()
    for pere, connaissances, rang in zip(df["connaissances"]["nom"], 
                                         df["connaissances"]["pere"],
                                         df["connaissances"]["rang"]):

        print(pere, connaissances, rang)

```

thx for reading 🙂

PS : I have also read "you must change the password for the neo4j user" but how you do that ?  
4.0.3 for the version.

---

<div class="post-metadata">

**Author:** ![lovepreet.kaur3395](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/lovepreet.kaur3395/32/10131_2.png) [@lovepreet.kaur3395](https://community.neo4j.com/u/lovepreet.kaur3395)\
**Post date:** [April 30, 2020, 5:46am UTC](https://community.neo4j.com/t/several-passwords-issues/17844/2 "2020-04-30T05:46:37Z")

</div>

Hi Mathieu ,

You can reset your password for user 'neo4j' (assuming your admin user is neo4j )  
by following below steps:

## 1.Stop Neo4j:

## $ bin/neo4j stop

2.Modify Neo4j.conf file and change dbms.security.auth\_enabled=true to dbms.security.auth\_enabled=false

## 3.Start Neo4j

## $ bin/neo4j start

1. Connect to the `system` database via Cypher Shell, and modify the admin user password:

* * *

$ bin/cypher-shell -d system

neo4j@system\> ALTER USER neo4j SET PASSWORD 'PutYourNewPasswordHere';

## neo4j@system\> :exit

or

## You can also change password from Neo4j Browser using below command:

## ALTER USER neo4j SET PASSWORD 'PutYourNewPasswordHere';

1. Stop neo4j:

* * *

## $ bin/neo4j stop

1. change the neo4j.conf file:

* * *

## #dbms.security.auth\_enabled=false (Comment the existing line)

## or,

## dbms.security.auth\_enabled=true (set this option to True)

1. Restart Neo4j:

* * *

## $ bin/neo4j start

Hope this helps in resetting your password.

---

<div class="post-metadata">

**Author:** ![math](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/math/32/3913_2.png) [@math](https://community.neo4j.com/u/math)\
**Post date:** [May 2, 2020, 4:01am UTC](https://community.neo4j.com/t/several-passwords-issues/17844/3 "2020-05-02T04:01:05Z")

</div>

Thanks for your help 🙂
