# Installing gnuhealth and tryton. User can\`t access to database for login failed

**URL:** <https://discuss.tryton.org/t/installing-gnuhealth-and-tryton-user-can-t-access-to-database-for-login-failed/6705>\
**Category:** System Administrator\
**Created:** [November 14, 2023, 10:10pm UTC](https://discuss.tryton.org/t/installing-gnuhealth-and-tryton-user-can-t-access-to-database-for-login-failed/6705 "2023-11-14T22:10:00Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![maria.oholeguy](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/m/7c8e57/32.png) [@maria.oholeguy](https://discuss.tryton.org/u/maria.oholeguy)\
**Post date:** [November 14, 2023, 10:10pm UTC](https://discuss.tryton.org/t/installing-gnuhealth-and-tryton-user-can-t-access-to-database-for-login-failed/6705/1 "2023-11-14T22:10:00Z")

</div>

Hi!  
I’m new with tryton. I’m installing gnuhealth.  
I allready installed gnuhealth and postgresql.  
When I try to login in tryton it says:  
trytond.security failed for ‘gnuhealth’ from ‘127.0.0.1’ on database ‘gnuhealth’.  
However, the user and password are correct.  
I have already changed “md5” for “trust” in pg\_dba.conf and put de correct uri in trytond.conf.  
Also I configured the profile in login window.  
But nothing works.  
Thank for any help.

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [November 14, 2023, 10:41pm UTC](https://discuss.tryton.org/t/installing-gnuhealth-and-tryton-user-can-t-access-to-database-for-login-failed/6705/2 "2023-11-14T22:41:53Z")

</div>

> [@maria.oholeguy](#):
>
> I have already changed “md5” for “trust” in pg\_dba.conf and put de correct uri in trytond.conf.

The application login has nothing to do with the database login.

Each user has its own login/password. On the first initialisation of the database trytond request to set the password for the admin user. Then with the admin user you can register more user from the administration menu (see [Setup — Tryton server](https://docs.tryton.org/projects/server/en/latest/modules/res/setup.html#setting-up-initial-users)).

---

<div class="post-metadata">

**Author:** ![Basti](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/b/fbc32d/32.png) [@Basti](https://discuss.tryton.org/u/Basti)\
**Post date:** [November 15, 2023, 7:58am UTC](https://discuss.tryton.org/t/installing-gnuhealth-and-tryton-user-can-t-access-to-database-for-login-failed/6705/3 "2023-11-15T07:58:39Z")

</div>

The very first time you log in, you must log in with the user “admin”.

---

<div class="post-metadata">

**Author:** ![maria.oholeguy](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/m/7c8e57/32.png) [@maria.oholeguy](https://discuss.tryton.org/u/maria.oholeguy)\
**Post date:** [November 15, 2023, 2:55pm UTC](https://discuss.tryton.org/t/installing-gnuhealth-and-tryton-user-can-t-access-to-database-for-login-failed/6705/4 "2023-11-15T14:55:31Z")

</div>

Tthank to both, Ced and Basti.  
When I login whit admin user, I need a password, then, where can I found it?

---

<div class="post-metadata">

**Author:** ![maria.oholeguy](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/m/7c8e57/32.png) [@maria.oholeguy](https://discuss.tryton.org/u/maria.oholeguy)\
**Post date:** [November 15, 2023, 3:12pm UTC](https://discuss.tryton.org/t/installing-gnuhealth-and-tryton-user-can-t-access-to-database-for-login-failed/6705/5 "2023-11-15T15:12:01Z")

</div>

Reading another thread I found the way to set the administrator password:  
trytond-admin -d tryton -p  
but this doesn’t work, he says  
“command not found, you can install with  
sudo apt install tryton-server”.  
However, I have tryton installed. I assume this is because I need to “move” to another folder.  
If this is the correct way, what folder should I be in to do this command?  
Thank you for yor dedication

---

<div class="post-metadata">

**Author:** ![SISalp](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/sisalp/32/200_2.png) [@SISalp](https://discuss.tryton.org/u/SISalp)\
**Post date:** [November 15, 2023, 5:47pm UTC](https://discuss.tryton.org/t/installing-gnuhealth-and-tryton-user-can-t-access-to-database-for-login-failed/6705/6 "2023-11-15T17:47:03Z")

</div>

if you use some kind of linux server  
find . -name trytond-admin  
should search for your command name.  
You can add it to your $PATH  
or, when you are in the right directory, use ./trytond-admin notation.

---

<div class="post-metadata">

**Author:** ![maria.oholeguy](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/m/7c8e57/32.png) [@maria.oholeguy](https://discuss.tryton.org/u/maria.oholeguy)\
**Post date:** [November 23, 2023, 7:37pm UTC](https://discuss.tryton.org/t/installing-gnuhealth-and-tryton-user-can-t-access-to-database-for-login-failed/6705/7 "2023-11-23T19:37:29Z")

</div>

Thanks for your response, Cedric.  
[Configuration file for Tryton](https://docs.tryton.org/projects/server/en/latest/topics/configuration.html) doesn’t explain where the configuration file is.  
You help me? I don’t know where he is or his name for find it  
Thank you, again

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [November 23, 2023, 8:52pm UTC](https://discuss.tryton.org/t/installing-gnuhealth-and-tryton-user-can-t-access-to-database-for-login-failed/6705/8 "2023-11-23T20:52:23Z")

</div>

> [@maria.oholeguy](#):
>
> [Configuration file for Tryton](https://docs.tryton.org/projects/server/en/latest/topics/configuration.html) doesn’t explain where the configuration file is.  
> You help me? I don’t know where he is or his name for find it

You can create it where ever you want, with the name you want.

---

<div class="post-metadata">

**Author:** ![maria.oholeguy](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/m/7c8e57/32.png) [@maria.oholeguy](https://discuss.tryton.org/u/maria.oholeguy)\
**Post date:** [November 23, 2023, 8:57pm UTC](https://discuss.tryton.org/t/installing-gnuhealth-and-tryton-user-can-t-access-to-database-for-login-failed/6705/9 "2023-11-23T20:57:51Z")

</div>

Thanks for your quick response, Cedric.

---

<div class="post-metadata">

**Author:** ![acaubet](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/acaubet/32/1493_2.png) [@acaubet](https://discuss.tryton.org/u/acaubet)\
**Post date:** [November 24, 2023, 2:00pm UTC](https://discuss.tryton.org/t/installing-gnuhealth-and-tryton-user-can-t-access-to-database-for-login-failed/6705/10 "2023-11-24T14:00:47Z")

</div>

Interesting to know that there’s an env that you can use to point to your file, so if you create the config file in your home directory `~/trytond.conf` and you have  
`export TRYTOND_CONFIG=~/trytond.conf` on your `.bashrc` you can omit the `-c path_to_trytond` parameter on the trytond command’s execution.

---

<div class="post-metadata">

**Author:** ![maria.oholeguy](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/m/7c8e57/32.png) [@maria.oholeguy](https://discuss.tryton.org/u/maria.oholeguy)\
**Post date:** [November 25, 2023, 9:13pm UTC](https://discuss.tryton.org/t/installing-gnuhealth-and-tryton-user-can-t-access-to-database-for-login-failed/6705/11 "2023-11-25T21:13:27Z")

</div>

Thank you Adriá.  
I will go for this way.
