<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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/"
	>

<channel>
	<title>permissions &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://wordpress.com/tag/permissions/</link>
	<description>Feed of posts on WordPress.com tagged "permissions"</description>
	<pubDate>Wed, 20 Aug 2008 18:44:24 +0000</pubDate>

	<generator>http://wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[How to determine effective permission of an SQL Server 2005 object?]]></title>
<link>http://imak47.wordpress.com/?p=81</link>
<pubDate>Tue, 12 Aug 2008 13:56:01 +0000</pubDate>
<dc:creator>imak47</dc:creator>
<guid>http://imak47.wordpress.com/?p=81</guid>
<description><![CDATA[You can find out the effective permissions on an SQL Server 2005 object by using a function called f]]></description>
<content:encoded><![CDATA[<p><span style="color:#0000ff;"><span style="font-size:x-small;color:#000000;">You can find out the effective permissions on an SQL Server 2005 object by using a function called <strong>fn_my_permissions. </strong>Here's what's written in the books online.</span></span></p>
<h2>fn_my_permissions </h2>
<p>Returns a list of the permissions effectively granted to the principal on a securable.</p>
<h2>Syntax</h2>
<pre><strong>fn_my_permissions</strong> <strong>(</strong> <em>securable</em> <strong>,</strong> <strong>'</strong><em>securable_class</em><strong>')</strong></pre>
<h2>Arguments</h2>
<dl>
<dt><em>securable</em> </dt>
<dd>Is the name of the securable. If the securable is the server or a database, this value should be set to NULL. <em>securable</em> is a scalar expression of type <strong>sysname</strong>. <em>securable</em> can be a multipart name.</p>
</dd>
</dl>
<dl>
<dt><strong>'</strong><em>securable_class</em><strong>'</strong> </dt>
<dd>Is the name of the class of securable for which permissions are listed. <em>securable_class</em> is a <strong>sysname</strong>. <em>securable_class </em>must be one of the following: APPLICATION ROLE, ASSEMBLY, ASYMMETRIC KEY, CERTIFICATE, CONTRACT, DATABASE, ENDPOINT, FULLTEXT CATALOG, LOGIN, MESSAGE TYPE, OBJECT, REMOTE SERVICE BINDING, ROLE, ROUTE, SCHEMA, SERVER, SERVICE, SYMMETRIC KEY, TYPE, USER, XML SCHEMA COLLECTION.</p>
</dd>
</dl>
<p> </p>
<p>I used it like this:-</p>
<p><span style="color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">USE <span style="color:#000000;">myDatabase</span></span></span></p>
<p><span style="color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">Select</span></span> <span style="color:#808080;">*</span><span style="font-size:normal;"> </span><span style="color:#0000ff;">from</span><span style="font-size:normal;"> fn_my_permissions </span><span style="color:#808080;">(</span><span style="color:#ff0000;">'my_storedProc</span><span style="font-size:x-small;color:#808080;">,</span><span style="font-size:x-small;"> </span><span style="color:#ff0000;">'OBJECT'</span><span style="color:#808080;">)</span></p>
<p><span style="color:#808080;"><span style="color:#000000;">also remember that this is a table valued function so you can't use the EXEC Statement with this</span></span></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[iPod Mail.app problem and solution]]></title>
<link>http://basshead.wordpress.com/?p=822</link>
<pubDate>Sat, 09 Aug 2008 21:25:08 +0000</pubDate>
<dc:creator>basshead</dc:creator>
<guid>http://basshead.wordpress.com/?p=822</guid>
<description><![CDATA[While the upgrade to 2.0.1 firmware on my iPod Touch went smoothly and appeared to be working fine, ]]></description>
<content:encoded><![CDATA[<p style="text-align:left;">While the upgrade to 2.0.1 firmware on my iPod Touch went smoothly and appeared to be working fine, I later discovered a problem with the Mail.app. Since upgrading the firmware erases the installed OS, it also removes the mail messages. As I use Gmail with IMAP access these messages are stored in the Gmail account so should be synchronised when accessing the Mail application. What was happening was two attempts at downloading the mail messages then Mail.app quit.<!--more--></p>
<p style="text-align:center;"><a href="http://basshead.files.wordpress.com/2008/08/itunes_mail_sync_message.jpg"><img class="size-full wp-image-823 aligncenter" style="border:1px solid black;" src="http://basshead.wordpress.com/files/2008/08/itunes_mail_sync_message.jpg" alt="" width="478" height="151" /></a></p>
<p>I tried deleting the mail account on the iPod, but this wouldn't budge. iTunes returned an error message that the iPod cancelled the sync when trying to copy the mail account from the Mac to iPod (see above). This looked like a permissions problem to me, so I connected to the iPod using SSH. You need to install OpenSSH from Cydia on a jailbroken device for this to work.</p>
<p>At first trying to connect returned a warning message as the secure key had changed (the firmware had been updated so I suspect this was the cause). The recommendation was to add the new key to the <strong>Users/<em>Your_Account_name</em>/.ssh/known_hosts</strong> file. I use the excellent <a title="get Forklift" href="http://www.binarynights.com/" target="_blank">Forklift</a> for quickly getting to hidden files, and this quickly revealed that there was only one key in the file. I renamed it to <strong>known_hosts_old </strong>and this forced the generation of a new secure key in a new <strong>known_hosts</strong> file. Once logging in via SSH works it's easy to use an FTP program (I use <a title="get Fetch" href="http://fetchsoftworks.com/" target="_blank">Fetch</a>) to browse the iPod or iPhone's directory tree using the SFTP protocol.</p>
<p>The directory that I wanted was <strong>/private/var/mobile/Library/Mail</strong>. Permissions on this were set to 755, and changing this to 777 (allowing write for the group mobile) resolved the problem. as soon as this was changed the Gmail account could be deleted, restored by iTunes and messages downloaded. I'm not sure if this is a PwnageTool bug or a 2.0.1 firmware problem, so I will have a search to see if anyone else has the same issue.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Reinstalling VMWare Fusion]]></title>
<link>http://misgatos.wordpress.com/?p=187</link>
<pubDate>Fri, 08 Aug 2008 20:23:09 +0000</pubDate>
<dc:creator>misgatos</dc:creator>
<guid>http://misgatos.wordpress.com/?p=187</guid>
<description><![CDATA[With the Bar done, dead and over, I decided to reinstall VMWare fusion&#8230; and quickly ran into a]]></description>
<content:encoded><![CDATA[<p>With the Bar done, dead and over, I decided to reinstall VMWare fusion... and quickly ran into a problem. VMWare kept saying it couldn't authenticate my Boot Camp installation, and suggested that my permissions were incorrectly set.</p>
<p>A quick knowledge base search led to the <a href="http://communities.vmware.com/thread/151578?tstart=15">solution</a>:</p>
<blockquote><p>The fix is to re-create the Boot Camp virtual machine. To do this, delete the folder "~/Library/Application Support/VMware Fusion/Virtual Machines" where the tilde represents your home folder. Then restart Fusion and try your Boot Camp partition again.</p>
<p>If the problem persists, could you upload the file "vmware.log" that you'll find in the ~/Library/...blah... folder?</p>
<p>It's possible but pretty unlikely that you have an actual problem with your hard disk. Running a disk scan from within Boot Camp Vista could tell you.</p></blockquote>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Automatically update Ubuntu Hardy Heron server with a ruby script]]></title>
<link>http://lani78.wordpress.com/?p=10</link>
<pubDate>Wed, 06 Aug 2008 20:58:18 +0000</pubDate>
<dc:creator>lani78</dc:creator>
<guid>http://lani78.wordpress.com/?p=10</guid>
<description><![CDATA[Needs
I wanted my newly installed Ubuntu server to check for updates every day and then automaticall]]></description>
<content:encoded><![CDATA[<p><strong>Needs</strong></p>
<p>I wanted my newly installed <a href="http://www.ubuntu.com/products/WhatIsUbuntu/serveredition" target="_blank">Ubuntu server</a> to check for updates every day and then automatically update itself if there were any new updates found. I search the web trying to find an existing solution that would work out of the box for me. But I am of course very picky of what I want, so I could not found anything that met all my needs:</p>
<ul>
<li>Automatically check for updates every day.</li>
<li>Automatically download and install any updates that were found.</li>
<li>Report both success and failures to my e-mail and show me in the subject if the update failed or succeeded.</li>
<li>Use an external smtp-server with authentication.</li>
</ul>
<p>As I am also trying to learn the <a href="http://www.ruby-lang.org/en/" target="_blank">Ruby programming language,</a> besides from Linux, I decided to use it to create my update script.</p>
<p><strong>Installing Ruby</strong></p>
<p>Ruby is not installed by default on Hardy Heron but can easily be installed from the Ubuntu repositories:</p>
<p><code>sudo apt-get install ruby</code></p>
<p><strong>The Script</strong></p>
<pre><font face="courier new">
#!/usr/bin/ruby
##### Information ##############################################
# DESC:	This is an update script for Ubuntu Hardy Heron 8.04.
#	It will fetch any availible updates with aptitude and
#	install them. An e-mail with the result is then sent
#	using the configured smtp-server.
# AUTH:	Niklas "Lani" Lagergren
# REV.:	1.0 2008-08-06
#	* Initial release.
#
# COPY: No copyright claimed. No rights reserved. No warranty
#       given.
################################################################</code>

##### Configurable mail server options: ########################
# These parameters needs to be changed to match your enviorment
################################################################
@mail_server = 'your.mail-server.com'
@mail_port   = 25
@mail_domain = 'your.mail-domain.com'
@mail_user   = 'username'
@mail_pass   = 'password'
@mail_from   = 'from@your.mail-domain.com'
@mail_to     = 'to@somewhere.nil'

require 'net/smtp'

# Format date according to rfc 2822, example:
# Fri, 11 Jul 2008 09:13:20 +0200
def time_to_rfc2822(time)
  time.strftime('%a, %d %b %Y %H:%M:%S ') +
    if time.utc?
      '-0000'
    else
      off = time.utc_offset
    sign = off &#60; 0 ? '-' : '+'
    format('%s%02d%02d', sign, *(off.abs / 60).divmod(60))
  end
end

# Send e-mail according to the configuration in the instance variables.
def send_mail(subject, body)
  msg = "From: Ubuntu Server &#60;#{@mail_from}&#62;\r\n" +
    "To: Server Administrator &#60;#{@mail_to}&#62;\r\n" +
    "Subject: #{subject}\r\n" +
    "Date: #{time_to_rfc2822(Time.new)}\r\n" +
    "Message-Id: &#60;#{Time.new}@#{@mail_domain}&#62;\r\n" +
    "\r\n#{body}\r\n"

    Net::SMTP.start(@mail_server, @mail_port, @mail_domain, @mail_user,
      @mail_pass) do &#124;smtp&#124;
      smtp.send_message msg, @mail_from, @mail_to
    end
end

# Run aptitude commands to update the system and capture it's output.
puts 'Running aptitude...'
body = `aptitude update 2&#62;&#38;1`
body &#60;&#60; `aptitude dist-upgrade -y 2&#62;&#38;1` if $? == 0
body &#60;&#60; `aptitude clean 2&#62;&#38;1` if $? == 0

subject = "#{@mail_domain} update #{$? == 0 ? 'succeded' : 'FAILED'} #{Time.new}"

puts 'Sending mail...'
send_mail subject, body
puts 'Mail sent.'
</font>
</pre>
<p><strong>Set the script to run every day</strong><br />
Obviously you need to change the mail settings in the script as the comment suggest. Then save the script, I named it <em>"autoupdate"</em>. To run the script on a daily basis copy it to <em>"/etc/cron.daily"</em>. And don't forget to set execute permissions on the script (and as I have the password stored in the file I also removed all <a href="http://www.zzee.com/solutions/linux-permissions.shtml" target="_blank">permissions</a> from <em>"others"</em>:<br />
<code><br />
sudo chmod 770 autoupdate<br />
</code></p>
<p><strong>Test the script</strong><br />
The easiest way to test the script is of course to just execute it:<br />
<code>sudo ./autoupdate</code></p>
<p>If you really want to make sure that it will execute when executed in the same way as when execute by the cron job you could run:</p>
<p><code>sudo run-parts /etc/cron.daily</code></p>
<p>Note that this will execute all scripts in the cron.daily folder. Another side note is that it probably won't  run with the same permissions as when executed from the cron job, and it will probably take a long time to execute.</p>
<p>Now check your mailbox or the log files for the result:</p>
<p><code>cat /var/log/aptitude</code></p>
<p>Hopefully someone out there can benefit from this script as it is, or if you're like me; tweak it to suite your own needs ;)</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Granularity of Permissions]]></title>
<link>http://pyrtl.wordpress.com/?p=15</link>
<pubDate>Sun, 03 Aug 2008 13:54:00 +0000</pubDate>
<dc:creator>gvwilson</dc:creator>
<guid>http://pyrtl.wordpress.com/?p=15</guid>
<description><![CDATA[Excerpted from Greg Wilson&#8217;s blog:

A user&#8217;s membership in a project is represented by a]]></description>
<content:encoded><![CDATA[<p>Excerpted from <a href="http://pyre.third-bit.com/blog/archives/1708.html">Greg Wilson's blog</a>:</p>
<ol>
<li>A user's membership in a project is represented by a triple (project, user, role), where a role is a set of permissions defining what can be done. The simplest model for permissions would be to define READ and WRITE for each component, e.g., WIKI_READ ("can see the wiki, but not modify it") and WIKI_WRITE ("can create new pages, or update/delete existing pages").</li>
<li>Tickets mess this up.  Open source projects often allow non-developers to file tickets (in fact, they encourage it). The only way to support this if the only permissions available are TICKET_READ and TICKET_WRITE is to give anonymous users (i.e., people who haven't logged in) a role that contains TICKET_WRITE. However, that would also allow them to modify or delete other people's tickets, which is clearly a Bad Thing.</li>
<li>OK, so what about TICKET_READ, TICKET_WRITE_ALL, and TICKET_WRITE_OWN? Easy enough to create three permissions---but it would complicate the processing logic and conceptual model.</li>
<li>Here's another wrinkle. In every ticketing system I've ever worked with, tickets have a one-line "title" or "summary" field, then a longer "description" field. For small projects (our target market), most tickets only need the former, so I've been thinking about taking the latter out of the tickets themselves, and providing an easy way to link to specially-named wiki pages (e.g., ticket #123 automatically links to a page called Ticket123, but only if someone has bothered to create it). This neatly supports the common situation in which a "ticket" turns into something more akin to a BBS discussion, where lots of people post back and forth about the best way to solve a problem. But how would the permission system handle this? Would the special logic to handle TICKET_WRITE_OWN propagate to the wiki, so that if a page was associated with a ticket, and that ticket belong to Fred, and Fred's role in the project included either TICKET_WRITE_ALL or TICKET_WRITE_OWN, then Fred would be allowed to modify the wiki page?</li>
</ol>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Places]]></title>
<link>http://pawsinsd.wordpress.com/?p=400</link>
<pubDate>Sat, 02 Aug 2008 09:52:42 +0000</pubDate>
<dc:creator>pawsinsd</dc:creator>
<guid>http://pawsinsd.wordpress.com/?p=400</guid>
<description><![CDATA[Every place I go has food memories.  I remember things from my childhood, especially food created by]]></description>
<content:encoded><![CDATA[<p>Every place I go has food memories.  I remember things from my childhood, especially food created by the people to whom I dedicated this blog.</p>
<p>I'd like to take you on some travels that have enhanced my appreciation for, and knowledge of food, its preparation and enjoyment.</p>
<p>To do this, I'll have to make some outlines and give you cookbook references if I can't get permission to post a recipe.  I'll give a name to the series (three parts for now) and hopefully start in the next week or so.</p>
<p>For now you'll have to settle for a non-recipe and story.</p>
<p>My great-aunt Anna died when I was young.  I've always had cool aunts.  And uncles, sorry godfather!  My parents didn't think we were old enough for a funeral so went themselves, a 10-hour drive each way.  Our regular sitters were college students but we needed a live-in.</p>
<p>They hired the most awful woman who broke our Scandinavian chairs from sitting in them and when I came home showing a 98% grade on a test just dismissed me.  But the worst sin follows.</p>
<p>Mom followed Dad's mother's recipe for spinach that calls for a special roux that I (yes I can make a roux) don't know even today.  This woman made us spinach and I couldn't eat it.  I said, at age seven, "where's the roux?"  Yeah, I ate it because she probably would have thrown me across the room if I didn't.  But at nearly fifty, have I forgotten the spinach incident?</p>
<p>While we were good kids and didn't put dead rodents in her bed or anything, I'm sure her brief stay was anything but pleasant.  I can sleep well at night knowing that mean nannies will get their due.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Msql Table Maintenance and Repair Guide]]></title>
<link>http://repairvuwu.wordpress.com/?p=3</link>
<pubDate>Fri, 01 Aug 2008 08:48:11 +0000</pubDate>
<dc:creator>repairvuwu</dc:creator>
<guid>http://repairvuwu.wordpress.com/?p=3</guid>
<description><![CDATA[mysqlcheck  a table maintenance and repair program mysqlcheck must be used when the mysqld server is]]></description>
<content:encoded><![CDATA[<p><strong>mysqlcheck  a table maintenance and repair program mysqlcheck must be used when the mysqld server is running whereas myisamchk (similar in function to mysqlcheck) should be used when it is not The benefit of using mysqlcheck is that<br />
<span style='text-align:center; display: block;'><object width='425' height='350'><param name='movie' value='http://www.youtube.com/v/cgUNne0xOKE'></param><param name='wmode' value='transparent'></param><embed src='http://www.youtube.com/v/cgUNne0xOKE&rel=0' type='application/x-shockwave-flash' wmode='transparent' width='425' height='350'></embed></object></span></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Recipe H-e-double toothpicks]]></title>
<link>http://pawsinsd.wordpress.com/?p=326</link>
<pubDate>Mon, 28 Jul 2008 06:21:00 +0000</pubDate>
<dc:creator>pawsinsd</dc:creator>
<guid>http://pawsinsd.wordpress.com/?p=326</guid>
<description><![CDATA[A fellow blogger has run afoul of a myopic mini-dynasty by modifying a recipe on her blog.  I&#8217;]]></description>
<content:encoded><![CDATA[<p>A fellow blogger has run afoul of a myopic mini-dynasty by modifying a recipe on her blog.  I'm sure she would agree that when each of us reads a recipe we see things a kid doesn't like so substitute, and make other changes.  I do try to a do a new recipe as written, taste the results and make changes according to my tastes.</p>
<p>Food bloggers are being hampered by huge publishing firms from printing any of their recipes (denying  permission and not allowing any modifications to their recipes because they are "perfect.")</p>
<p>No-one was looking for the 18 year-old nut recipe I gave you yesterday but they still wouldn't allow me to print it with appropriate credit to the sources.  Don't you think if I credit the magazine, article, author and publisher that it would help magazine sales rather than hurt them?</p>
<p>OK, I'm not a Michelin-starred chef (if I was one why would I be asking for a recipe) but they'd give it to me.  But serious cooking bloggers are out there and are being threatened by huge corporations because we're raising interest in their products via a mechanism that their lawyers don't understand.</p>
<p>It's too bad because cooking is a creative enterprise and if we bloggers find a new twist or change things about you'll sue us.  That's the bad side of patent law.  The good side is our side and we will make that known in due time.</p>
<p>It looks as if the magazine industry is going the same way as movies fighting television.  The new technology (witness iPods et al) is going to win out and your ways are going to have to change to deal with it.  Bloggers are here to stay, at least for the next XX years.  Dee</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Recursively chmod only directories or files]]></title>
<link>http://rainsoftletters.wordpress.com/?p=37</link>
<pubDate>Tue, 22 Jul 2008 19:14:54 +0000</pubDate>
<dc:creator>RainSoft Letters</dc:creator>
<guid>http://rainsoftletters.wordpress.com/?p=37</guid>
<description><![CDATA[Ever come across the problem of needing to chmod a directory and its many, many, sub-directories, bu]]></description>
<content:encoded><![CDATA[<p>Ever come across the problem of needing to chmod a directory and its many, many, sub-directories, but you don't want to touch any of the files?  Maybe it's the exact opposite, or you need to recursively change the permissions on only files with a specific extension.  Well I had a similar problem with one of the <a title="RainSoft" href="http://www.rainsoft-letters.com/" target="_blank">RainSoft</a><a title="RainSoft Letters" href="http://www.rainsoft-letters.com/" target="_blank"> Letters</a> server backups.</p>
<p>Luckily, I came across a post on <a href="http://movabletripe.com/">movabletripe</a> that dealt with the problem, as well as having some additional <a href="http://en.wikipedia.org/wiki/Find/">find</a> snippets in the comments.  The original article is here: <a href="http://movabletripe.com/archive/recursively-chmod-directories-only/">Recursively chmod directories only</a>.</p>
<p><code>find . -type d -exec chmod 755 {} \;</code></p>
<ul>
<li>This will "<code>find</code>" all directories, starting at "<code>.</code>", and chmod them to <code>755</code>.</li>
</ul>
<p><code>find . -type f -exec chmod 644 {} \;</code></p>
<ul>
<li>This snippet does the opposite and finds only files.  The difference (beside the file permissions) is the "<code>-type f</code>", "<code>f</code>" specifies files and "<code>d</code>" directories.</li>
</ul>
<p>
If you check the comments, you'll find a few additional snippets:</p>
<p><code>find . -type f -name '*.htm*' -exec chmod 644 {} \;</code></p>
<ul>
<li>This lets you "<code>find</code>" files ("<code>-type f</code>") with a specific extension ("<code>-name '*.htm*'</code>") and chmod them with your desired permission ("<code>-exec chmod 644 {}</code>").</li>
</ul>
<p><code>chmod -R o+rX</code></p>
<ul>
<li>This snippet will recursively chmod "other" ("<code>o</code>") permissions with read/eXecutable ("<code>+rX</code>"), and the capital X ensures that directories and files set (user/group permissions) to executable will be properly modified, while ignoring regular (non-executable) files.</li>
</ul>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Problems with Apache and .htaccess on a HFS+ partition]]></title>
<link>http://slackrw.wordpress.com/?p=28</link>
<pubDate>Sat, 28 Jun 2008 18:01:10 +0000</pubDate>
<dc:creator>ruiwen</dc:creator>
<guid>http://slackrw.wordpress.com/?p=28</guid>
<description><![CDATA[Ran across this nasty problem today.
I recently set up a LAMP environment on my laptop, intending to]]></description>
<content:encoded><![CDATA[<p>Ran across this nasty problem today.</p>
<p>I recently set up a LAMP environment on my laptop, intending to do local development for one of our sites.</p>
<p>I did the usual setup of Apache VHosts and all.. only to find that the site had decided to stopped working. This was pretty strange since I'd just checked out a fresh copy from SVN, and the working copy on the dev server was.. well.. <em>working</em>.</p>
<p>Delving through the logs, I saw Apache trying to do something seemingly strange. It was trying to access files as if they were directories, looking into each of them for <tt>.htaccess</tt> files.</p>
<p>Like this:</p>
<pre>[Sat Jun 28 17:14:36 2008] [crit] [client 127.0.0.1] (13)Permission denied: /home/ruiwen/Projects/app/webroot/favicon.ico/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
</pre>
<p>Last I checked, favicon.ico wasn't a directory.</p>
<p>Some Googling turned up <a href="http://wiki.apache.org/httpd/PcfgOpenfile">this page</a>, which hinted that this behaviour stemmed from the fact the HFS+ might have been presenting the files as directories.</p>
<blockquote><p>In some cases, this error can also be caused by special file-systems that return unexpected errors on attempted directory access. For example, some file-systems allow files to be treated as directories in certain cases. If <tt>httpd</tt> believes that a file is actually a directory, it will try to look inside for an <tt>.htaccess</tt> file. If it gets a permission denied error in return, it will deny access. This type of situation is usually a faulty file-system behavior and cannot be fixed within Apache. In this case your only choice is to turn off <tt>.htaccess</tt> processing as in the first solution above.</p></blockquote>
<p>Turning off .htaccess processing wasn't exactly ideal since the site needed the functionality.</p>
<p>However, setting more relaxed permissions on the site directory as recommended in the second solution on the page seemed to work.</p>
<p>Currently my permissions for the files are</p>
<pre>-rwxrwxr-x 1 ruiwen www-data 3322 2008-06-28 16:39 index.php</pre>
<p>This seems to work fine for now. Not sure why the relaxed permissions helped the problem though, and will be glad for any insight into this.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[On Gay Modern Love: Andrea Neighbours Not Very Happy About Parody]]></title>
<link>http://thegayrecluse.wordpress.com/?p=1519</link>
<pubDate>Fri, 27 Jun 2008 01:46:52 +0000</pubDate>
<dc:creator>The Gay Recluse</dc:creator>
<guid>http://thegayrecluse.wordpress.com/?p=1519</guid>
<description><![CDATA[In which The Gay Recluse provides a postscript to last week&#8217;s Gay Modern Love, the weekly feat]]></description>
<content:encoded><![CDATA[<p><em>In which The Gay Recluse provides a postscript to <a href="http://thegayrecluse.com/2008/06/21/on-gay-modern-love-how-my-partner-won-back-my-vote/" target="_blank">last week's Gay Modern Love</a>, the weekly feature in which he parodies Modern Love, the column in The Times in which openly gay writers almost never appear and even less frequently write about romantic love. (For our quantitative analysis, click <a href="http://thegayrecluse.com/2008/06/21/on-the-search-for-gay-modern-love-june-21-2001-summer-nap-edition/" target="_blank">here</a>.) </em></p>
<p>So it turns out that unlike <a href="http://thegayrecluse.com/2008/03/16/on-gay-modern-love-kayla-rachlin-small-responds-and-transcends/" target="_blank">Kayla Rachlin Small</a>, who loved our riff on her Modern Love column (and no coincidence wrote one of the most moving columns ever), not every author is so enamored of our efforts to call attention to the plight of Gay Modern Love in the Times.</p>
<p>Today, for example, we received this note from Andrea Neighbours, the author of last week's essay:</p>
<div id="1f13" class="ArwC7c ckChnd">
<div>
<div style="padding-left:30px;">Hey there,</div>
<div style="padding-left:30px;">I see you've parodied my Modern Love essay from last week's New York Times (<span style="color:#0099cc;">On Gay Modern Love: How My Partner Won Back My Vote)</span>.  Would you kindly remove it?  Or at least remove my name and make clear this is a parody of an essay you lifted from the Times without permission.</div>
<div style="padding-left:30px;">Thank you.</div>
<div style="padding-left:30px;">Best,</div>
<div style="padding-left:30px;">Andrea Neighbours</div>
<div>Hey Andrea, no probs. We couldn't have said it any better ourselves, so <a href="http://thegayrecluse.com/2008/06/21/on-gay-modern-love-how-my-partner-won-back-my-vote/" target="_blank">consider it done</a>. Sincerely yours,</div>
<div>The Gay Recluse</div>
<div>
<p><img src="http://thegayrecluse.files.wordpress.com/2008/01/imgp32752.jpg?w=356&#38;h=221&#38;h=221" alt="" width="356" height="221" /></div>
</div>
</div>
<p><a href="http://thegayrecluse.com/2008/03/16/on-gay-modern-love-kayla-rachlin-small-responds-and-transcends/" target="_blank"><br />
</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Dokeos, new course, error about group permissions]]></title>
<link>http://dokeoslead.wordpress.com/?p=101</link>
<pubDate>Wed, 25 Jun 2008 02:52:03 +0000</pubDate>
<dc:creator>ywarnier</dc:creator>
<guid>http://dokeoslead.wordpress.com/?p=101</guid>
<description><![CDATA[There is a common problem appearing when installing a new Dokeos portal that I have seen a lot recen]]></description>
<content:encoded><![CDATA[<p>There is a common problem appearing when installing a new Dokeos portal that I have seen a lot recently, so I thought I'd share the details here.</p>
<h2>The problem</h2>
<p>When installing Dokeos on a cPanel-kind-of-hosting, it might happen that you complete the installation, but when you want to enter a newly-created course, an ugly error appears. Something of the likes of:</p>
<blockquote><p>Internal Server Error</p></blockquote>
<p>or, if you are lucky</p>
<blockquote><p>/.../courses/COURSECODE/index.php cannot be displayed because it is writable by the group.</p></blockquote>
<p>Either way, those two error message precisely when the URL of your browser shows <strong>http://your-domain-name/courses/YOURCOURSECODE/index.php</strong> mean that you have a "secured" version of Linux.</p>
<p>This implies that for any PHP script that you want to execute, this message will appear if the script is writable by any other user than the owner of the file.</p>
<p>In a cPanel system, you will see that this file (and possibly the directory it's in) have write permissions for the group.</p>
<h2>The permissions syntax</h2>
<p>I'm reviewing basic stuff here, so if you know about UNIX permissions or just don't want to know, just skip to the next section.</p>
<p>This is represented by the permissions indicator</p>
<p>-rwxrwxr--</p>
<p>which can be translated as: the owner can <strong>r</strong>ead, <strong>w</strong>rite and e<strong>x</strong>ecute this script, the owner *group* can <strong>r</strong>ead, <strong>w</strong>rite and e<strong>x</strong>ecute this script, and all other users can <strong>r</strong>ead the script, but not write or execute it.</p>
<p>The <strong>w</strong>rite permission gives you the right to edit the file, but you need a <strong>w</strong>rite permission on the containing *folder* to actually create or remove this file.</p>
<p>Anyway, so the risk is that, by letting too many people access this script, it could be used (and modified) by a cracker (an evil hacker) to execute his code instead of yours on your server.</p>
<h2>Fixing the problem now on the server</h2>
<p>Now the quick fix is to read carefully the error message and change the permissions accordingly. The server tells us that this script cannot be opened because it is writable by the group. So all we need to do is remove the write permission on this file. Just click on whatever option allows you to change the permissions on that cPanel and remove the <strong>w</strong>rite permission for the group.</p>
<p>This should result in your file's new permissions to look like this:</p>
<blockquote><p>-rwxr--r--</p></blockquote>
<p>If the server bothers you with write permissions about the directory, you need to set the directory's permissions to</p>
<blockquote><p>- rwxr-xr-x</p></blockquote>
<p>Execution permissions are needed to read inside this directory (and get to index.php).</p>
<p>This should solve your problem for this course. Now you want to avoid doing that for all courses to come, don't you? Read on...</p>
<h2>Fixing the problem for the future from inside Dokeos</h2>
<p>Since Dokeos 1.8.4 (or a little before that), we added a few settings inside the database that lets you mention what type of permissions you want new files and directories to use. Well, this is precisely one case for which we did that.</p>
<p>You want to head towards your "Portal Administration" tab, "Platform" section, "Dokeos configuration settings" link, then "Security", then the "Permissions for new directories" and "Permissions for new files" settings. By default, these are set to 0777 and 0666. Considering you want the groups not to have write permissions, and considering 0777 is representing rwxrwxrwx and 0666 is representing rw-rw-rw-, you just want to change these to 0555 and 0444 respectively.</p>
<p>That's it, you can now create a new course without having to worry about files permissions!</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[The modify permission]]></title>
<link>http://greeneconcept.wordpress.com/?p=79</link>
<pubDate>Sat, 21 Jun 2008 07:58:16 +0000</pubDate>
<dc:creator>Ivanova Shostakovich</dc:creator>
<guid>http://greeneconcept.wordpress.com/?p=79</guid>
<description><![CDATA[&nbsp;&nbsp; A recent, and very helpful comment from Thaumata Strangelove has prompted me to write a]]></description>
<content:encoded><![CDATA[<p>&#160;&#160; A recent, and very helpful comment from Thaumata Strangelove has prompted me to write about our permissions philosophy.<br />
&#160;&#160; We have made our furniture so that customers can modify it.<br />
&#160;&#160; GREENE concept makes no-copy versions and no-transfer versions of our products, everything about them is modifiable except for their scripts. This way an experimenting owner cannot accidentally break the scripts. But they can add a tint to individual components or even replace the textures with ones of their own making.<br />
&#160;&#160; While it is true that no mod scripts cannot be edited or viewed by their owners, and thus they cannot be turned off individually, it is possible, since the customer can modify the whole product, for them to turn off all scripts running in the product using the tools menu while in edit mode.<br />
The customer who wants to, may turn off the existing scripts and add their own scripts, and add their own animations if they are so inclined.<br />
&#160;&#160; We will generally advise against modifying a no copy item extensively.</p>
<p>&#160;&#160; Thanks for reading.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Sample Copyright License Agreement (For Text and Written Works)]]></title>
<link>http://moviedistributionfacts.wordpress.com/?p=70</link>
<pubDate>Fri, 20 Jun 2008 09:39:51 +0000</pubDate>
<dc:creator>moviedistributionfacts</dc:creator>
<guid>http://moviedistributionfacts.wordpress.com/?p=70</guid>
<description><![CDATA[                                  
Below is a sample copyright license agreement for text and writte]]></description>
<content:encoded><![CDATA[<p>  <img src="http://beltmastersdirect.com/hand.jpg" alt="" />                                </p>
<p>Below is a sample copyright license agreement for text and written work. if you are the author, you representative agent or publishing company will send this to the filmmaker/licensee if the license is available for use in a movie in adaptation or for a print run of so many books to sell. </p>
<p>Conversely, if you are looking for the rights to works, you may find the licensor of the work and call or email if the rights are available and they agree on terms, they will send you a copyright license agreement like this below. Please reply for any questions to the post or at moviedistributionfacts@gmail.com</p>
<p><em>  <strong>Sample Text Permission and Copyright Agreement</strong></em></p>
<p>___________________ ("Licensor") is the owner of rights for certain textual material defined below (the "Selection"). _____________________("Licensee") wants to acquire the right to use the Selection as specified in this agreement (the "Agreement").</p>
<p>Licensor Information<br />
Title of Text (the "Selection"): ________________________<br />
Author: ____________________________<br />
Source publication (or product from which it came): _____________________________<br />
If from a periodical, the ISSN, volume, issue and date. If from a book, the ISBN: __________________________<br />
If from the Internet, the entire URL: __________________________<br />
Number of pages or actual page numbers to be used: _____________________________</p>
<p>Licensee Publication Information<br />
The Selection will appear in the following publication(s) (the "Work"): _____________<br />
(check if applicable and fill in blanks)<br />
 [   ]    book-- title: ______________________________<br />
 [   ]    periodical-- title: _____________________________________<br />
 [   ]    event handout-- title of event: _________________________________________<br />
 [   ]    website-- URL: ___________________________________<br />
 [   ]    diskette-- title: ___________________________________<br />
Name of publisher or sponsor: ___________________________________<br />
Author(s): _____________________________________<br />
Estimated date(s) of publication or posting: ________________________________<br />
Estimated number of copies to be printed or produced (if a book, the estimated first print run): __________________<br />
If for sale, the price: $_____________________<br />
If copies are free to attendees of a program, cost of program: ______________________<br />
If a Website, indicate the average number of visitors per month: ____________________</p>
<p>Grant of Rights<br />
Licensor grants to Licensee and Licensee's successors and assigns, the:<br />
(select one)<br />
 [   ]    nonexclusive<br />
 [   ]    exclusive<br />
right to reproduce and distribute the Selection in:<br />
(select all that apply)<br />
 [   ]    the current edition of the Work.<br />
 [   ]    all editions of the Work.<br />
 [   ]    all foreign language versions of the Work.<br />
 [   ]    all derivative versions of the Work.<br />
 [   ]    in all media now known or later devised.<br />
 [   ]    in promotional materials published and distributed in conjunction with the Work.<br />
 [   ]    other rights __________________________________</p>
<p>Territory<br />
The rights granted under this Agreement shall be for __________________ (the "Territory").</p>
<p>Fees<br />
Licensee shall pay Licensor as follows:<br />
(select one and fill in appropriate blanks)<br />
 [   ]    Flat Fee. Licensee shall pay Licensor a flat fee of $__________ as full payment for all rights granted. Payment shall be made:<br />
    [   ]    upon execution of this Agreement<br />
    [   ]    upon publication<br />
 [   ]    Royalties and Advance. Licensee agrees to pay Licensor a royalty of _____% of Net Sales. Net Sales are defined as gross sales (the gross invoice amount billed customers) less quantity discounts and returns actually credited. Licensee agrees to pay Licensor an advance against royalties of $____________ upon execution of this Agreement. Licensee shall pay Licensor within 30 days after the end of each quarter. Licensee shall furnish an accurate statement of sales during that quarter. Licensor shall have the right to inspect Licensee's books upon reasonable notice.</p>
<p>Credit &#38; Samples<br />
(check if applicable and fill in blanks)<br />
 [   ]    Credit. All versions of the Work that include the Selection shall contain the following statement: _________________________________________________<br />
 [   ]    Samples. Upon publication, Licensee shall furnish ____________ copies of the Work to Licensor.</p>
<p>Warranty<br />
Licensor warrants that it has the right to grant permission for the uses of the Selection as specified above and that the Selection does not infringe the rights of any third parties.</p>
<p>Miscellaneous<br />
This Agreement may not be amended except in a written document signed by both parties. If a court finds any provision of this Agreement invalid or unenforceable, the remainder of this Agreement shall be interpreted so as best to effect the intent of the parties. This Agreement shall be governed by and interpreted in accordance with the laws of the State of _______________. This Agreement expresses the complete understanding of the parties with respect to the subject matter and supersedes all prior representations and understandings.</p>
<p>Licensor<br />
By: ______________________<br />
Name: _____________________<br />
Title: _____________________<br />
Address: _____________________<br />
Date: ________________</p>
<p>Licensee<br />
By: ______________________<br />
Name: _____________________<br />
Title: _____________________<br />
Address: _____________________<br />
Date: ___________________<br />
Tax ID # ________________________</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Permissions - the headache that protects us]]></title>
<link>http://greeneconcept.wordpress.com/?p=76</link>
<pubDate>Wed, 18 Jun 2008 10:09:53 +0000</pubDate>
<dc:creator>Ivanova Shostakovich</dc:creator>
<guid>http://greeneconcept.wordpress.com/?p=76</guid>
<description><![CDATA[We recently learned the importance of the permissions system of Second Life. Having newly created in]]></description>
<content:encoded><![CDATA[<p>We recently learned the importance of the permissions system of Second Life. Having newly created inventory transferred between our business associates taught us how important.<br />
I confess that I had given the whole permissions system (with regard to IP rights) little more than a cursory glance, simply relying on it to do its thing.<br />
I know now that modify rights are fairly straightforward. Copy and Transfer rights are more closely related to each other. Having an object that you intend someone else to own should not be composed of objects which contain things, such as animations or other objects, which have permissions contrary to the permissions you intend to set for the whole.This is just a good practice, but it is especially important if you want the intended owner to have any copy or transfer rights.<br />
Bear in mind that I am talking about the permissions someone else will have when they buy or are given the object in question.<br />
I believe modify rights are a little less touchy. You can set textures and scripts contained in a modifiable object to be no-modify. This is important for something that you wish your customer to be able to resize or adjust, but which contains scripting it would be best if no one went mucking about with, or if it has texture which is set just so and should not be changed. This cuts down on customer service calls  :)</p>
<p>If you intend to build things to sell, learn the SL permissions system. It's worth it.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Migrating DHCP Servers]]></title>
<link>http://graycat.wordpress.com/?p=17</link>
<pubDate>Sun, 15 Jun 2008 00:58:50 +0000</pubDate>
<dc:creator>graycat</dc:creator>
<guid>http://graycat.wordpress.com/?p=17</guid>
<description><![CDATA[We&#8217;re consolidating our servers at present so are shuffling a few roles about to their optimum]]></description>
<content:encoded><![CDATA[<p>We're consolidating our servers at present so are shuffling a few roles about to their optimum places. One of which is moving the networking and AD roles in one office onto the one server rather then spread over a few. Migrating a brand new DHCP server is quite often as simple as copying the database from one to the other and restarting the service. However, if you want to move a love one with reservations and leases etc it becomes a bit tricker.</p>
<p>Microsoft very kindly provide information and even a "How To" for migrating between different versions (<a href="http://support.microsoft.com/kb/325473">here</a>). After reading it thoroughly I found it to be really useful but unfortunately it doesn't cover my situation adequately. If you're migrating from an NT4 / 2000 / 2003 member server to a 2003 member server then it is absolutely spot on. If you're doing something else it becomes less so.</p>
<p>Anyway, before we go into the situation I tackled tonight (it is late saturday night / early sunday morning afterall!) here's a brief outline of the MS page for those people who are migrating between two 2003 member servers:</p>
<ol>
<li>compact the source database using the jetpack command</li>
<li>export the database using <code>netsh dhcp server export c:\dhcp.txt all</code></li>
<li>import the database using <code>netsh dhcp server import c:\dhcp.txt all</code></li>
<li>authorise the server if you haven't already and away you go</li>
</ol>
<p>As I said, the Microsoft step by step guide is really good for member server to member server migration. Unfortunately for me, I had to migrate from a member server to a domain controller and this proves a little trickier.</p>
<p>My first attempt resulted in an error message stating something like:</p>
<blockquote><p>COMMAND FAILED: Unable to access audit file path as specified</p></blockquote>
<p>Understandably this was a bit off putting but nothing I couldn't deal with.<br />
Initially I put it down to a file path issue as the source server has the OS installed on H:\ (no idea why, it just is ok?) and the new server has only the C:\ partition. My first attempt was to rejig the source set up to point to the C:\ partition for the backup and database path and try again. No change though so I tried a few more things like having services started or stopped at the various export / import phases but I still came back to the same message.</p>
<p>After reading the Microsoft document really in-depth, I spotted an almost through away line regarding importing on to a DC. The basis is that you need to <em>explicitly</em> be a member of the local administrators group and as there are no local user accounts on a DC, this could prove tricky.<br />
The Microsoft article mentions in about half a line that you need to restart the server into Directory Restore mode and then use that local administrator account to import the database. This is a great idea ..... if you're onsite and have physical access to the server to do this. If, on the other hand you are like me and are sat on the sofa watching a movie, having a glass of wine and working over a VPN then this really isn't going to work all that well for you. Well, unless you happen to have either the server in your lounge or are sleeping at work. Again.</p>
<p>Worry not though! I found a trick that worked so smoothly I had to give myself a high-five. Sad, I know but it was the thing to do at the time.</p>
<p>My thinking at the time was that if I can't logon in directory restore mode, what's the highest <em>local</em> account I could access? Well, as the domain admin account I was using was second probably only to The Administrator account for admin rights I was a bit stuck. Until it hit me - I'm using a domain account but I need a local account on a machine that doesn't have any ..... but all machines have a system account! So using the age old trick to kick off a command line box as the local system account (detail upon request if you don't already know it) I ran through the import phase again.... and it worked a dream.</p>
<p>So in the end it turned out to be a permissions issue and that it could be resolved remotely by using the system account to do the final import. All that's left for me to do tonight is clean the two servers up, deactivate the old scope before unauthorising the old server. Tomorrow I'm going to check in on the new server a few times to make sure it's leasing correctly and all the settings have stuck after the transfer. To be honest, I'm 90% certain it's going to work but there's not point in risking it with a whole live network, is there?</p>
<p>Right, time for some more wine and a chill-out I think. Enjoy your weekend.</ol>
]]></content:encoded>
</item>
<item>
<title><![CDATA[oS Commerce permissions problem]]></title>
<link>http://zlatipln.wordpress.com/?p=5</link>
<pubDate>Tue, 10 Jun 2008 18:17:01 +0000</pubDate>
<dc:creator>zlatipln</dc:creator>
<guid>http://zlatipln.wordpress.com/?p=5</guid>
<description><![CDATA[Today I installed my oS Commerce e-shop on craiglist.freehostia.com .
Freehostia  has many free in]]></description>
<content:encoded><![CDATA[<p>Today I installed my <strong>oS Commerce</strong> e-shop on <a title="e-shop" href="http://craiglist.freehostia.com">craiglist.freehostia.com </a>.</p>
<p><strong>Freehostia</strong>  has many free installers, seven subdomains, I like their hosting service.</p>
<p>When opened the index page, a message in pink appeared reading "Warning: I am able to write to the configuration file:</p>
<p>home/www/craiglist.freehostia.com/admin/includes/configure.php.</p>
<p>This is a potential security risk - please set the right user permissions on this file."</p>
<p><a href="http://zlatipln.files.wordpress.com/2008/06/oscommerce_permission_chmod.jpg"><img class="alignnone size-medium wp-image-30" src="http://zlatipln.wordpress.com/files/2008/06/oscommerce_permission_chmod.jpg?w=300" alt="oscommerce permissions chmod" width="300" height="213" /></a></p>
<p> </p>
<p>I understud that files  <strong>catalog/includes/configure.php</strong> and catalog/admin/includes/configure.php, must be set to "read - only" status in order to prevent this warning.</p>
<p>First I tried to change permissions of those two files trough web interface - selected them and click on 'permissions.'</p>
<p>The pink message stayed on...</p>
<p>Then I deleted them  /first made a copy!/ - a hudge error message came when tried to access index or admin page.</p>
<p>Restored the configure.php files.</p>
<p>After that I decided to change permissions to all the files in Include folders.</p>
<p>They was set to standard chmod 644.</p>
<p>I set them to suisidal 777!</p>
<p>A red warning appeared on webinterface telling me 'Are you crazy' /not exactly but with other words ;)</p>
<p>Some words about file/folder <strong>permissions</strong> a.k.a. <strong>CHMOD</strong>:</p>
<p>If you Right click on any file and select 'Properties'  a message box will appear.<br />
You maybe know there are checkboxes 'Read-only', 'Hidden', 'Archive'. This is for files on your computer.<br />
When files are to be uploaded and accessed through Internet, the term CHMOD is used.</p>
<p>CHMOD is similar but there are more possibilities to fine adjust access permissions - for example the Owner of the site can write and execute the file and another people - only to read it.</p>
<p>There are some combinations between Owner, visitors and their levels of access. So there is  a  unique three-digit number for each.</p>
<p>Chmod 777 means total freedom - everyone is allowed to read, write and execute the file. This is dangerous because someone visitor may re-write the file with some maliciuos code or just delete it!</p>
<p>Chmod444 and 600 put more restrictions for security reasons and are most often used.</p>
<p>You may ask - why are those numbers needed - just put restriction for everyone and no problems.</p>
<p>But if file is overprotected, it could not be changed/rewrited  by some php scripts and another error messages appear. Your web site /eshop, forum, blog/ could not work normal.</p>
<p>CHMOD is a  Linux - friendly command, so sometimes Windows files refuse to understand it and change as we wish.</p>
<p>In that case a good idea is to change chmod using <strong>FTP software</strong>. There are a lot of free FTP programs.</p>
<p>I used <strong><a title="CuteFTP" href="http://www.cuteftp.com/downloads/cuteftppro.aspx" target="_blank">CuteFTP8.0</a></strong> to connect via FTP protocol to my webhost /freehostia./</p>
<p>You have to know the ftp address to connect your host or ask your host provider or look in their support forum. Usually there is FTP info on your control panel page. Then run CuteFTP and paste this addres. Press 'connect'.</p>
<p>When connecter remotely, you will see two windows with folders and files - the left is your computer and the right is your web site /osCommerce in my case./</p>
<p>Find in tree structure catalog/includes/configure.php and catalog/admin/includes/configure.php files /one by one not at once as they are in different folders and subfolders./</p>
<p>Then rightclick on that configure.php  files --&#62; choose ' properties' and select read only - chmod 444.</p>
<p> This is all.</p>
<p>After refreshing the oSCommerce page, the pink message is disappeared for good!</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Local Admin Accounts]]></title>
<link>http://pacerfan9.wordpress.com/2008/06/04/local-admin-accounts/</link>
<pubDate>Wed, 04 Jun 2008 15:58:32 +0000</pubDate>
<dc:creator>pacerfan9</dc:creator>
<guid>http://pacerfan9.wordpress.com/2008/06/04/local-admin-accounts/</guid>
<description><![CDATA[ Category    User Profiles ; Permissions; Useful Commands

Description
We are beginning to remo]]></description>
<content:encoded><![CDATA[<p> <span style="font-family:Segoe UI;"><span style="font-size:9pt;"><span style="color:#4f81bd;">Category    User Profiles ; Permissions; Useful Commands</span></span><span style="font-size:1pt;color:#4f81bd;"><br />
</span></span></p>
<p>Description</p>
<p>We are beginning to remove Domain Users from having Local Admin rights to their workstation. We have an application that will not launch properly without having local admin rights. To make the scenario more interesting the application spawns multiple processes so even if I use the command <span style="font-family:OCR A Extended;"><span style="color:#ff0000;">runas /user:domain\username "application.exe" </span></span>the application fails to launch correctly.</p>
<p>Resolution</p>
<p>I executed the command <span style="color:#ff0000;font-family:OCR A Extended;">cacls c:\appdirectory /e /t /p users:c </span>to give the local users group change permissions on the applications directory. Because the application spawns multiple processes located in multiple directories I had to use the Sysinternals utility Process Monitor to locate all if the directories that are accessed by the application. Tip: If you use the Filter menu it is much easier to locate the necessary information. After running the command in each directory accessed by the application everything worked fine.</p>
<p>References</p>
<p><a href="http://www.pcreview.co.uk/forums/thread-424067.php">Difference between Power User and Administrator?</a><span style="color:#000000;"><br />
</span></p>
<p><a href="http://www.ss64.com/nt/cacls.html">CACLS Syntax</a><span style="color:#000000;"><br />
</span></p>
<p><a href="http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx"><span style="font-family:OCR A Extended;">Process Monitor v1.33</span></a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Archivos Importantes en Linux]]></title>
<link>http://julianrdz.wordpress.com/?p=111</link>
<pubDate>Mon, 02 Jun 2008 19:22:51 +0000</pubDate>
<dc:creator>Julián Rodríguez</dc:creator>
<guid>http://julianrdz.wordpress.com/?p=111</guid>
<description><![CDATA[Hace poco me preguntaba como era que funcionaban las personalizaciones en linux y que archivos vendr]]></description>
<content:encoded><![CDATA[<p>Hace poco me preguntaba como era que funcionaban las personalizaciones en linux y que archivos vendrian siendo el "registro" de windows en esta plataforma. La respuesta era obvia eran los archivos de texto que se encontraban en los folders pero mi pregunta era cual eran los mas imporantes, asi que aqui les dejo esta lista.</p>
<table style="height:426px;" border="0" width="532">
<caption>Critical system files in Linux</caption>
<tbody>
<tr>
<th>File/Directory</th>
<th>Permissions</th>
<th>Description</th>
</tr>
<tr>
<td>/var/log/</td>
<td style="text-align:center;">751</td>
<td>Directory containing all log files.</td>
</tr>
<tr>
<td>/var/log/messages</td>
<td style="text-align:center;">644</td>
<td>System messages.</td>
</tr>
<tr>
<td>/etc/crontab</td>
<td style="text-align:center;">600</td>
<td>System wide crontab file.</td>
</tr>
<tr>
<td>/etc/syslog.conf</td>
<td style="text-align:center;">640</td>
<td>Syslog daemon configuration file.</td>
</tr>
<tr>
<td>/etc/logrotate.conf</td>
<td style="text-align:center;">640</td>
<td>Controls rotation of system log files.</td>
</tr>
<tr>
<td>/var/log/wtmp</td>
<td style="text-align:center;">660</td>
<td>Who is logged in now. Use who to view.</td>
</tr>
<tr>
<td>/var/log/lastlog</td>
<td style="text-align:center;">640</td>
<td>Who has logged in before. Use last to view.</td>
</tr>
<tr>
<td>/etc/ftpusers</td>
<td style="text-align:center;">600</td>
<td>List of users who cannot FTP to the machine.</td>
</tr>
<tr>
<td>/etc/passwd</td>
<td style="text-align:center;">644</td>
<td>List of system’s user accounts.</td>
</tr>
<tr>
<td>/etc/shadow</td>
<td style="text-align:center;">600</td>
<td>Contains encrypted account passwords.</td>
</tr>
<tr>
<td>/etc/pam.d</td>
<td style="text-align:center;">750</td>
<td>PAM configuration files.</td>
</tr>
<tr>
<td>/etc/hosts.allow</td>
<td style="text-align:center;">600</td>
<td>Access control file.</td>
</tr>
<tr>
<td>/etc/hosts.deny</td>
<td style="text-align:center;">600</td>
<td>Access control file.</td>
</tr>
<tr>
<td>/boot/grub/grub.conf</td>
<td style="text-align:center;">600</td>
<td>Boot configuration file for GRUB bootloader.</td>
</tr>
<tr>
<td>/etc/securetty</td>
<td style="text-align:center;">600</td>
<td>TTY interfaces that allow root logins.</td>
</tr>
<tr>
<td>/etc/shutdown.allow</td>
<td style="text-align:center;">400</td>
<td>Users allowed to ctrl-alt-del</td>
</tr>
<tr>
<td>/etc/security</td>
<td style="text-align:center;">700</td>
<td>System access security policy files.</td>
</tr>
<tr>
<td>/etc/rc.d/init.d/</td>
<td style="text-align:center;">750</td>
<td>Program startup files on Red Hat systems.</td>
</tr>
<tr>
<td>/etc/init.d/</td>
<td style="text-align:center;">750</td>
<td>Program startup files on Debian systems.</td>
</tr>
<tr>
<td>/etc/sysconfig</td>
<td style="text-align:center;">751</td>
<td>System and network config files on Red Hat.</td>
</tr>
<tr>
<td>/etc/ssh</td>
<td style="text-align:center;">750</td>
<td>Secure shell configuration files.</td>
</tr>
<tr>
<td>/etc/sysctl.conf</td>
<td style="text-align:center;">400</td>
<td>Contains kernel tunable options.</td>
</tr>
</tbody>
</table>
]]></content:encoded>
</item>

</channel>
</rss>
