<?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>gHacks Technology News &#124; Latest Tech News, Software And Tutorials &#187; file permissions</title> <atom:link href="http://www.ghacks.net/tag/file-permissions/feed/" rel="self" type="application/rss+xml" /><link>http://www.ghacks.net</link> <description>A technology news blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description> <lastBuildDate>Sat, 11 Feb 2012 17:32:23 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/> <item><title>NTFS Permissions Tools</title><link>http://www.ghacks.net/2011/05/24/ntfs-permissions-tools/</link> <comments>http://www.ghacks.net/2011/05/24/ntfs-permissions-tools/#comments</comments> <pubDate>Tue, 24 May 2011 16:17:26 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Software]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[file permissions]]></category> <category><![CDATA[ntfs]]></category> <category><![CDATA[NTFS Permissions Tools]]></category> <category><![CDATA[windows software]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=45515</guid> <description><![CDATA[Changing file and folder permissions under Windows is not a comfortable process. You need to click through various menus before you can make the modifications that you want to make. This may including changing ownership of a file or folder, or changing access permissions for a registered user or the system account. The free software [...]]]></description> <content:encoded><![CDATA[<p>Changing file and folder permissions under Windows is not a comfortable process. You need to click through various menus before you can make the modifications that you want to make. This may including changing ownership of a file or folder, or changing access permissions for a registered user or the system account.</p><p>The free software NTFS Permissions Tool simplifies the modification of file permissions greatly. The program displays permissions of files and folders that you drag into its interface in a comfortable easy manner. Even better, controls to modify permissions are directly available on that screen.</p><p><img
src="http://www.ghacks.net/wp-content/uploads/2011/05/ntfs-permissions-tool.png" alt="ntfs permissions tool" title="ntfs permissions tool" width="600" height="478" class="alignnone size-full wp-image-45516" /></p><p>The tool lists the path and type of the object, permissions, accounts and the current owner of each item. Both the account and owner can be changed by selecting a different from the pulldown menu.</p><p>Permissions can be set to allow, read only or deny in the main interface.</p><p>A double-click on a file or folder brings up the item&#8217;s advanced permission settings with possibilities to change detailed permissions. This menu resembles the security menu when you change security permissions in Windows Explorer.</p><p><img
src="http://www.ghacks.net/wp-content/uploads/2011/05/ntfs-permissions1.png" alt="ntfs permissions" title="ntfs permissions" width="600" height="453" class="alignnone size-full wp-image-45518" /></p><p>You can allow and deny specific access rights, from reading attributes to writing data or creating files. Actions can be applied to the selected object, or in case it is a folder to subfolders and files as well.</p><p>It is possible to create permission backups which may be handy for restoration purposes later on, or to run the same set of permission changes on an identical system.</p><p>You can use the file menu to add folders or files, in case you do not like to work with drag and drop operations. The Security menu offers advanced editing controls, for instance to copy permissions or security settings.</p><p>NTFS Permissions Tools is a handy tool for users who either need to change permissions on a regular basis, or users who need to change a lot of permissions and security changes once. The main advantage over Window&#8217;s built-in permission and security tool is accessibility and ease of use. It takes less time to change permissions and security settings.</p><p>The program <a
href="http://dbc-studio.blog.163.com/blog/static/75751050201141683429667/">can be</a> downloaded from the developer website. I suggest you <a
href="http://dl.dbank.com/c02rtmabh7">use this</a> download host to download the file. Make sure you verify the file at a service like Virustotal.com before you run it on your system. The program itself is offered as a 32-bit and 64-bit version. It looks like a portable software on first glance but may use the Microsoft .NET Framework. (<a
href="http://www.nirmaltv.com/2011/05/19/set-file-and-folder-permissions-for-system-files-with-ntfs-permissions-tool/">via</a>)</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2011/05/24/ntfs-permissions-tools/feed/</wfw:commentRss> <slash:comments>19</slash:comments> </item> <item><title>Password protect files and folders in Linux</title><link>http://www.ghacks.net/2010/06/27/password-protect-a-folder-in-linux/</link> <comments>http://www.ghacks.net/2010/06/27/password-protect-a-folder-in-linux/#comments</comments> <pubDate>Sat, 26 Jun 2010 23:57:17 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Desktop Manager]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[encryption]]></category> <category><![CDATA[file encryption]]></category> <category><![CDATA[file permissions]]></category> <category><![CDATA[GNOME]]></category> <category><![CDATA[password protection]]></category> <category><![CDATA[seahorse]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=27130</guid> <description><![CDATA[Security sometimes equates to sanity. You have to keep sensitive information from prying eyes for various reasons. You might have a folder that needs to be given access only to certain people and it lives within a public folder. Or you have a folder on your desktop machine that you want to ensure no one [...]]]></description> <content:encoded><![CDATA[<p>Security sometimes equates to sanity. You have to keep sensitive information from prying eyes for various reasons. You might have a folder that needs to be given access only to certain people and it lives within a public folder. Or you have a folder on your desktop machine that you want to ensure no one but yourself can see. For whatever reason, there is a need for password protection of folders.</p><p>In this article I am going to show you more than one way to do this: Using permissions, using zip, and using encryption. Hopefully, in the end, you will have a method that suits your needs and your abilities.</p><p><span
id="more-27130"></span><strong>The tools</strong></p><p>Most likely you already have all of the tools you need installed. There could be a slight chance that gpg is not installed. To find out issue the command <em>which gpg. </em>This command should return the version of gpg you have installed. You should also know (as if you don&#8217;t already know) that these tasks will all be completed from the command line. So open up your favorite terminal and get ready to type.</p><p><strong>Permissions</strong></p><p>Since we&#8217;re talking about Linux, keeping other users from seeing your files/folders is actually quite simple. All you need to do is make sure the read permissions for other and group are not set. So let&#8217;s say you create a folder in your home directory called <strong>~/TEST</strong>. By default the permissions on that folder will be:</p><p><em>drwxr-xr-x</em></p><p>This means that anyone in your group and all others can read and execute from within that directory. Let&#8217;s remove those permissions. To do so issue the command:</p><p><em>chmod -R go-rx TEST</em></p><p>Now the only user that can read, write, or execute from within your <strong>TEST</strong> directory is you. There is one problem with that &#8211; the root user will still have access to that folder. Or anyone with your user password for that matter. So let&#8217;s take this one step further.</p><p><strong>Zip</strong></p><p>You may not have known this, but you can encrypt a zipped file. Let&#8217;s say you don&#8217;t want any user on the system seeing the contents of that particular folder. To do that with the <em>zip </em>command is easy. The only issue with this is the folder will now be in zipped form and the only way for you to view the contents is to unzip it. That&#8217;s simple to do as well. But let&#8217;s zip and encrypt using the same folder <strong>~/TEST</strong>. To zip and encrypt this folder you would issue the command:</p><p><em>zip -e -r TEST TEST</em></p><p>You will be prompted for a password for the encryption. The above command would complete with an encrypted TEST.zip file and leave the TEST folder behind. You would then want to delete that folder so no one could see the contents. To unzip that same folder issue the command:</p><p>unzip TEST</p><p>You will then be prompted for the same password you gave for the encryption. Once you successfully enter the password the file will be unzipped.</p><p><strong>Nautilus</strong></p><p>There is a very simple way to encrypt files from within the Nautilus file manager. To do this you will need to install the following:</p><ul><li>seahorse</li><li>seahorse-plugins</li></ul><p>Seahorse is an encryption front-end for the GNOME desktop. More than likely seahorse is already installed, but seahorse is not. To install seahorse-plugins open up your Add/Remove Software tool, search for &#8220;seahorse&#8221; (no quotes), mark both for installation (if seahorse is already installed only mark seahorse-plugins), and click Apply to install.</p><p>Once this is install you will need to log out and log back in to apply the changes to Nautilus. After you have logged back in open up Nautilus and right click on a file or folder. You should now see, in the action menu, an entry for Encryption. You can either encrypt a single file or folder. You will, of course, have to already have created your gpg key in order to do this. But don&#8217;t worry, you can create your gpg key from within Seahorse. Upon encrypting a file or folder, the only people that can  see the contents of that file or folder will be those with your encryption key.</p><p><strong>Final thoughts</strong></p><p>There are so many ways to protect your files/folders in Linux. Some of the above methods are much more secure than others, but each method will get you to where you want to be &#8211; safe.</p><p><strong><br
/> </strong></p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/06/27/password-protect-a-folder-in-linux/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Further control of Linux files with ACL</title><link>http://www.ghacks.net/2010/01/28/further-control-of-linux-files-with-acl/</link> <comments>http://www.ghacks.net/2010/01/28/further-control-of-linux-files-with-acl/#comments</comments> <pubDate>Thu, 28 Jan 2010 21:28:33 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[access control]]></category> <category><![CDATA[file permissions]]></category> <category><![CDATA[files]]></category> <category><![CDATA[fstab]]></category> <category><![CDATA[ls]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=22645</guid> <description><![CDATA[If you read my article &#8220;Get to know Linux: File permissions&#8221; you know that it&#8217;s possible, out of the box, to control who can access a file and what they can do with it. This helps to make Linux a fairly secure system. But did you know you can take even further control of that [...]]]></description> <content:encoded><![CDATA[<p>If you read my article &#8220;<a
title="Get to know Linux: File permissions" href="http://www.ghacks.net/2010/01/21/get-to-know-linux-file-permissions/" target="_blank">Get to know Linux: File permissions</a>&#8221; you know that it&#8217;s possible, out of the box, to control who can access a file and what they can do with it. This helps to make Linux a fairly secure system. But did you know you can take even further control of that system with the help of Access Control Lists? Access Control Lists allow you to provide different levels of access to files and folders. Say, for instance, user jlwallen creates a file but doesn&#8217;t want to allow anyone to do anything with this file but he and another user, wookie (even though there are other users that belong to the group jlwallen). ACL can handle this task.</p><p>In this article you will learn how to install and use ACL to further enchance your file permissions on a Linux system.</p><p><span
id="more-22645"></span><strong>Installation</strong></p><p>Let&#8217;s install ACL on a Ubuntu system. Since this is a command line tool, we&#8217;ll do the installation from the command line. And since ACL will be found in the standard repository, you won&#8217;t have to monkey with your <strong>/etc/apt/sources.list</strong> file. From the command line enter the following:</p><p><em>sudo apt-get install acl</em></p><p>Type your user password, hit the Enter key and the install, and the installation will begin and end fairly quickly. You are now ready to start with ACL.</p><p><strong>Using ACL</strong></p><p>Before you use the commands for ACL you actually have to mount your partition such that ACL is available. By default this is not the case. In order to set this you have to edit your <strong>/etc/fstab </strong>file. Open that file up and look for the line that mounts your data partition. In my case, this line is:</p><p>﻿﻿<code>UUID=c7812a34-3ec1-4451-aace-02d122b6c454 /   ext4  errors=remount-ro 0 1</code></p><p>You need to edit this line to look something like:</p><p>﻿﻿<code>UUID=c7812a34-3ec1-4451-aace-02d122b6c454 /   ext4 errors=remount-ro,acl 0 1</code></p><p>After you make this edit, save the file and then either issue the command:</p><p><em>sudo mount -o remount,acl /</em></p><p>or reboot your machine.</p><p>There are two commands you will use for ACL:</p><ul><li>setfacl &#8211; Set file access control list.</li><li>getfacl &#8211; Get file access control list.</li></ul><p>You can probably guess that the first command sets the the ACL and the second lists the ACL for the file.</p><p><strong>Using ACL</strong></p><p>So let&#8217;s say you have the file <strong>test</strong> and you want only two users on your system to be able to read that file, jlwallen and wookie. You want to exclude all users in the group jlwallen as well.  What you want to do is use the <em>setfacl</em> command like so (as the user jlwallen):</p><p><em>setfacl -m u:wookie:rw- test</em></p><p>Now when you run the command:</p><p><em>getfacl test</em></p><p>you will see something like:</p><p><em># file: test</em></p><p><em># owner: jlwallen</em></p><p><em># group: jlwallen</em></p><p><em>user::rw-</em></p><p><em>user:wookie:rw-</em></p><p><em>group::r&#8211;</em></p><p><em>mask::rw-</em></p><p><em>other::r&#8211;</em></p><p>As you can see both users jlwallen and wookie can read and write to the file test, whereas all others can only read the file.</p><p>You can verify that a file has had ACL modifications done to it by using the <em>ls </em>command like so:</p><p><em>ls -l test</em></p><p>which should produce results like:</p><p><em>-rw-rw-r&#8211;+ jlwallen jlwallen</em></p><p>What gives this away is the &#8220;+&#8221; character.</p><p><strong>Final thoughts</strong></p><p>Although this is just a cursory glance as using ACL, it will get you started with gaining even further control of the security of your Linux files. We&#8217;ll revisit ACL later and take the security of Linux files even further.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/01/28/further-control-of-linux-files-with-acl/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Get to know Linux: File permissions</title><link>http://www.ghacks.net/2010/01/21/get-to-know-linux-file-permissions/</link> <comments>http://www.ghacks.net/2010/01/21/get-to-know-linux-file-permissions/#comments</comments> <pubDate>Thu, 21 Jan 2010 17:58:31 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[chmod]]></category> <category><![CDATA[file permissions]]></category> <category><![CDATA[group permission]]></category> <category><![CDATA[nautilus]]></category> <category><![CDATA[user permission]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=22488</guid> <description><![CDATA[Have you ever attempted to do something with a file on a Linux machine and been given the error &#8220;permission denied&#8221;? For some people this isn&#8217;t a problem, either su to the root user or use the sudo command to help you along. For some users, however, this can be very frustrating. Why? When you [...]]]></description> <content:encoded><![CDATA[<p>Have you ever attempted to do something with a file on a Linux machine and been given the error &#8220;permission denied&#8221;? For some people this isn&#8217;t a problem, either su to the root user or use the <em>sudo</em> command to help you along. For some users, however, this can be very frustrating. Why? When you don&#8217;t understand file permissions, using and (especially) administering a Linux system can be a real pain. Even though you can read an extended listing of a file and  see drwxr&#8211;r&#8211;, if you don&#8217;t know what that means (or how to manipulate it) what good is that extended listing? And what good is that file if you can&#8217;t access it (when you need to or should be able to)?</p><p>In this article I will introduce you to Linux file permissions and how to manipulate them. I will show you how to manipulate permissions from both the command line as well as the GNOME gui Nautilus.</p><p><span
id="more-22488"></span><strong>Breaking down the permissions</strong></p><p>When you do a long list (<em>ls -l </em>) in a directory you will see listings like:</p><p><code>drwxr-xr-x  jlwallen  jlwallen  12288  2009-12-22  16:26  Documents</code></p><p>What we want to concentrate on right now is the first bit, <em>drwxr-xr-x</em>. This string of characters lists the full permissions of the file or directory. It is also important to know the next two strings (in this case both are <em>jlwallen</em>) are the user and group associated with the file.</p><p>Let&#8217;s go back to the permissions string. The first character, <em>d</em>, means the listing is a directory. Now, instead of looking at the next portion of the string as a single group, think of it as three groups:</p><ul><li>rwx</li><li>r-x</li><li>r-x</li></ul><p>The first set of three characters in a permissions listing always marks the permissions of the owner of the file (in this case, <em>jlwallen</em>). The letter <em>o</em> is associated with <em>owner. </em>The next set of three marks the permissions of all users that belong to the group associated with the file (in this case, again, it&#8217;s <em>jlwallen</em>). The letter <em>g </em>is associated with <em>group</em>. The final set of three characters marks the permissions of everyone else. The letter <em>u</em> is associated with <em>others.</em></p><p>Now let&#8217;s break down the components of the permission string:</p><ul><li>r &#8211; read permission</li><li>w &#8211; write permission</li><li>x &#8211; executable permission</li></ul><p><strong>Changing permissions</strong></p><p>Let&#8217;s say you have a file, <em>test</em>, that is a script that needs to be executed. The default ownership of this file is:</p><p>-rw-rw&#8212;-</p><p>Now let&#8217;s say you want both the owner (in this case <em>jlwallen</em>) and anyone belonging to the group (in this case <em>jlwallen</em>) to be able to execute this script. Remember, execute is <em>x</em> and you want to give x permission to o and g. To do this you use the <em>chmod </em>command like so:</p><p><em>chmod og+x test</em></p><p>The above command would add executable permission to owner and group. The new listing would look like:</p><p>-rwxrwx&#8212;</p><p>Now both the owner and anyone belonging to the group <em>jlwallen</em> can execute this script.</p><p><strong>The GUI way</strong></p><div
id="attachment_22494" class="wp-caption alignleft" style="width: 273px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/01/test_permissions.png"><img
class="size-full wp-image-22494 " src="http://www.ghacks.net/wp-content/uploads/2010/01/test_permissions.png" alt="" width="263" height="283" /></a><p
class="wp-caption-text">Figure 1</p></div><p>You can change permissions of a file with the help of the Nautilus file manager. Open up the file manager and navigate to where you have the <em>test</em> file saved. Right click the icon of that file (or listing if you are not in icon view mode) and select Permissions. From within this new window click on the Permissions tab (see Figure 1).</p><p>As you can see, changing permissions for this file is just a matter of selecting the necessary entry from the Access drop-down associated with either Owner, Group, or Others. However, you will notice that these drop-downs only have two entries: Read or Read and Write. In the case of our test file we would want to check the &#8220;Allow executing file as program&#8221; checkbox to make this file executable. The only drawback to this method is you can not specify who has execute permissions. If you mark a file executable it will be so for all.</p><div
id="attachment_22495" class="wp-caption alignright" style="width: 315px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/01/kde_permissions.png"><img
class="size-full wp-image-22495" src="http://www.ghacks.net/wp-content/uploads/2010/01/kde_permissions.png" alt="" width="305" height="221" /></a><p
class="wp-caption-text">Figure 2</p></div><p>With the KDE file manager, Dolphin, you can get a bit more fine grain with your permissions. When you right click a file in Dolphin select Properties and then click on the Permissions tab. In this tab is an Advanced Permissions button. Click that and a smaller window will open (see Figure 2) where you can select precisely what each class (owner, group, other) has what permissions. Make your choices and click OK.</p><p><strong>Final thoughts</strong></p><p>Although the GUI tools are helpful for the new users, having real control over file permissions should be handled through the command line. But for those who absolutely do not want to use the command line, there are options for you. You will certainly want to get familiar with permissions. Knowing how to navigate file permissions will save you a lot of time and hassle when using the Linux operating system.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/01/21/get-to-know-linux-file-permissions/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>Windows Integrity Levels for extra security in Windows Vista</title><link>http://www.ghacks.net/2008/03/30/windows-integrity-levels/</link> <comments>http://www.ghacks.net/2008/03/30/windows-integrity-levels/#comments</comments> <pubDate>Sun, 30 Mar 2008 15:43:03 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Operating Systems]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[elevated]]></category> <category><![CDATA[file permissions]]></category> <category><![CDATA[microsoft]]></category> <category><![CDATA[vista security]]></category> <category><![CDATA[windows integrity level]]></category> <category><![CDATA[windows-vista]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=3661</guid> <description><![CDATA[Microsoft build in a system called Windows Integrity Controls into Windows Vista which is basically a label for files with that identify its trustworthiness. What makes them interesting is the fact that they override the visible permissions of a file or folder. Six levels of trust can be assigned to files of the same or a lower permission level. Meaning that a normal user is not able to change the integrity level of a file that he has no permission for.]]></description> <content:encoded><![CDATA[<p>Microsoft build in a system called Windows Integrity Controls into Windows Vista which is basically a label for files with that identify its trustworthiness. What makes them interesting is the fact that they override the visible permissions of a file or folder. Six levels of trust can be assigned to files of the same or a lower permission level. Meaning that a normal user is not able to change the integrity level of a file that he has no permission for.</p><p>The six integrity levels are Trusted Installer, System (operating system processes), High (administrators), Medium, (non-administrators), Low (temporary Internet files) and Untrusted. As you can see even an administrator is not able to change the integrity level of files and folders that belong to Trusted Installers or System.</p><p>A command line tool is available that makes it quite easy to change the integrity level of files and folders. It is called CHML and available at a website <a
href="http://www.minasi.com/vista/chml.htm">that</a> explains the process in detail.</p><p><span
id="more-3661"></span>The command &#8220;chml filename&#8221; displays the integrity level of that file. Modifying files and folders is only possible if changes are made in the Group Policy Editor:</p><ul><li>Open gpedit.msc</li><li>Navigate to Computer Configuration / Windows Settings / Local Policies / User Rights Assignment</li><li>In the right-hand pane, you&#8217;ll see an entry &#8220;Modify an object label;&#8221; open it</li><li>By default, there are no user accounts listing with this privilege.  Add your user account.</li><li>Close the Group Policy Editor</li><li>Log off, then back on to finish getting the new privilege on your logon token</li></ul><p>The basic command to change the integrity level of files or folders in Windows Vista is chml -i:u, l, m, h, or s. Only one letter is obviously selected which stand for Untrusted, Low, Medium, High, or System.</p><p>Three additional options are available. The -nr, -nw and -nx options deny read, write and execute rights.</p><p>I did find the reference to Windows Integrity Levels at the <a
href="http://www.donationcoder.com/Forums/bb/index.php?topic=12838.msg107731#msg107731">Donation Coder forum</a> where Skrommel was kind enough to create an Autohotkey Script that would add the functionality to the right-click menu.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2008/03/30/windows-integrity-levels/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
