<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Rahul Manoharan on Medium]]></title>
        <description><![CDATA[Stories by Rahul Manoharan on Medium]]></description>
        <link>https://medium.com/@mrahul27?source=rss-1ef6a26e2afc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*JVHfUMesvzdNifGk.</url>
            <title>Stories by Rahul Manoharan on Medium</title>
            <link>https://medium.com/@mrahul27?source=rss-1ef6a26e2afc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 18:00:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mrahul27/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Linux Bytes]]></title>
            <link>https://medium.com/@mrahul27/linux-bytes-969061c75404?source=rss-1ef6a26e2afc------2</link>
            <guid isPermaLink="false">https://medium.com/p/969061c75404</guid>
            <dc:creator><![CDATA[Rahul Manoharan]]></dc:creator>
            <pubDate>Sun, 04 Feb 2024 19:28:54 GMT</pubDate>
            <atom:updated>2024-02-04T19:28:54.460Z</atom:updated>
            <content:encoded><![CDATA[<h3>set UID in linux.</h3><p><strong><em>set uid</em></strong> — When a file in Linux has suid enabled and any other user tries to execute the file, a process gets initiated and assumes the permissions same as the owner of the file and executes the process.For ex, when normal user, like user1 wants to do a passwd reset for his user id, user executes passwd command.</p><p>passwd user1</p><p>Here, 2 files are touched .Below are the files with default permissions.</p><pre>$ ls -l /usr/bin/passwd<br>-rw**s**--x--x 1 root root 77689 Jul  2  2014 /usr/bin/passwd -This file has setuid enabled.<br>$ ls -l /etc/shadow<br>-rw-r----- 1 root shadow 719 Aug  5  2016 /etc/shadow</pre><p>When user executes passwd command,it initiates a process from the /usr/bin/passwd file which takes permission of the /usr/bin/passwd and executes the command and updates the entry to shadow file. Thats is why, normal user is able to reset his passwd even though he does not have permission to access the above file.</p><p><em>command to set suid:</em></p><p>chmod u+s /usr/bin/passwd</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=969061c75404" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>