<?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>HowConfig &#187; permissions</title>
	<atom:link href="http://www.howconfig.com/tag/permissions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.howconfig.com</link>
	<description>Quick tips on software configuration.</description>
	<lastBuildDate>Fri, 13 Jan 2012 12:55:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Setting User and Group Permissions for executing programs in Linux</title>
		<link>http://www.howconfig.com/linux/setting-user-and-group-permissions-for-executing-programs-in-linux/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=setting-user-and-group-permissions-for-executing-programs-in-linux</link>
		<comments>http://www.howconfig.com/linux/setting-user-and-group-permissions-for-executing-programs-in-linux/#comments</comments>
		<pubDate>Wed, 21 Dec 2011 14:50:56 +0000</pubDate>
		<dc:creator>config</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[chmod]]></category>
		<category><![CDATA[chown]]></category>
		<category><![CDATA[gid]]></category>
		<category><![CDATA[id]]></category>
		<category><![CDATA[identity]]></category>
		<category><![CDATA[os]]></category>
		<category><![CDATA[permissions]]></category>

		<guid isPermaLink="false">http://www.howconfig.com/?p=307</guid>
		<description><![CDATA[Every User or group in a Linux or (Unix like) Operating system is associated with a unique identity called UserID (UID) for a user and GroupID(GID) for a group. To know the uid, gid of your account simply type the &#8216;id&#8217; command in your terminal. To know the id of any user account, simply type [...]]]></description>
			<content:encoded><![CDATA[<p> Every User or group in a Linux or (Unix like) Operating system is associated with a unique identity called UserID (UID) for a user and GroupID(GID) for a group.<br />
To know the uid, gid of your account simply type the &#8216;id&#8217; command in your terminal.<br />
To know the id of any user account, simply type &#8216;id username&#8217;. Replace username with corresponding username.<br />
<span id="more-307"></span><br />
Eg: </p>
<pre>
id user1    (or) id -u user1
</pre>
<p>Association of UID / GID with Programs: </p>
<p>      Whenever a user or group runs a program in Linux, they should have the permission to execute the program or else they are not allowed to execute the program. In order to make the program executable under this user account, the user need to set the Sticky bit which is called SUID (SetUserID) or SGID (SetGroupID). </p>
<p>Although this can be done by using Graphical User Interface, here we show you the way of how to achieve this in terminal which is very easy and faster.<br />
Checking permission for files: </p>
<p>Step 1: To find &#8216; What is existing permission for a file or directory ? &#8216;, supply this command in your terminal: </p>
<pre>
# ls -l
</pre>
<p>this command will display the permission for all the files in a directory. </p>
<p>Step 2: To find the permission for a specific file </p>
<pre>
# ls -l filename
</pre>
<p>replace the filename with the respective name of the file that you want to check.<br />
The above commands specified will return something like &#8216; drwxr-xr-x &#8216;. where,</p>
<p>d- directory.</p>
<p>r-read, w-write, x-executable.<br />
If x is missing then it means, the file or program has not got the executable permission.<br />
To Set Permission for files or Programs: </p>
<p>&#8216; chmod &#8216; is the command used to achieve the task. </p>
<p>chmod changes the file mode bits of each given file according to mode, which can be either a symbolic representation of changes to make, or an octal number representing the bit pattern for the new mode bits. </p>
<p>chmod preserves  a  directory&#8217;s set-user-ID and set-group-ID bits unless you explicitly specify otherwise.  You can set or clear the bits with symbolic modes like u+s and g-s, and you can set (but not clear) the bits with a numeric mode. </p>
<p>Step 1: </p>
<pre>
# chmod u+s filename
</pre>
<p>Note: Replace filename with the name of the file for which permission has to be set.<br />
Here,</p>
<p>u &#8211; Associates of sets the user&#8217;s id as the owner of the file.</p>
<p>s &#8211; Sets the SUID; where g+s, sets the SGID. </p>
<p>Step 2: Now in order to check the changes we made, run the below command:</p>
<pre>
# ls -l filename
</pre>
<p>Step 3: Now you can run the program with desired and proper executable permission.<br />
The chmod command has now changed the scenario, now after setting the permission for a program, the program will run with the Permissions that the user who runs the program have. </p>
<p>To know more about chmod command type: &#8216; man chmod  &#8216; in your terminal.<br />
Hence, you can check the permissions for the file and similarly you can disable permission for executing some files if you wish it lacks security.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.howconfig.com/linux/setting-user-and-group-permissions-for-executing-programs-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Plesk for Linux &#8211; Fixing .htaccess pcfg_openfile error &#8211; permission fix</title>
		<link>http://www.howconfig.com/linux/plesk-for-linux-fixing-htaccess-pcfg_openfile-error-permission-fix/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=plesk-for-linux-fixing-htaccess-pcfg_openfile-error-permission-fix</link>
		<comments>http://www.howconfig.com/linux/plesk-for-linux-fixing-htaccess-pcfg_openfile-error-permission-fix/#comments</comments>
		<pubDate>Sun, 09 Aug 2009 20:32:57 +0000</pubDate>
		<dc:creator>config</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[file permissions]]></category>
		<category><![CDATA[permissions]]></category>
		<category><![CDATA[plesk]]></category>
		<category><![CDATA[plesk for linux]]></category>

		<guid isPermaLink="false">http://www.howconfig.com/?p=32</guid>
		<description><![CDATA[Problem with directory / files permissions after installing some software on your Plesk Linux server ( Nagios for example known to cause this in certain scenarios ). From /var/www/vhosts/domain.com/statistics/logs/error_log : [critical] [client 192.168.0.13] (13)Permission denied: /var/www/vhosts/domain.com/httpdocs/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable You will see Forbidden Error in your browser. If [...]]]></description>
			<content:encoded><![CDATA[<p>Problem with directory / files permissions after installing some software on your Plesk Linux server ( Nagios for example known to cause this in certain scenarios ).</p>
<p>From /var/www/vhosts/domain.com/statistics/logs/error_log :</p>
<pre>[critical] [client 192.168.0.13] (13)Permission
denied: /var/www/vhosts/domain.com/httpdocs/.htaccess pcfg_openfile:
unable to check htaccess file, ensure it is readable</pre>
<p>You will see Forbidden Error in your browser.</p>
<p>If you check the mentioned location you will notice that .htaccess file is probably not even there. Creating it and giving it the correct permissions won&#8217;t help of course.</p>
<p>In our case permissions set wrong on the httpdocs / httpsdocs directory itself.<br />
Try this to fix:</p>
<pre>cd /var/www/vhosts/domain.com/
chmod 755 httpdocs
chmod 755 httpsdocs</pre>
<p>You don&#8217;t have to set the permissions to 755 as 751 for example will work as well. Play with the permissions on httpdocs to find the suitable solution.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.howconfig.com/linux/plesk-for-linux-fixing-htaccess-pcfg_openfile-error-permission-fix/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

