<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Работа on DevOps, Productivity, Career // etogeek blog</title>
    <link>https://etogeek.dev/en/tags/%D1%80%D0%B0%D0%B1%D0%BE%D1%82%D0%B0/</link>
    <description>Recent content in Работа on DevOps, Productivity, Career // etogeek blog</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Thu, 18 Apr 2024 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://etogeek.dev/en/tags/%D1%80%D0%B0%D0%B1%D0%BE%D1%82%D0%B0/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Difference: Authentication and Authorization</title>
      <link>https://etogeek.dev/en/posts/auth-auth/</link>
      <pubDate>Thu, 18 Apr 2024 00:00:00 +0000</pubDate>
      <guid>https://etogeek.dev/en/posts/auth-auth/</guid>
      <description>&lt;p&gt;&lt;strong&gt;Authentication and authorization&lt;/strong&gt; — similar words with different meanings, and they are easy to confuse. Let&amp;rsquo;s explore the differences.&lt;/p&gt;&#xA;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;Authentication &#xA;    &lt;div id=&#34;authentication&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;&#xA;        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700&#34;&#xA;            style=&#34;text-decoration-line: none !important;&#34; href=&#34;#authentication&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;        &#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;Authentication&lt;/strong&gt; is a process that verifies you are who you claim to be. An example of authentication is entering a username and password. The system checks these credentials to confirm your identity.&lt;/p&gt;&#xA;&lt;p&gt;In &lt;strong&gt;Linux&lt;/strong&gt; systems, authentication is handled by files such as:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;/etc/passwd&lt;/code&gt; — stores user information.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;/etc/shadow&lt;/code&gt; — contains encrypted user passwords.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;/etc/nsswitch.conf&lt;/code&gt; — directs where to look for user and group information and other resources, including DNS or network file system services. It tells the system to look for data in local files or, for example, in LDAP.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;Authorization &#xA;    &lt;div id=&#34;authorization&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;&#xA;        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700&#34;&#xA;            style=&#34;text-decoration-line: none !important;&#34; href=&#34;#authorization&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;        &#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;Authorization&lt;/strong&gt; follows authentication and determines your access to resources or actions. It checks whether you are permitted access to certain service areas.&lt;/p&gt;&#xA;&lt;p&gt;In Linux, access rights are defined through:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;/etc/group&lt;/code&gt; — describes user groups and their members.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;/etc/sudoers&lt;/code&gt; — specifies who can execute commands with superuser privileges.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;Real-life Example &#xA;    &lt;div id=&#34;real-life-example&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;&#xA;        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700&#34;&#xA;            style=&#34;text-decoration-line: none !important;&#34; href=&#34;#real-life-example&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;        &#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;When you show your passport at the border, that’s &lt;strong&gt;authentication&lt;/strong&gt; — you prove that you are John Smith. Deciding whether you can leave the country is a matter of &lt;strong&gt;authorization&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Important to remember&lt;/strong&gt;: Authentication always precedes authorization. The system first needs to know who you are and then decides what you are allowed to do.&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;p&gt;Прокомментировать статью, поделиться идеями, поболтать и задать вопрос можно в 👉 &lt;a href=&#34;https://t.me/etogeekchat&#34;   target=&#34;_blank&#34;&gt;&#xA;    телеграм-чате&lt;/a&gt;, а так же обязательно подписаться на 👉 &lt;a href=&#34;https://t.me/etogeek&#34;   target=&#34;_blank&#34;&gt;&#xA;    телеграм-канал&lt;/a&gt;!&lt;/p&gt;&#xA;</description>
    </item>
  </channel>
</rss>