<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>authentication &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/authentication/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Tue, 16 Jan 2018 10:48:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.6</generator>
	<item>
		<title>SQL Server: Script to find Database USER LOGIN Information</title>
		<link>https://www.dbrnd.com/2018/01/sql-server-script-to-find-database-user-login-information-password-expiration-authentication-security/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Sat, 27 Jan 2018 16:16:44 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server DBA Script]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[login expiration]]></category>
		<category><![CDATA[Password]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server Administrator]]></category>
		<category><![CDATA[SQL Server Monitoring]]></category>
		<category><![CDATA[SQL Server Performance Tunning]]></category>
		<category><![CDATA[SQL Server Tips and Tricks]]></category>
		<category><![CDATA[TSQL]]></category>
		<category><![CDATA[user]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=4047</guid>

					<description><![CDATA[In this post, I am sharing one T-SQL Script to find SQL Server USER LOGIN Information. As a DBA, we should check the USER LOGIN Information to make sure about the user expiration, password expiration. Using password expiration information, you can also notify the user before its password expires. [crayon-6ab55e535fffe593971120/]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F01%2Fsql-server-script-to-find-database-user-login-information-password-expiration-authentication-security%2F&amp;linkname=SQL%20Server%3A%20Script%20to%20find%20Database%20USER%20LOGIN%20Information" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F01%2Fsql-server-script-to-find-database-user-login-information-password-expiration-authentication-security%2F&amp;linkname=SQL%20Server%3A%20Script%20to%20find%20Database%20USER%20LOGIN%20Information" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F01%2Fsql-server-script-to-find-database-user-login-information-password-expiration-authentication-security%2F&amp;linkname=SQL%20Server%3A%20Script%20to%20find%20Database%20USER%20LOGIN%20Information" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F01%2Fsql-server-script-to-find-database-user-login-information-password-expiration-authentication-security%2F&amp;linkname=SQL%20Server%3A%20Script%20to%20find%20Database%20USER%20LOGIN%20Information" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F01%2Fsql-server-script-to-find-database-user-login-information-password-expiration-authentication-security%2F&amp;linkname=SQL%20Server%3A%20Script%20to%20find%20Database%20USER%20LOGIN%20Information" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F01%2Fsql-server-script-to-find-database-user-login-information-password-expiration-authentication-security%2F&amp;linkname=SQL%20Server%3A%20Script%20to%20find%20Database%20USER%20LOGIN%20Information" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F01%2Fsql-server-script-to-find-database-user-login-information-password-expiration-authentication-security%2F&#038;title=SQL%20Server%3A%20Script%20to%20find%20Database%20USER%20LOGIN%20Information" data-a2a-url="https://www.dbrnd.com/2018/01/sql-server-script-to-find-database-user-login-information-password-expiration-authentication-security/" data-a2a-title="SQL Server: Script to find Database USER LOGIN Information"></a></p><p>In this post, I am sharing one T-SQL Script to find SQL Server USER LOGIN Information. </p>
<blockquote><p>As a DBA, we should check the USER LOGIN Information to make sure about the user expiration, password expiration.<br />
Using password expiration information, you can also notify the user before its password expires. </p></blockquote>
<pre class="crayon-plain-tag">SELECT 
	SL.name AS LoginName 
	,LOGINPROPERTY (SL.name, 'PasswordLastSetTime') AS PasswordLastSetTime 
	,LOGINPROPERTY (SL.name, 'DaysUntilExpiration') AS DaysUntilExpiration 
	,DATEADD(dd, CONVERT(int, LOGINPROPERTY (SL.name, 'DaysUntilExpiration')) 
				, CONVERT(datetime, LOGINPROPERTY (SL.name, 'PasswordLastSetTime'))) AS PasswordExpiration 
	,SL.is_policy_checked AS IsPolicyChecked 
	,LOGINPROPERTY (SL.name, 'IsExpired') AS IsExpired 
	,LOGINPROPERTY (SL.name, 'IsMustChange') AS IsMustChange 
	,LOGINPROPERTY (SL.name, 'IsLocked') AS IsLocked 
	,LOGINPROPERTY (SL.name, 'LockoutTime') AS LockoutTime 
	,LOGINPROPERTY (SL.name, 'BadPasswordCount') AS BadPasswordCount 
	,LOGINPROPERTY (SL.name, 'BadPasswordTime') AS BadPasswordTime 
	,LOGINPROPERTY (SL.name, 'HistoryLength') AS HistoryLength 
FROM sys.sql_logins AS SL 
WHERE is_expiration_checked = 1 
ORDER BY LOGINPROPERTY (SL.name, 'PasswordLastSetTime') DESC</pre> </p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>PostgreSQL: pg_ident.conf to map Operating System Username and Database Username</title>
		<link>https://www.dbrnd.com/2016/12/postgresql-pg_ident-conf-to-map-operating-system-username-and-database-username-external-authentication-password/</link>
					<comments>https://www.dbrnd.com/2016/12/postgresql-pg_ident-conf-to-map-operating-system-username-and-database-username-external-authentication-password/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Thu, 08 Dec 2016 18:19:29 +0000</pubDate>
				<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[operating system]]></category>
		<category><![CDATA[Password]]></category>
		<category><![CDATA[permission]]></category>
		<category><![CDATA[pg_hba.conf]]></category>
		<category><![CDATA[pg_ident.conf]]></category>
		<category><![CDATA[plpgsql]]></category>
		<category><![CDATA[Postgres Query]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[PostgreSQL Administrator]]></category>
		<category><![CDATA[PostgreSQL Error]]></category>
		<category><![CDATA[PostgreSQL Programming]]></category>
		<category><![CDATA[PostgreSQL Tips and Tricks]]></category>
		<category><![CDATA[user]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=4013</guid>

					<description><![CDATA[If you do not know about the role of pg_hba.conf file, visit the below link. PostgreSQL: How to Allow Remote Connection to Connect Database PostgreSQL also has a one more file related user access permission and that is pg_ident.conf. PostgreSQL provides Ident-based authentication and It works by obtaining the client&#8217;s operating system user name and [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F12%2Fpostgresql-pg_ident-conf-to-map-operating-system-username-and-database-username-external-authentication-password%2F&amp;linkname=PostgreSQL%3A%20pg_ident.conf%20to%20map%20Operating%20System%20Username%20and%20Database%20Username" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F12%2Fpostgresql-pg_ident-conf-to-map-operating-system-username-and-database-username-external-authentication-password%2F&amp;linkname=PostgreSQL%3A%20pg_ident.conf%20to%20map%20Operating%20System%20Username%20and%20Database%20Username" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F12%2Fpostgresql-pg_ident-conf-to-map-operating-system-username-and-database-username-external-authentication-password%2F&amp;linkname=PostgreSQL%3A%20pg_ident.conf%20to%20map%20Operating%20System%20Username%20and%20Database%20Username" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F12%2Fpostgresql-pg_ident-conf-to-map-operating-system-username-and-database-username-external-authentication-password%2F&amp;linkname=PostgreSQL%3A%20pg_ident.conf%20to%20map%20Operating%20System%20Username%20and%20Database%20Username" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F12%2Fpostgresql-pg_ident-conf-to-map-operating-system-username-and-database-username-external-authentication-password%2F&amp;linkname=PostgreSQL%3A%20pg_ident.conf%20to%20map%20Operating%20System%20Username%20and%20Database%20Username" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F12%2Fpostgresql-pg_ident-conf-to-map-operating-system-username-and-database-username-external-authentication-password%2F&amp;linkname=PostgreSQL%3A%20pg_ident.conf%20to%20map%20Operating%20System%20Username%20and%20Database%20Username" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F12%2Fpostgresql-pg_ident-conf-to-map-operating-system-username-and-database-username-external-authentication-password%2F&#038;title=PostgreSQL%3A%20pg_ident.conf%20to%20map%20Operating%20System%20Username%20and%20Database%20Username" data-a2a-url="https://www.dbrnd.com/2016/12/postgresql-pg_ident-conf-to-map-operating-system-username-and-database-username-external-authentication-password/" data-a2a-title="PostgreSQL: pg_ident.conf to map Operating System Username and Database Username"></a></p><p>If you do not know about the role of pg_hba.conf file, visit the below link.</p>
<blockquote class="wp-embedded-content" data-secret="JrH3IqJXlV"><p><a href="https://www.dbrnd.com/2016/01/postgresql-how-to-allow-remote-connection-to-connect-database/">PostgreSQL: How to Allow Remote Connection to Connect Database</a></p></blockquote>
<p><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  src="https://www.dbrnd.com/2016/01/postgresql-how-to-allow-remote-connection-to-connect-database/embed/#?secret=JrH3IqJXlV" data-secret="JrH3IqJXlV" width="600" height="338" title="&#8220;PostgreSQL: How to Allow Remote Connection to Connect Database&#8221; &#8212; Database Research &amp; Development" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></p>
<blockquote><p>PostgreSQL also has a one more file related user access permission and that is pg_ident.conf.<br />
PostgreSQL provides Ident-based authentication and It works by obtaining the client&#8217;s operating system user name and using it as the allowed database user name with an optional user name mapping.</p></blockquote>
<blockquote><p>When we are using an external authentication system, system username might not be the same as database username. </p></blockquote>
<blockquote><p>To allow external authentication, We should map the system username with database username and we can also set a map name to hide the system username and database username related detail.</p></blockquote>
<p>For example, </p>
<p><strong>Go to the PostgreSQL data directory and Open pg_ident.conf file.</strong><br />
<strong>You can find below lines:</strong></p>
<pre class="crayon-plain-tag"># Put your actual configuration here
# ----------------------------------
# MAPNAME       SYSTEM-USERNAME         PG-USERNAME</pre> </p>
<p><strong>You can add value to map system username and database username:</strong></p>
<pre class="crayon-plain-tag"># Put your actual configuration here
# ----------------------------------
# MAPNAME       SYSTEM-USERNAME         PG-USERNAME
User123         LinuxUser               PGUser</pre> </p>
<blockquote><p>Once you map your system user and database user in pg_ident.conf file, you can use map name in pg_hba.conf file to allow external authentication.</p></blockquote>
<p><strong>Go to your PostgreSQL data directory and open a pg_hba.conf file.</strong></p>
<p>You can add the map name of system user and database user in METHOD column.<br />
For Example, </p>
<pre class="crayon-plain-tag"># TYPE  DATABASE        USER            ADDRESS                 METHOD
host    all             all             120.172.0.0/16          ident map=User123</pre> </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2016/12/postgresql-pg_ident-conf-to-map-operating-system-username-and-database-username-external-authentication-password/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>PostgreSQL: password authentication failed for user &#8220;postgres&#8221; in Ubuntu</title>
		<link>https://www.dbrnd.com/2016/08/postgresql-password-authentication-failed-for-user-postgres-in-ubuntu-reset-forgot-postgres-super-user-password/</link>
					<comments>https://www.dbrnd.com/2016/08/postgresql-password-authentication-failed-for-user-postgres-in-ubuntu-reset-forgot-postgres-super-user-password/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Wed, 24 Aug 2016 17:54:48 +0000</pubDate>
				<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[forget postgres password]]></category>
		<category><![CDATA[invalid user]]></category>
		<category><![CDATA[plpgsql]]></category>
		<category><![CDATA[Postgres Query]]></category>
		<category><![CDATA[postgres super user]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[PostgreSQL Administrator]]></category>
		<category><![CDATA[PostgreSQL Error]]></category>
		<category><![CDATA[PostgreSQL Programming]]></category>
		<category><![CDATA[PostgreSQL Tips and Tricks]]></category>
		<category><![CDATA[reset postgres password]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=3553</guid>

					<description><![CDATA[While doing your first PostgreSQL login, Have you got an error like: password authentication failed for user &#8220;postgres&#8221;. Relax, No problem ! This is very common error for the user of Linux PostgreSQL. Here,You can access other related and important articles. PostgreSQL: How to Install PostgreSQL 9.4 on Ubuntu 14.04? PostgreSQL: How to Allow Remote [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F08%2Fpostgresql-password-authentication-failed-for-user-postgres-in-ubuntu-reset-forgot-postgres-super-user-password%2F&amp;linkname=PostgreSQL%3A%20password%20authentication%20failed%20for%20user%20%E2%80%9Cpostgres%E2%80%9D%20in%20Ubuntu" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F08%2Fpostgresql-password-authentication-failed-for-user-postgres-in-ubuntu-reset-forgot-postgres-super-user-password%2F&amp;linkname=PostgreSQL%3A%20password%20authentication%20failed%20for%20user%20%E2%80%9Cpostgres%E2%80%9D%20in%20Ubuntu" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F08%2Fpostgresql-password-authentication-failed-for-user-postgres-in-ubuntu-reset-forgot-postgres-super-user-password%2F&amp;linkname=PostgreSQL%3A%20password%20authentication%20failed%20for%20user%20%E2%80%9Cpostgres%E2%80%9D%20in%20Ubuntu" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F08%2Fpostgresql-password-authentication-failed-for-user-postgres-in-ubuntu-reset-forgot-postgres-super-user-password%2F&amp;linkname=PostgreSQL%3A%20password%20authentication%20failed%20for%20user%20%E2%80%9Cpostgres%E2%80%9D%20in%20Ubuntu" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F08%2Fpostgresql-password-authentication-failed-for-user-postgres-in-ubuntu-reset-forgot-postgres-super-user-password%2F&amp;linkname=PostgreSQL%3A%20password%20authentication%20failed%20for%20user%20%E2%80%9Cpostgres%E2%80%9D%20in%20Ubuntu" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F08%2Fpostgresql-password-authentication-failed-for-user-postgres-in-ubuntu-reset-forgot-postgres-super-user-password%2F&amp;linkname=PostgreSQL%3A%20password%20authentication%20failed%20for%20user%20%E2%80%9Cpostgres%E2%80%9D%20in%20Ubuntu" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F08%2Fpostgresql-password-authentication-failed-for-user-postgres-in-ubuntu-reset-forgot-postgres-super-user-password%2F&#038;title=PostgreSQL%3A%20password%20authentication%20failed%20for%20user%20%E2%80%9Cpostgres%E2%80%9D%20in%20Ubuntu" data-a2a-url="https://www.dbrnd.com/2016/08/postgresql-password-authentication-failed-for-user-postgres-in-ubuntu-reset-forgot-postgres-super-user-password/" data-a2a-title="PostgreSQL: password authentication failed for user “postgres” in Ubuntu"></a></p><p>While doing your first PostgreSQL login, Have you got an error like: password authentication failed for user &#8220;postgres&#8221;.</p>
<p><strong>Relax, No problem !<br />
This is very common error for the user of Linux PostgreSQL.</strong></p>
<p>Here,You can access other related and important articles.</p>
<blockquote class="wp-embedded-content" data-secret="xCKaHzbP13"><p><a href="https://www.dbrnd.com/2016/04/postgresql-how-to-install-postgresql-9-4-on-ubuntu-14-04/">PostgreSQL: How to Install PostgreSQL 9.4 on Ubuntu 14.04?</a></p></blockquote>
<p><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  src="https://www.dbrnd.com/2016/04/postgresql-how-to-install-postgresql-9-4-on-ubuntu-14-04/embed/#?secret=xCKaHzbP13" data-secret="xCKaHzbP13" width="600" height="338" title="&#8220;PostgreSQL: How to Install PostgreSQL 9.4 on Ubuntu 14.04?&#8221; &#8212; Database Research &amp; Development" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></p>
<blockquote class="wp-embedded-content" data-secret="gS7igLUThJ"><p><a href="https://www.dbrnd.com/2016/01/postgresql-how-to-allow-remote-connection-to-connect-database/">PostgreSQL: How to Allow Remote Connection to Connect Database</a></p></blockquote>
<p><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  src="https://www.dbrnd.com/2016/01/postgresql-how-to-allow-remote-connection-to-connect-database/embed/#?secret=gS7igLUThJ" data-secret="gS7igLUThJ" width="600" height="338" title="&#8220;PostgreSQL: How to Allow Remote Connection to Connect Database&#8221; &#8212; Database Research &amp; Development" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></p>
<blockquote><p>When we install PostgreSQL on Linux, by default, no any password assigns to the Postgres super user.<br />
We should explicitly SET the postgres user password using something like below command.</p></blockquote>
<pre class="crayon-plain-tag">ubuntu@:~$ sudo passwd postgres
Enter new UNIX password:****
Retype new UNIX password:****
passwd: password updated successfully</pre> </p>
<p><strong>Now try to connect using postgres user:</strong></p>
<pre class="crayon-plain-tag">ubuntu@:~$ su postgres
Password:****</pre> </p>
<p><strong>What If I forgot my Postgres user password?</strong></p>
<blockquote><p>If you forgot your postgres password, you can login without password by changing &#8220;md5&#8221; to &#8220;trust&#8221; in pg_hba.conf file and restart the PostgreSQL server.<br />
<strong>After login, you can ALTER postgres user:</strong></p>
<pre class="crayon-plain-tag">ALTER USER postgres PASSWORD 'MyNewPassword';</pre> </p>
<p>Now again change your pg_hba.conf entry from &#8220;trust&#8221; to &#8220;md5&#8221; and restart the PostgreSQL server. </p></blockquote>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2016/08/postgresql-password-authentication-failed-for-user-postgres-in-ubuntu-reset-forgot-postgres-super-user-password/feed/</wfw:commentRss>
			<slash:comments>8</slash:comments>
		
		
			</item>
	</channel>
</rss>
