<?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>permission &#8211; Best DevOps</title>
	<atom:link href="https://www.bestdevops.com/tag/permission/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.bestdevops.com</link>
	<description>Lets Learn, Do it &#38; Share! Thats a Best DevOps!!!</description>
	<lastBuildDate>Sat, 07 Aug 2021 09:48:35 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.3</generator>
	<item>
		<title>What are Linux Users, Groups and Permissions</title>
		<link>https://www.bestdevops.com/what-are-linux-users-and-groups-and-permissions/</link>
		
		<dc:creator><![CDATA[pradeep]]></dc:creator>
		<pubDate>Sat, 07 Aug 2021 09:36:42 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[permission]]></category>
		<category><![CDATA[user]]></category>
		<category><![CDATA[userGroups]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=18834</guid>

					<description><![CDATA[If you are new to Linux/Unix, then the concept of permissions may be confusing. This guide provides you with an [&#8230;]]]></description>
										<content:encoded><![CDATA[
<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>If you are new to Linux/Unix, then the concept of permissions may be confusing. This guide provides you with an explanation of what permissions are, how they work, and how to manage them. A number of examples are provided to illustrate how to set and change permissions for both users and groups.</p></blockquote>



<h2 class="wp-block-heading" id="what-are-linux-user-and-group-permissions">What are Linux User and Group Permissions?</h2>



<p class="wp-block-paragraph">Linux/Unix operating systems have the ability to multitask in a manner similar to other operating systems. However, Linux’s major difference from other operating systems is its ability to have multiple users. Linux was designed to allow more than one user to have access to the system at the same time. In order for this multiuser design to work properly, there needs to be a method to protect users from each other. This is where permissions come in to play.</p>



<h3 class="wp-block-heading" id="read-write--execute-permissions">Read, Write, &amp; Execute Permissions</h3>



<p class="wp-block-paragraph">Permissions are the “rights” to act on a file or directory. The basic rights are read, write, and execute.</p>



<ul class="wp-block-list"><li><strong>Read</strong>: a readable permission allows the contents of the file to be viewed. A read permission on a directory allows you to list the contents of a directory.</li><li><strong>Write</strong>: a write permission on a file allows you to modify the contents of that file. For a directory, the write permission allows you to edit the contents of a directory (e.g. add/delete files).</li><li><strong>Execute</strong>: for a file, the executable permission allows you to run the file and execute a program or script. For a directory, the execute permission allows you to change to a different directory and make it your current working directory. Users usually have a default group, but they may belong to several additional groups.</li></ul>



<h3 class="wp-block-heading" id="viewing-file-permissions">Viewing File Permissions</h3>



<p class="wp-block-paragraph">To view the permissions on a file or directory, issue the command&nbsp;<code>ls -l &lt;directory/file&gt;</code>. Remember to replace the information in the&nbsp;<code>&lt;directory/file&gt;</code>&nbsp;with the actual file or directory name. Below is sample output for the&nbsp;<code>ls</code>&nbsp;command:</p>


<pre class="wp-block-code"><span><code class="hljs">-rw-r--r-- 1 root root 1031 Nov 18 09:22 /etc/passwd</code></span></pre>


<ul class="wp-block-list"><li>The first ten characters show the access permissions. </li><li>The first dash (<code>-</code>) indicates the type of file (<code>d</code>&nbsp;for directory,&nbsp;<code>s</code>&nbsp;for special file and&nbsp;<code>-</code>&nbsp;for a regular file).</li><li> The next three characters (<code>rw-</code>) define the owner’s permission to the file.</li></ul>



<p class="wp-block-paragraph"> In this example, the file owner has read and write permissions only. The next three characters (<code>r--</code>) are the permissions for the members of the same group as the file owner (which in this example is read only). The last three characters (<code>r--</code>) show the permissions for all other users and in this example it is read only.</p>



<figure class="wp-block-image size-full is-resized"><img fetchpriority="high" decoding="async" src="https://www.bestdevops.com/wp-content/uploads/2021/08/image-56.png" alt="" class="wp-image-18839" width="574" height="287" srcset="https://www.bestdevops.com/wp-content/uploads/2021/08/image-56.png 596w, https://www.bestdevops.com/wp-content/uploads/2021/08/image-56-300x150.png 300w" sizes="(max-width: 574px) 100vw, 574px" /></figure>



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Permissions required to make a Laravel project up and running in ubuntu (Linux)</title>
		<link>https://www.bestdevops.com/permissions-required-to-make-a-laravel-project-up-and-running-in-ubuntu-linux/</link>
		
		<dc:creator><![CDATA[pradeep]]></dc:creator>
		<pubDate>Fri, 06 Aug 2021 11:04:26 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Framework]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[permission]]></category>
		<category><![CDATA[permission_denied]]></category>
		<category><![CDATA[session]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=18807</guid>

					<description><![CDATA[Before moving further, hope you have already installed xampp and composer in your machine.if not follow the below blog to [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Before moving further, hope you have already installed xampp and composer in your machine.<br>if not follow the below blog to do so.</h2>



<figure class="wp-block-embed is-type-wp-embed is-provider-devops-devsecops-sre-dataops-aiops wp-block-embed-devops-devsecops-sre-dataops-aiops"><div class="wp-block-embed__wrapper">
<blockquote class="wp-embedded-content" data-secret="ipO4OKcLIx"><a href="https://www.bestdevops.com/install-a-laravel-project-inside-htdocs-folder-in-ubuntu/">Install a Laravel project inside htdocs folder in ubuntu</a></blockquote><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  title="&#8220;Install a Laravel project inside htdocs folder in ubuntu&#8221; &#8212; Best DevOps" src="https://www.bestdevops.com/install-a-laravel-project-inside-htdocs-folder-in-ubuntu/embed/#?secret=J1P7D2j1fx#?secret=ipO4OKcLIx" data-secret="ipO4OKcLIx" width="600" height="338" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
</div></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="636" height="186" src="https://www.bestdevops.com/wp-content/uploads/2021/08/image-48.png" alt="" class="wp-image-18808" srcset="https://www.bestdevops.com/wp-content/uploads/2021/08/image-48.png 636w, https://www.bestdevops.com/wp-content/uploads/2021/08/image-48-300x88.png 300w" sizes="(max-width: 636px) 100vw, 636px" /></figure>



<h1 class="wp-block-heading">First permission:</h1>



<p class="wp-block-paragraph">As you know the first thing our browser needs to run a Laravel project is, the index file which is located in the public folder <br>so we need to make it read and writable so that our browser can access it and if required can modify it.</p>



<p class="wp-block-paragraph">Run the below command to grant access to the public folder </p>


<pre class="wp-block-code"><span><code class="hljs language-php">cd /opt/lampp/htdocs/YOUR_PROJECT
sudo chmod -R +rw <span class="hljs-keyword">public</span></code></span></pre>


<h1 class="wp-block-heading">Second permission:</h1>



<p class="wp-block-paragraph">The next permission if for the storage folder, as you already know when our Laravel projects runs it create some logs files automatically if any error found in you code base, </p>



<p class="wp-block-paragraph">Run the below command to grant access to the logs folder </p>


<pre class="wp-block-code"><span><code class="hljs">cd /opt/lampp/htdocs/YOUR_PROJECT
sudo chmod -R +rw storage</code></span></pre>


<h1 class="wp-block-heading">Third permission:</h1>



<p class="wp-block-paragraph">At the end, the final permission we have to give to our session folder which is located inside our <strong>storage/framework</strong> folder,<br>and every time we hit our project URL a new random session key is generated, that get stored in our session folder <br>so all of them are necessary to run a Laravel project </p>



<p class="wp-block-paragraph">Run the below command to grand access to the <strong>framework </strong>and session </p>


<pre class="wp-block-code"><span><code class="hljs">sudo chmod -R 775 framework
sudo chmod -R 775 session</code></span></pre>


<p class="wp-block-paragraph">That&#8217;s it, these all works for me hope it for you too </p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
