<?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; ls</title> <atom:link href="http://www.ghacks.net/tag/ls/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>Fri, 10 Feb 2012 13:29:21 +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>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>YubNub a social internet command line</title><link>http://www.ghacks.net/2007/01/16/yubnub-a-social-internet-command-line/</link> <comments>http://www.ghacks.net/2007/01/16/yubnub-a-social-internet-command-line/#comments</comments> <pubDate>Tue, 16 Jan 2007 17:28:08 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[The Web]]></category> <category><![CDATA[cli]]></category> <category><![CDATA[cmd]]></category> <category><![CDATA[command-line]]></category> <category><![CDATA[internet]]></category> <category><![CDATA[ls]]></category> <category><![CDATA[social-command-line]]></category> <category><![CDATA[yubnub]]></category> <guid
isPermaLink="false">http://www.ghacks.net/2007/01/16/yubnub-a-social-internet-command-line/</guid> <description><![CDATA[The first time I saw the yubnub website I was thinking that no one would need this website at all but after some testing it became clear that it offers an easy way to access many services very fast without depending on bookmarks or links. If you do work with the command line in Windows or Linux you feel right at home, you enter a command and some parameters and yubnub does the rest.]]></description> <content:encoded><![CDATA[<p>The first time I saw the <a
target="_blank" title="yubnub" href="http://yubnub.org/">yubnub</a> website I was thinking that no one would need this website at all but after some testing it became clear that it offers an easy way to access many services very fast without depending on bookmarks or links. If you do work with the command line in Windows or Linux you feel right at home, you enter a command and some parameters and yubnub does the rest.</p><p>A <a
target="_blank" title="yubnub commands" href="http://yubnub.org/kernel/ls?args=">list of commands</a> is accessible by entering ls into the form field. I think an example will illustrate the strength of yubnub; wp ghacks searches wikipedia for the term ghacks, gim ghacks searches google images for ghacks. y or g searches yahoo or google for a selected search term. That is not all of course. AM title searches amazon for the title that you enter, random 1000 returns a random number between 1 and 1000.</p><p><span
id="more-1107"></span>A good selection of commands that should be useful for most users are Jeremy&#8217;s Picks which displays a list of about 100 commands. It is possible to create your own commands. You do select a command string that is not used yet and select a url that uses variables to perform searches or operations. One example would be <span
class="hint"> <a
title="Linkification: http://images.google.com/images?q=%s" class="linkification-ext" href="http://images.google.com/images?q=%s">http://images.google.com/images?q=%s</a> which is simply the search string for google images. </span></p><p><span
class="hint">The search string that is entered is substituted with %s in this example. It is possible to create more advanced searches  with more than one parameters.</span></p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2007/01/16/yubnub-a-social-internet-command-line/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> </channel> </rss>
