<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Debug School: Adity Pratap Singh</title>
    <description>The latest articles on Debug School by Adity Pratap Singh (@adityavsingh_762).</description>
    <link>https://www.debug.school/adityavsingh_762</link>
    <image>
      <url>https://www.debug.school/images/8DK-wlVLYamrsG33eY6kq8D6UqQOzXKve7a8z3h_gBI/rs:fill:90:90/g:sm/mb:500000/ar:1/aHR0cHM6Ly93d3cu/ZGVidWcuc2Nob29s/L3VwbG9hZHMvdXNl/ci9wcm9maWxlX2lt/YWdlLzI2Ny8yOWVh/MTkxNC1jNDE5LTQz/NDUtYjhkNi0zMGEx/ZWViMTMyNDkucG5n</url>
      <title>Debug School: Adity Pratap Singh</title>
      <link>https://www.debug.school/adityavsingh_762</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://www.debug.school/feed/adityavsingh_762"/>
    <language>en</language>
    <item>
      <title>Aditya's Assignment for Day-2</title>
      <dc:creator>Adity Pratap Singh</dc:creator>
      <pubDate>Tue, 22 Nov 2022 05:54:00 +0000</pubDate>
      <link>https://www.debug.school/adityavsingh_762/adityas-assignment-for-day-2-ad0</link>
      <guid>https://www.debug.school/adityavsingh_762/adityas-assignment-for-day-2-ad0</guid>
      <description>&lt;p&gt;1- Write a recipe to create a file which should be owned by group called “root”, user “ec2-user” and permission executable.&lt;/p&gt;

&lt;p&gt;Solution : &lt;br&gt;
file "created-file.txt" do&lt;br&gt;
     owner 'ec2-user'&lt;br&gt;
     group 'root'&lt;br&gt;
     mode '754'&lt;br&gt;
     action :create&lt;br&gt;
  end&lt;br&gt;
2- Write a recipe to updates the access (atime) and file modification (mtime) times for a file.&lt;/p&gt;

&lt;p&gt;Sol: &lt;br&gt;
file '/home/centos/chef-repo/cookbooks/example/recipes/atime.txt' do&lt;br&gt;
   content 'This is my first file'&lt;br&gt;
   action :touch&lt;br&gt;
   action :create&lt;br&gt;
end&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
