vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I've created a database "bugs" and a user "bugs" (postgresql user as well as unix) and even made user "bugs" not require a password but I still get this: [root@marathon bugzilla-2.20]# psql bugs bugs psql: FATAL: Ident authentication failed for user "bugs" .... but if I [root@marathon bugzilla-2.20]# su bugs [bugs@marathon bugzilla-2.20]$ psql bugs bugs Welcome to psql 8.0.7, the PostgreSQL interactive terminal. Type: \copyright for distribution terms \h for help with SQL commands \? for help with psql commands \g or terminate with semicolon to execute query \q to quit bugs=> it works. any ideas why? |
| |||
| jim_bowery@hotmail.com writes: > I've created a database "bugs" and a user "bugs" (postgresql user as > well as unix) and even made user "bugs" not require a password but I > still get this: > [root@marathon bugzilla-2.20]# psql bugs bugs > psql: FATAL: Ident authentication failed for user "bugs" Because 'ident sameuser' means your Unix username has to be the same as your PG username. Note that 'root' != 'bugs'. -Doug ---------------------------(end of broadcast)--------------------------- TIP 5: don't forget to increase your free space map settings |
| |||
| jim_bowery@hotmail.com wrote: > I've created a database "bugs" and a user "bugs" (postgresql user as > well as unix) and even made user "bugs" not require a password but I > still get this: > [root@marathon bugzilla-2.20]# psql bugs bugs > psql: FATAL: Ident authentication failed for user "bugs" > ... > but if I > [root@marathon bugzilla-2.20]# su bugs > [bugs@marathon bugzilla-2.20]$ psql bugs bugs > Welcome to psql 8.0.7, the PostgreSQL interactive terminal. > > Type: \copyright for distribution terms > \h for help with SQL commands > \? for help with psql commands > \g or terminate with semicolon to execute query > \q to quit > > bugs=> > > it works. any ideas why? Probably because of your pg_hba.conf file. The first option is most likely 'ident'. You probably want it as 'md5' (the file itself has tons of documentation). Order does matter in that file - it will use the first rule that applies. ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match |
| ||||
| Yes. It turns out the problem was that my pg_hba.conf file was replaced by another file during a yum install of the new postgresql but in a different path. When I used "locate pg_hba.conf" it returned the path of the old file which didn't have the 'ident sameuser' rule. |