<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xmlns:osnews="http://www.osnews.com/rss2#">
	<channel>
		<title>OSNews: </title>
		<link>http://www.osnews.com/story/14241/Understanding_File_Permissions</link>
		<description>Exploring the Future of Computing</description>
		<language>en-us</language>
		<copyright>Copyright 2001-2013, David Adams</copyright>
		<webMaster>adam+nospam@osnews.com</webMaster>
		<lastBuildDate>Sun, 19 May 2013 01:01:37 GMT</lastBuildDate>
		<image>
			<url>http://www.osnews.com/images/osnews.gif</url>
			<title>OSNews.com</title>
			<link>http://www.osnews.com</link>
		</image>
		<item>
			<title>File permissions</title>
			<link>http://www.osnews.com/thread?111893</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?111893</guid>
			<description>When I first started playing around with Linux (I think I was 14), I was pretty confused about file permissions. I was used to the NTFS way of doing things (ACLs, which I still consider superior), where a particular file system object had &quot;users&quot; attached to it, and then each user was assigned a list of permissions. There was then an &quot;Everyone&quot; catch-all.<br />
<br />
Over time, I've come to like UNIX-style permissions, and if I were to give anyone a hint towards understanding them, it'd be to always focus on the owner of the file first. Work your way down from there.<br />
<br />
Granted, it's still tricky to do things like &quot;This and that group should be able to write to this directory, but not read any files once they're there, whereas this group should have full read/write access&quot;, but as long as you start from the owner and think creatively, eventually it'll all click.</description>
			<pubDate>Wed, 05 Apr 2006 18:42:00 GMT</pubDate>
			<author>donotreply@osnews.com (Tom K)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>ACLs are your friend</title>
			<link>http://www.osnews.com/thread?111928</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?111928</guid>
			<description>Managing file permissions by user/group/other access quickly becomes tedious with a large number of users, who do not fall into a single group. Enter ACLs - getfacl(1) and setfacl(1) help enormously. Solaris has had ACLs for a while (2.6?) and it's good to see Linux has them now as well.</description>
			<pubDate>Wed, 05 Apr 2006 19:45:00 GMT</pubDate>
			<author>donotreply@osnews.com (anonymous.4n0nym0u5)</author>
			<category>Comments</category>
		</item>

		<item>
			<title> a recommended read</title>
			<link>http://www.osnews.com/thread?111966</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?111966</guid>
			<description>for all the people around here who think Linux will be hit hard with virus/trojans/spyware in the future.</description>
			<pubDate>Wed, 05 Apr 2006 20:32:00 GMT</pubDate>
			<author>donotreply@osnews.com (raver31)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: File permissions</title>
			<link>http://www.osnews.com/thread?111983</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?111983</guid>
			<description>thats why all unixes have hard links. basicly create two dirs side by side and have one be a hard link to the other. then you give group 1 write access to one dir, and group 2 read/write access to the other dir.<br />
<br />
hell, you can even put then in totaly diffrent areas of the filesystem if you like <img src="/images/emo/wink.gif" alt=";)" /> <br />
<br />
now i would agree that if ACL only came with the read/write/execute options thats used in most basic unix file systems, they would be superior. but the current list of options in windows is:<br />
<br />
for a folder:<br />
full control<br />
modify<br />
read &amp; execute<br />
list folder content<br />
read<br />
write<br />
<br />
for a file:<br />
full control<br />
modify<br />
read &amp; execute<br />
read<br />
write<br />
<br />
ok so maybe that modify option can be a nice thing to have, but under unix again the hard link comes into play. a hard linked file is only removed ones all the links are deleted. want to make sure a file isnt accidentaly deleted? hard link it into some other area of the drive <img src="/images/emo/wink.gif" alt=";)" /> <br />
<br />
as for read vs read &amp; execute, i have no idea. i was supposed to learn the diffrence at one time, but it looks like the info didnt stick...<br />
<br />
basicly most of the seperate option up there can be recreated in unix using hard links and comboes of RWX <img src="/images/emo/wink.gif" alt=";)" />  (or 777 if you want to be a pain in the ass)...</description>
			<pubDate>Wed, 05 Apr 2006 20:49:00 GMT</pubDate>
			<author>donotreply@osnews.com (hobgoblin)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE:  a recommended read</title>
			<link>http://www.osnews.com/thread?112042</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?112042</guid>
			<description>Yes, what a useful article!  I've always been confused with anything beyond the rwx and finally understand now what the s and t mean and how to use them in a production environment!  It's nice having everything so coherently laid out.</description>
			<pubDate>Wed, 05 Apr 2006 23:29:00 GMT</pubDate>
			<author>donotreply@osnews.com (davematthew)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[2]: File permissions</title>
			<link>http://www.osnews.com/thread?112046</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?112046</guid>
			<description>Yeah, like I said, it requires creativity and thinking. It's possible, but not quite as easy as ACLs.<br />
<br />
BTW ... ever click the &quot;Advanced&quot; button in the NTFS permissions dialog? There are a lot more neat little permissions there. ;-)</description>
			<pubDate>Wed, 05 Apr 2006 23:36:00 GMT</pubDate>
			<author>donotreply@osnews.com (Tom K)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE:  a recommended read</title>
			<link>http://www.osnews.com/thread?112117</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?112117</guid>
			<description>&quot;for all the people around here who think Linux will be hit hard with virus/trojans/spyware in the future.&quot;<br />
This really hasnt got anything at all to do with if/when Linux will be hit hard by viruses or spyware.</description>
			<pubDate>Thu, 06 Apr 2006 03:01:00 GMT</pubDate>
			<author>donotreply@osnews.com (Soulbender)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[2]: File permissions</title>
			<link>http://www.osnews.com/thread?112176</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?112176</guid>
			<description>basicly create two dirs side by side and have one be a hard link to the other.<br />
<br />
What? Have you actually tried that yourself? You can't hardlink directories!<br />
<br />
basicly most of the seperate option up there can be recreated in unix using hard links and comboes of RWX<br />
<br />
If you need more advanced/fine-grained permissions than user/group/others... Then, um, why not just use ACLs? That's why Linux supports them too, you know.</description>
			<pubDate>Thu, 06 Apr 2006 07:22:00 GMT</pubDate>
			<author>donotreply@osnews.com (Dima)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[2]:  a recommended read</title>
			<link>http://www.osnews.com/thread?112180</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?112180</guid>
			<description>clearly you did not comprehend the article. what raver31 was saying, was that people on here automatically think that when linux gets as many users as windows, then it will get the same amount of malware,<br />
however, as the article plainly shows, there is the file permission &quot;defenses&quot; that it has to get around first.<br />
<br />
do some research first buddy</description>
			<pubDate>Thu, 06 Apr 2006 07:58:00 GMT</pubDate>
			<author>donotreply@osnews.com (captain_knobjockey)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[3]:  a recommended read</title>
			<link>http://www.osnews.com/thread?112189</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?112189</guid>
			<description>&quot;as the article plainly shows, there is the file permission &quot;defenses&quot; that it has to get around first.&quot;<br />
<br />
It's not a defense again spyware or viruses. Please try to understand the issues at hand. While file system permissions is a perfectly working defense against users modifying or accessing files they have no business with, it does not provide a defense against spyware or certain kind of viruses.<br />
You see, not all malware is designed to screw up your box, it would be counter-productive for them. What they want is just to be able to run an application, any application, as an unprivilieged user, ie as you. They just sit unnoticed in the background, relaying huge amounts of spam or participating in botnets. Wrecking your box by screwing with system files would only draw unnecessary attention to their existance.Edited 2006-04-06 09:37</description>
			<pubDate>Thu, 06 Apr 2006 09:36:00 GMT</pubDate>
			<author>donotreply@osnews.com (Soulbender)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[2]: File permissions</title>
			<link>http://www.osnews.com/thread?112195</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?112195</guid>
			<description>thats why all unixes have hard links<br />
<br />
Hard links don't work on directories.<br />
<br />
now i would agree that if ACL only came with the read/write/execute options thats used in most basic unix file systems, they would be superior<br />
<br />
People love to say ACL are superior, but that's not true. What they mean is that ACL can do more complicated things, but they are also incidentally more complicated to manage. This does not mean ACL are superior, it depends on the situation. For home usage, even advanced home usage like I do (with LDAP and all), ACL are clearly inferior. I don't even install them in the kernel.<br />
<br />
want to make sure a file isnt accidentaly deleted? hard link it into some other area of the drive <img src="/images/emo/wink.gif" alt=";)" /> <br />
<br />
That works pretty well. You just have to make sure the file won't be modified instead (but backups are there for that).</description>
			<pubDate>Thu, 06 Apr 2006 09:55:00 GMT</pubDate>
			<author>donotreply@osnews.com (Ookaze)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[2]: File permissions</title>
			<link>http://www.osnews.com/thread?112197</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?112197</guid>
			<description>&quot;now i would agree that if ACL only came with the read/write/execute options thats used in most basic unix file systems, they would be superior&quot;<br />
<br />
I disagree. ACL's are superior only in certain scenarios, but for most uses the simpler permissions are better.</description>
			<pubDate>Thu, 06 Apr 2006 10:03:00 GMT</pubDate>
			<author>donotreply@osnews.com (Soulbender)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[3]: File permissions</title>
			<link>http://www.osnews.com/thread?112216</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?112216</guid>
			<description>what i was thinking was that you could have more then one specific user or group with RWX settings pr file or dir, as thats mainly what i think is the usefullness of most ACLs, and why people sometimes dont like the simpler unix way...</description>
			<pubDate>Thu, 06 Apr 2006 12:14:00 GMT</pubDate>
			<author>donotreply@osnews.com (hobgoblin)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[3]: File permissions</title>
			<link>http://www.osnews.com/thread?112217</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?112217</guid>
			<description>well color me busted...</description>
			<pubDate>Thu, 06 Apr 2006 12:15:00 GMT</pubDate>
			<author>donotreply@osnews.com (hobgoblin)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[3]: File permissions</title>
			<link>http://www.osnews.com/thread?112219</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?112219</guid>
			<description>now how did i forget about that...</description>
			<pubDate>Thu, 06 Apr 2006 12:16:00 GMT</pubDate>
			<author>donotreply@osnews.com (hobgoblin)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[3]: File permissions</title>
			<link>http://www.osnews.com/thread?112242</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?112242</guid>
			<description>From ln --help:<br />
&quot;  -d, -F, --directory         allow the superuser to attempt to hard link<br />
                                directories (note: will probably fail due to<br />
                                system restrictions, even for the superuser)&quot;</description>
			<pubDate>Thu, 06 Apr 2006 13:35:00 GMT</pubDate>
			<author>donotreply@osnews.com (jaboua)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[4]:  a recommended read</title>
			<link>http://www.osnews.com/thread?112243</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?112243</guid>
			<description>Well... A virus is something that infects the system and screws it up...<br />
<br />
But malware may have a hard time as well, if it's left without executable permissions.</description>
			<pubDate>Thu, 06 Apr 2006 13:38:00 GMT</pubDate>
			<author>donotreply@osnews.com (jaboua)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[3]: File permissions</title>
			<link>http://www.osnews.com/thread?112366</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?112366</guid>
			<description>&gt; I disagree. ACL's are superior only in certain <br />
&gt; scenarios, but for most uses the simpler permissions <br />
&gt; are better.<br />
<br />
I would even go as far to say that standard Unix-like permissions are overkill for most cases. The problem is rather to make it possible to use a simple policy if possible, and a complex one if necessary, in the *same* system.</description>
			<pubDate>Thu, 06 Apr 2006 19:17:00 GMT</pubDate>
			<author>donotreply@osnews.com (Morin)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[5]:  a recommended read</title>
			<link>http://www.osnews.com/thread?112379</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?112379</guid>
			<description>&gt; But malware may have a hard time as well, if it's left without executable permissions.<br />
<br />
Specially forged data files do not have executable permissions but execute code anyway through buffer overflow attacks.<br />
<br />
Not all scripting interpreters require the script to have executable permissions. The script could also be embedded in a datafile.<br />
<br />
Social engineering attacks don't have a hard time in making the user set executable permissions.<br />
<br />
... and so on. You can of course pretend the problem doesn't exist. But you could also understand the cause of these problems, why file permissions alone *don't* handle them, and find a better solution. This doesn't mean file permissions are useless - in fact they'd probably play an important role in a proper solution. But they are not a solution to everything if taken alone.<br />
<br />
On a side note, many &quot;computer specialists&quot; avoid responsibility for social engineering attacks altogether, probably with excuses such as &quot;people shouldn't be so stupid&quot;, or &quot;we can't solve this problem anyway&quot;, or &quot;we aren't the right people to solve this problem&quot;, or whatever. Saying that file permissions solve the malware problem tends to lead in the same direction.</description>
			<pubDate>Thu, 06 Apr 2006 19:30:00 GMT</pubDate>
			<author>donotreply@osnews.com (Morin)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[5]:  a recommended read</title>
			<link>http://www.osnews.com/thread?112509</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?112509</guid>
			<description>&quot;A virus is something that infects the system and screws it up...&quot;<br />
No, a virus is something that infects a system and uses it to spread further. Damaging the infected system is not always a goal.<br />
<br />
&quot;But malware may have a hard time as well, if it's left without executable permissions.&quot;<br />
Not really, since the owner of a file always can change its permissions and a file can still be run even if it doesnt have the execute permission (ie &quot;/bin/sh somescript&quot;).</description>
			<pubDate>Fri, 07 Apr 2006 02:54:00 GMT</pubDate>
			<author>donotreply@osnews.com (Soulbender)</author>
			<category>Comments</category>
		</item>
	</channel>
</rss>
