<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Learn To live...</title>
	<atom:link href="http://rhadimas.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://rhadimas.wordpress.com</link>
	<description>Just wanna be a good guy, no matter how hard it is...</description>
	<lastBuildDate>Sat, 04 Nov 2006 06:35:01 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='rhadimas.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/3ecd17ef8ce622dae1cf308308f7741f?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Learn To live...</title>
		<link>http://rhadimas.wordpress.com</link>
	</image>
			<item>
		<title>Recipe 2. Retrieving a Subset of Rows from a Table</title>
		<link>http://rhadimas.wordpress.com/2006/10/17/recipe-2-retrieving-a-subset-of-rows-from-a-table/</link>
		<comments>http://rhadimas.wordpress.com/2006/10/17/recipe-2-retrieving-a-subset-of-rows-from-a-table/#comments</comments>
		<pubDate>Tue, 17 Oct 2006 12:57:58 +0000</pubDate>
		<dc:creator>radimas</dc:creator>
				<category><![CDATA[PHP /MySQL]]></category>

		<guid isPermaLink="false">http://rhadimas.wordpress.com/2006/10/17/recipe-2-retrieving-a-subset-of-rows-from-a-table/</guid>
		<description><![CDATA[Problem
You have a table and want to see only rows that satisfy a specific condition.
Solution
Use the WHERE clause to specify which rows to keep. For example, to view all employees assigned to department number 10:
1 select *
2   from emp
3  where deptno = 10
Discussion
The WHERE clause allows you to retrieve only rows you are interested in. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rhadimas.wordpress.com&blog=453746&post=19&subd=rhadimas&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Problem<br />
</strong>You have a table and want to see only rows that satisfy a specific condition.</p>
<p><strong>Solution<br />
</strong>Use the <strong>WHERE</strong> clause to specify which rows to keep. For example, to view all employees assigned to department number 10:</p>
<p>1 select *<br />
2   from emp<br />
3  where deptno = 10</p>
<p><strong>Discussion</strong><br />
The WHERE clause allows you to retrieve only rows you are interested in. If the expression in the WHERE clause is true for any row, then that row is returned.</p>
<p>Most vendors support common operators such as: <strong>=</strong>, &lt;, &gt;, &lt;=, &gt;=, !, &lt;&gt;. Additionally, you may want rows that satisfy multiple conditions; this can be done by specifying <strong>AND</strong>, <strong>OR</strong>, and parenthesis .</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/rhadimas.wordpress.com/19/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/rhadimas.wordpress.com/19/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rhadimas.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rhadimas.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rhadimas.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rhadimas.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rhadimas.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rhadimas.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rhadimas.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rhadimas.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rhadimas.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rhadimas.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rhadimas.wordpress.com&blog=453746&post=19&subd=rhadimas&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rhadimas.wordpress.com/2006/10/17/recipe-2-retrieving-a-subset-of-rows-from-a-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eeef5c88297accd98351c4556aa49c0c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">radimas</media:title>
		</media:content>
	</item>
		<item>
		<title>Recipe 1.Retrieving All Rows and Columns from a Table</title>
		<link>http://rhadimas.wordpress.com/2006/10/17/recipe-1retrieving-all-rows-and-columns-from-a-table/</link>
		<comments>http://rhadimas.wordpress.com/2006/10/17/recipe-1retrieving-all-rows-and-columns-from-a-table/#comments</comments>
		<pubDate>Tue, 17 Oct 2006 12:45:57 +0000</pubDate>
		<dc:creator>radimas</dc:creator>
				<category><![CDATA[PHP /MySQL]]></category>

		<guid isPermaLink="false">http://rhadimas.wordpress.com/2006/10/17/recipe-1retrieving-all-rows-and-columns-from-a-table/</guid>
		<description><![CDATA[Problem
You have a table and want to see all of the data in it.
Solution
Use the special &#8220;*&#8221; character and issue a SELECT against the table:
1 select *
2 from emp
Discussion
The character &#8220;*&#8221; has special meaning in SQL. Using it will return every column for the table specified. Since there is no WHERE clause specified, every row [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rhadimas.wordpress.com&blog=453746&post=18&subd=rhadimas&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Problem<br />
</strong>You have a table and want to see all of the data in it.</p>
<p><strong>Solution<br />
</strong>Use the special &#8220;*&#8221; character and issue a SELECT against the table:</p>
<p>1 select *<br />
2 from emp</p>
<p><strong>Discussion<br />
</strong>The character &#8220;*&#8221; has special meaning in SQL. Using it will return every column for the table specified. Since there is no WHERE clause specified, every row will be returned as well. The alternative would be to list each column individually:</p>
<p>select empno,ename,job,sal,mgr,hiredate,comm,deptno<br />
from emp<br />
In ad hoc queries that you execute interactively, it&#8217;s easier to use SELECT *. However, when writing program code it&#8217;s better to specify each column individually. The performance will be the same, but by being explicit you will always know what columns you are returning from the query. Likewise, such queries are easier to understand by people other than yourself (who may or may not know all the columns in the tables in the query).</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/rhadimas.wordpress.com/18/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/rhadimas.wordpress.com/18/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rhadimas.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rhadimas.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rhadimas.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rhadimas.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rhadimas.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rhadimas.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rhadimas.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rhadimas.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rhadimas.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rhadimas.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rhadimas.wordpress.com&blog=453746&post=18&subd=rhadimas&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rhadimas.wordpress.com/2006/10/17/recipe-1retrieving-all-rows-and-columns-from-a-table/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eeef5c88297accd98351c4556aa49c0c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">radimas</media:title>
		</media:content>
	</item>
		<item>
		<title>Discovering Islam&#8230;</title>
		<link>http://rhadimas.wordpress.com/2006/10/17/discovering-islam/</link>
		<comments>http://rhadimas.wordpress.com/2006/10/17/discovering-islam/#comments</comments>
		<pubDate>Mon, 16 Oct 2006 21:27:35 +0000</pubDate>
		<dc:creator>radimas</dc:creator>
				<category><![CDATA[What I'm Reading Now]]></category>

		<guid isPermaLink="false">http://rhadimas.wordpress.com/2006/10/17/discovering-islam/</guid>
		<description><![CDATA[&#160;
&#160;
&#160;
[Akbar Ahmed : The Ibn Khaldun Chair of Islamic Studies and Professor
of International Relations, American University, Washington, D.C.]
==============================================================
The images of Islam prevalent in the world are of brutality, fanaticism, hatred and disorder: Libyans killing policewomen in London, Palestinians hijacking passenger planes, Iranians seizing foreign embassies and Indonesians blowing up the Borobudur temple in Java. The [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rhadimas.wordpress.com&blog=453746&post=17&subd=rhadimas&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p align="left">&nbsp;</p>
<p align="left">&nbsp;</p>
<p align="left">&nbsp;</p>
<p class="MsoNormal" style="text-align:justify;"><em>[Akbar Ahmed : The Ibn Khaldun Chair of Islamic Studies and Professor<br />
of International Relations, American University, Washington, D.C.]</em></p>
<p class="MsoNormal" style="text-align:justify;">==============================================================</p>
<p class="MsoNormal" style="text-align:justify;">The images of Islam prevalent in the world are of brutality, fanaticism, hatred and disorder: Libyans killing policewomen in London, Palestinians hijacking passenger planes, Iranians seizing foreign embassies and Indonesians blowing up the Borobudur temple in Java. The very names of the Muslim leaders of our times—Khomeini, Gaddafi, Arafat—have become symbols of these images. It is V.S.Naipaul’s vision of Islam and Muslims (Among the Believers: An Islamic Journey, 1981): ‘Rage was what I saw…Muslims crazed by their confused faith.’</p>
<p class="MsoNormal" style="text-align:justify;">&nbsp;</p>
<p class="MsoNormal" style="text-align:justify;">These images stem partly from a lack of understanding of Islam among non-Muslims and partly from the failure by Muslims to explain themselves. The results are predictable: the hatred feeds on hatred. I saw ‘kill a Muslim for Christmas’ written in the London underground stations. Following a nuclear holocaust, American science fiction writer Robert Heinlein has the white survivors enslaved, men castrated and baby girls eaten by Black Muslims, neatly fusing religious and racial prejudices (Farnham’s Freehold, first published in the 1960s). The Muslim leaders, hated and despised, are reduced to Walt Disney villains: ‘Kho Maniac, Wacky Kaddafi, Yucky Arafat’ (‘Garbage pail adults’, MAD, back cover, September 1986). The repugnance is contagious. Even the staid London Economist is not immune and panders to the stereotype: ImamKhomeini was ‘Savonarola’ and Colonel Gaddafi ‘the Devil’s godfather’ on its covers. The colours, red and black, were striking and indicated hell; both men appeared minatory and forbidding.</p>
<p class="MsoNormal" style="text-align:justify;"><span id="more-17"></span></p>
<p class="MsoNormal" style="text-align:justify;">&nbsp;</p>
<p class="MsoNormal" style="text-align:justify;">For Muslims therefore, it is a good time to pause, to reflect, and to attempt to re-locate the main features of, to re-discover, Islam. We therefore take stock, not because we have arrived at any significant stage of the Islamic journey but because the sheer range of trajectories and approaches, and consequent confusion, obliges us to attempt clarification. The problem is not that there are too few answers but that there are too many.</p>
<p class="MsoNormal" style="text-align:justify;">&nbsp;</p>
<p class="MsoNormal" style="text-align:justify;">We need answers to other related issues in the Islamic world: how are we to make sense in Turkey of the tensions generated by the pull of an Islamic identity on the one hand and a European one on the other? Of the seemingly endless Shia revolution in Iran? Of the ongoing process of Islamization in Pakistan? Are there common themes linking these societies, universal principles that we can discern? Or is each society responding to earlier, atavistic obsessions reflected in the complex relationship of Christian Europe to Turkey, in the history of Shiaism in Iran, and in the relation of Hinduism to South Asian Muslims, the inheritors of Pakistan? Can we make any sense of Muslim history? Or is it all random dates, the rise and fall of despots and dynasties living in marble buildings and gilded harems? Is the past dead, ossified in mechanical ritual and neglected holy texts? Or is it part of our lives?</p>
<p class="MsoNormal" style="text-align:justify;">&nbsp;</p>
<p class="MsoNormal" style="text-align:justify;">For me personally—in an Islamic sense when I have just turned 40, the critical age for Muslims—it is an appropriate time to attempt the exercise. The voyage in search of Islam is a journey into my own past. It is a voyage that opens doors to the past taking me straight to the seventh century. It is also a voyage of self-discovery. The attempt to peer into myself, my culture and my roots was stimulating and gratifying, but also disturbing.</p>
<p class="MsoNormal" style="text-align:justify;"> </p>
<p class="MsoNormal" style="text-align:justify;">In order to help answer the questions posed above I will create a key, a model, an ideal-type. Max Weber’s concept of the ideal or pure type is a useful one. But we must bear in mind its limitations. It depicts an average derived over time which reflects combinations, mixtures and modifications. It is only an approximation of, not a substitute for, reality.</p>
<p class="MsoNormal" style="text-align:justify;"> </p>
<p class="MsoNormal" style="text-align:justify;">With these qualifications, we base our ideal in seventh-century Arabian society. The device will assist in explaining Muslim society and history from the inception of Islam to our times, and over space from one kind of society on one continent to another on a different one. As we apply it we will learn about different places and times.</p>
<p class="MsoNormal" style="text-align:justify;"> </p>
<p class="MsoNormal" style="text-align:justify;">The two key elements of Islam, supporting and inter-locking, are firmly and unequivocally located in one book and one life. The holy Quran is the single divine Book of the Muslims and the life is that of Muhammad, the Prophet of Islam, which constitutes the sunna—his behaviour, practice, sayings and values. Together they form the Shariah, the ‘path’ for Muslims. Further instruction is obtained from the lives of the Prophet’s companions. The Prophet’s own position is central to Islam. The fundamental Islamic declaration of faith rests in belief in Allah and acceptance of Muhammad as the Prophet.</p>
<p class="MsoNormal" style="text-align:justify;"> </p>
<p class="MsoNormal" style="text-align:justify;">Together the two, a book and a life—‘we are calling out to you with the Quran in our right hand and the sunna in our left’ Hassan al-Banna would proclaim in Egypt—define and inspire the Muslim, affecting his life from birth to death. They are the primary sources of Islam. They provide us with a good idea of how a person ought to conduct himself to be called a Muslim. The ideal aims at paradise in the next world and satisfaction, if not success, in this one. We thus have not only a way of looking at the world but of living in it.</p>
<p class="MsoNormal" style="text-align:justify;"> </p>
<p class="MsoNormal" style="text-align:justify;">The Western perception of the revivalism, rediscovery or resurgence of Islam is faulty, as the West links it with Arab oil, PLO guerillas and Imam Khomeini. This is a mistake. The phenomenon has been in motion since the seventh century, continually emphasizing the drive to return to the Golden Age, the ideal times of the Prophet. Non-Muslims would usefully understand the return in the context of striving for the ideal and its values, not a turning back of the clock to remote, earlier times.</p>
<p class="MsoNormal" style="text-align:justify;"> </p>
<p class="MsoNormal" style="text-align:justify;">Certain fundamental problems which accompanied Islam’s rapid expansion and universal message, particularly the persistence of pre-Islamic social and cultural systems also need consideration. In the following chapters we will see how Islamic notions of society, history and politics were imposed on local structures and organizations, sometimes merging, sometimes clashing with them.</p>
<p class="MsoNormal" style="text-align:justify;">&nbsp;</p>
<p class="MsoNormal" style="text-align:justify;">Islam comes with definite, specific ideas and does not encourage duality. We thus see the tension in the villages, away from the centres of Islamic learning, between the Islamic macro world-view and the day-to-day humdrum values dealing with kin and cattle of village society. It is the stress in society between what social scientists call the Great Tradition of a world religion and the Little Tradition of local, regional, village culture. We will define the latter as ethnicit and illustrate through cases how it is an important source of stress in contemporary Muslim society.</p>
<p class="MsoNormal" style="text-align:justify;"> </p>
<p class="MsoNormal" style="text-align:justify;">In certain ways Muslims are the same everywhere, and yet their societies are different everywhere,’ I wrote in an earlier book (Religion and Politics in Muslim Society, 1983). Confronted by the wide range and diversity of Muslim societies, the present generation of writers suggests their categorization thus: Moroccan Islam (Dale Eickelman, 1976), Pakistani Islam, Malay Islam and so on. ‘One is bound to conclude that there is not one Islam but many Islams’ (Edward Mortimer, Faith and Power: the Politics of Islam, 1982). But the categorization is not new. It is at least as old as European colonization: for instance, Indian Islam, by Murray Titus</p>
<p class="MsoNormal" style="text-align:justify;"> </p>
<p class="MsoNormal" style="text-align:justify;">(1930). This is the easy way out. And it not only simplifies grossly, it also distorts. It is no answer. We will attempt an answer below. For as it is true that in the thought of Muslim scholars and in their texts there is clarity, and a broad consensus regarding the ideal, it is also equally true that the way Muslims order their lives is sometimes far from the ideal. Economic, political and ethnic—social, cultural—pressures act to compromise notions of the ideal, thereby creating ambiguity around it. The demarcation of Muslim societies is therefore not a division between white ideal and black non-ideal but an ongoing relationship between the two marked by areas of grey. Taken together the arguments raised above will assist us in our search for a world-view, an Islamic world-view of society and history.</p>
<p class="MsoNormal" style="text-align:justify;">&nbsp;</p>
<p class="MsoNormal" style="text-align:justify;">&nbsp;</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/rhadimas.wordpress.com/17/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/rhadimas.wordpress.com/17/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rhadimas.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rhadimas.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rhadimas.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rhadimas.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rhadimas.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rhadimas.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rhadimas.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rhadimas.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rhadimas.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rhadimas.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rhadimas.wordpress.com&blog=453746&post=17&subd=rhadimas&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rhadimas.wordpress.com/2006/10/17/discovering-islam/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eeef5c88297accd98351c4556aa49c0c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">radimas</media:title>
		</media:content>
	</item>
		<item>
		<title>Reset Windows Password /w KNOPPIX.</title>
		<link>http://rhadimas.wordpress.com/2006/10/15/reset-windows-password-w-knoppix/</link>
		<comments>http://rhadimas.wordpress.com/2006/10/15/reset-windows-password-w-knoppix/#comments</comments>
		<pubDate>Sun, 15 Oct 2006 04:54:55 +0000</pubDate>
		<dc:creator>radimas</dc:creator>
				<category><![CDATA[Linux How To]]></category>

		<guid isPermaLink="false">http://rhadimas.wordpress.com/2006/10/15/reset-windows-password-w-knoppix/</guid>
		<description><![CDATA[If  you forget a password for your user on your Windows system (especially if the  user is administrator), your computer immediately becomes a paperweight. It&#8217;s  like being locked out of your car without a spare set of keys and without a way  to contact a locksmith. Use Knoppix as your locksmith [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rhadimas.wordpress.com&blog=453746&post=16&subd=rhadimas&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p class="docText"><span class="docEmphBold"><a title="knoppixhks-CHP-7-ITERM-1602" name="knoppixhks-CHP-7-ITERM-1602"></a><a title="knoppixhks-CHP-7-ITERM-1603" name="knoppixhks-CHP-7-ITERM-1603"></a>If  you forget a password for your user on your Windows system (especially if the  user is administrator), your computer immediately becomes a paperweight. It&#8217;s  like being locked out of your car without a spare set of keys and without a way  to contact a locksmith. Use Knoppix as your locksmith to reset the password to a  new value or even completely erase it</span>.</p>
<p class="docText">User accounts have an interesting history in Windows. The  Windows 9x series did offer usernames and passwords, but every user could  overwrite every other user&#8217;s files, and the system did not offer any real  security. If you forget your password in Windows 9x, resetting it is as simple  as deleting a <span class="docEmphasis">.pwd</span> file with a DOS disk. With  Windows NT, 2000, and XP, Microsoft has increased its user security by creating  different user accounts on the same system and passwords that protect them.  However, unlike in Windows 9x, if you forget your Administrator password, your  only recourse is to purchase a tool to reset your Windows password or to  reinstall Windows to create a new administrator account. If you have a Knoppix  disc, you can download and use the <em>chntpw</em><a title="knoppixhks-CHP-7-ITERM-1604" name="knoppixhks-CHP-7-ITERM-1604"></a> tool, which is a small program that lets  you reset the local passwords on a Windows system, and return to your  system.</p>
<p><a title="knoppixhks-CHP-7-SECT-6.1" name="knoppixhks-CHP-7-SECT-6.1"></a></p>
<h4 class="docSection2Title"> Get chntpw</h4>
<p class="docText">The <em>chntpw</em> tool is part of the <em>ntpasswd</em><a title="knoppixhks-CHP-7-ITERM-1605" name="knoppixhks-CHP-7-ITERM-1605"></a> package, which can be downloaded in boot  floppy form from its web site at <a href="http://home.eunet.no/%7Epnordahl/ntpasswd/" class="docLink" target="_blank">http://home.eunet.no/~pnordahl/ntpasswd/</a>. However, this gives  you a floppy image and requires that you mount multiple loopback entries to  extract the utility from the floppy image to use under Knoppix. While you can  simply create an <em>ntpasswd</em> boot floppy, this means yet another rescue disk  to carry with you, and the beauty of Knoppix is that you have access to all of  your recovery tools in a single disc. Luckily, the <em>chntpw</em> tool is now  part of <a title="knoppixhks-CHP-7-ITERM-1606" name="knoppixhks-CHP-7-ITERM-1606"></a>Debian unstable, which means  that you can grab it directly from Debian&#8217;s repository.</p>
<table align="center" bgcolor="black" border="0" cellpadding="1" cellspacing="0" width="90%">
<tr>
<td>
<table bgcolor="white" border="0" cellpadding="6" cellspacing="0" width="100%">
<tr>
<td valign="top" width="60">&nbsp;</td>
<td valign="top">
<p class="docText">You could use the <em>apt-get</em><a title="knoppixhks-CHP-7-ITERM-1607" name="knoppixhks-CHP-7-ITERM-1607"></a> wrapper, which is included for Knoppix, to  download <em>chntpw</em>. However, to be certain you retrieve the latest version  of <em>chntpw</em>, you must run the <em>apt-get</em> update, which downloads about  10 times as much data per repository as the 85-KB <em>chntpw</em> package. It  saves bandwidth and time to download the package  directly.</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p><span id="more-16"></span></p>
<p class="docText">You can get the latest <em>chntpw</em> package from <a href="http://packages.debian.org/unstable/admin/chntpw" class="docLink" target="_blank">http://packages.debian.org/unstable/admin/chntpw</a>. Download the  <span class="docEmphasis">.deb</span> to your <em>/home/knoppix</em> directory. Most  of the Knoppix system is read-only, so you can&#8217;t directly install this package.  Instead, you must convert it to a <span class="docEmphasis">tar</span> file, and  then extract out the <em>chntpw</em> utility. Open up a terminal, and run the  following commands:</p>
<pre>knoppix@ttyp1[config]$ <strong>alien --to-tgz chntpw_<span class="docEmphasis">0.99.2-1_i386</span></strong> <strong>.deb</strong>
knoppix@ttyp1[config]$ <strong>tar xvzf chntpw-<span class="docEmphasis">0.99.2</span></strong> <strong>.tgz ./usr/sbin/chntpw</strong>
knoppix@ttyp1[config]$ <strong>mv ./usr/sbin/chntpw ./</strong></pre>
<p>Change the .<em>deb</em> and .<em>tgz</em> filenames to match the  version of <em>chntpw</em> that you downloaded. This command makes use of the  <em>alien</em> utility, which has the ability to convert files between <span class="docEmphasis">.rpm</span>, <span class="docEmphasis">.deb</span>, and <span class="docEmphasis">.tgz</span>. This conversion is necessary to extract only the  <em>chntpw</em> executable file. Once you are finished with these commands, the  <em>chntpw</em> utility is in <em>/home/knoppix</em> and ready to use.<a title="knoppixhks-CHP-7-SECT-6.2" name="knoppixhks-CHP-7-SECT-6.2"></a></p>
<h4 class="docSection2Title"> Reset the Password</h4>
<p class="docText">To reset the password, you must have write permissions on the  Windows partition. If you have a <a title="knoppixhks-CHP-7-ITERM-1608" name="knoppixhks-CHP-7-ITERM-1608"></a>FAT or  FAT32 Windows partition, click on the drive on the desktop to mount it, then  right-click on the hard-drive icon and choose Actions|Change read/write mode, or on the command line,  type:</p>
<pre>knoppix@ttyp1[config]$ <strong>sudo mount -o rw /dev/<span class="docEmphasis">hda1</span></strong>
<strong> /mnt/<span class="docEmphasis">hda1</span></strong></pre>
<p>Replace <tt><em>hda1</em></tt> with your Windows partition. If  you have an <a title="knoppixhks-CHP-7-ITERM-1609" name="knoppixhks-CHP-7-ITERM-1609"></a>NTFS partition, follow the  steps in Prev tuts to mount the NTFS partition with write  permissions.</p>
<p class="docText">Once the partition is mounted, you must locate the directory  containing the <em>SAM</em> file. For Windows 2000 and XP systems, this directory  should be located under <em>windows/system32/config</em> or  <em>winnt/system32/config</em>. In this example, navigate to the  <em>/mnt/hda1/windows/system32/config</em> directory, and notice a number of  files, including ones called <em>SAM</em>, <em>SYSTEM</em>, and <em>SECURITY</em>,  that may or may not be in all caps. Once you have navigated to this directory on  the command line, reset the Windows Administrator password by running:</p>
<pre>knoppix@ttyp1[config]$ <strong>/home/knoppix/chntpw SAM</strong></pre>
<p>Remember that <tt>SAM</tt> is the name of the <em>SAM</em> file  in the directory, and may or may not be all in caps. The default for this  utility is to edit the Administrator password, so there is no need to specify an  account. While you have the option to change the password to a different value,  it is recommended to just reset the password and then change it when you get  back into Windows. You can reset the password by typing * instead of a password  when prompted.</p>
<pre>knoppix@ttyp1[config]$ <strong>/home/knoppix/chntpw SAM</strong>
chntpw version 0.99.2 040105, (c) Petter N Hagen
openHive(sam) failed: Read-only file system, trying read-only
Hive's name (from header): &lt;SystemRootSystem32ConfigSAM&gt;
ROOT KEY at offset: 0x001020
...output supressed...
* = blank the password (This may work better than setting a new password!)
Enter nothing to leave it unchanged
Please enter new password: <strong>*</strong></pre>
<p>If you want to reset the password for a user other than  Administrator, list the users in the <em>SAM</em> file with the <tt>-l</tt>  option:</p>
<pre>knoppix@ttyp1[config]$ <strong>/home/knoppix/chntpw -l SAM</strong>
chntpw version 0.99.2 040105, (c) Petter N Hagen
Hive's name (from header): &lt;SystemRootSystem32ConfigSAM&gt;
ROOT KEY at offset: 0x001020
Page at 0x6000 is not 'hbin', assuming file contains garbage at end
File size 262144 [40000] bytes, containing 5 pages (+ 1 headerpage)
Used for data: 218/16928 blocks/bytes, unused: 4/3392 blocks/bytes.
* SAM policy limits:
Failed logins before lockout is: 0
Minimum password length        : 0
Password history count         : 0
RID: 01f4, Username: &lt;Administrator&gt;, *BLANK password*
RID: 01f5, Username: &lt;Guest&gt;, *disabled or locked*
RID: 03e8, Username: &lt;HelpAssistant&gt;
RID: 03ea, Username: &lt;SUPPORT_388945a0&gt;, *disabled or locked*
Hives that have changed:
 #  Name
None!</pre>
<p>This example has four users: Administrator, Guest,  HelpAssistant, and SUPPORT_388945a0. Pick the user you want to edit, and then  run <em>chntpw</em> with the <tt>-u</tt> option:</p>
<pre>knoppix@ttyp1[config]$ <strong>/home/knoppix/chntpw -u <span class="docEmphasis">username</span></strong>
<strong> SAM</strong></pre>
<p>Once you change the password and save your changes, unmount the  filesystem and reboot:</p>
<pre>knoppix@ttyp1[config]$ <strong>cd</strong>
knoppix@ttyp1[knoppix]$ <strong>sudo umount /mnt/<span class="docEmphasis">hda1</span></strong></pre>
<p>When you boot back to Windows, the password should be blank, so  you can log in and change the password with the regular Windows tools.<a title="knoppixhks-CHP-7-ITERM-1610" name="knoppixhks-CHP-7-ITERM-1610"></a><a title="knoppixhks-CHP-7-ITERM-1611" name="knoppixhks-CHP-7-ITERM-1611"></a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/rhadimas.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/rhadimas.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rhadimas.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rhadimas.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rhadimas.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rhadimas.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rhadimas.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rhadimas.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rhadimas.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rhadimas.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rhadimas.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rhadimas.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rhadimas.wordpress.com&blog=453746&post=16&subd=rhadimas&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rhadimas.wordpress.com/2006/10/15/reset-windows-password-w-knoppix/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eeef5c88297accd98351c4556aa49c0c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">radimas</media:title>
		</media:content>
	</item>
		<item>
		<title>Fix The Windows Boot.ini file with KNOPPIX!![2]</title>
		<link>http://rhadimas.wordpress.com/2006/10/15/fix-the-windows-bootini-file-with-knoppix2/</link>
		<comments>http://rhadimas.wordpress.com/2006/10/15/fix-the-windows-bootini-file-with-knoppix2/#comments</comments>
		<pubDate>Sun, 15 Oct 2006 04:38:38 +0000</pubDate>
		<dc:creator>radimas</dc:creator>
				<category><![CDATA[Linux How To]]></category>

		<guid isPermaLink="false">http://rhadimas.wordpress.com/2006/10/15/fix-the-windows-bootini-file-with-knoppix2/</guid>
		<description><![CDATA[One thing that has been missing from  Knoppix (and Linux in general) is the ability to safely write to NTFS  partitions. Now with Knoppix 3.4, you can edit, delete, and move files on your  NTFS partition—jobs that are difficult with the Windows Recovery CD!
While the Linux kernel has been able to read [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rhadimas.wordpress.com&blog=453746&post=15&subd=rhadimas&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p class="docText"><span class="docEmphBold">One thing that has been missing from  Knoppix (and Linux in general) is the ability to safely write to NTFS  partitions. Now with Knoppix 3.4, you can edit, delete, and move files on your  NTFS partition—jobs that are difficult with the Windows Recovery CD!</span></p>
<p class="docText">While the Linux kernel has been able to read <a title="knoppixhks-CHP-7-ITERM-1588" name="knoppixhks-CHP-7-ITERM-1588"></a><a title="knoppixhks-CHP-7-ITERM-1589" name="knoppixhks-CHP-7-ITERM-1589"></a>NTFS partitions for some time, writing to  them has always been considered very dangerous. The NTFS spec is a closed spec  that requires kernel hackers to reverse engineer it to make a driver that  supports it. However, this can be very problematic: if a programmer reverse  engineers NTFS 3.0, she must repeat the process when NTFS 4.0 is released.  Writing to NTFS has been so dangerous that instead of just warning users, some  kernels go as far as disabling write support in the NTFS driver itself.  Recently, a solution to write to NTFS partitions has appeared with <a title="knoppixhks-CHP-7-ITERM-1590" name="knoppixhks-CHP-7-ITERM-1590"></a><a title="knoppixhks-CHP-7-ITERM-1591" name="knoppixhks-CHP-7-ITERM-1591"></a>Captive NTFS. This solution actually uses  the NTFS drivers that Windows itself uses, and is included in Knoppix 3.4.</p>
<table align="center" bgcolor="black" border="0" cellpadding="1" cellspacing="0" width="90%">
<tr>
<td>
<table bgcolor="white" border="0" cellpadding="6" cellspacing="0" width="100%">
<tr>
<td valign="top" width="60">&nbsp;</td>
<td valign="top">
<p class="docText">Captive NTFS is still somewhat experimental, and while it has  worked for many people, there is a chance for data loss, so be sure to back up  any important files on filesystems you mount this  way.</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p><strong>Configure Captive NTFS</strong></p>
<p class="docText"><strong><a title="knoppixhks-CHP-7-ITERM-1592" name="knoppixhks-CHP-7-ITERM-1592"></a></strong>The Knoppix Captive  NTFS wizard makes it easy to configure and use the Captive NTFS system. When you  run the wizard, it scans all the drives on your computer for the  Microsoft-provided NTFS drivers it needs to safely write to your NTFS  filesystems. Click <strong>K Menu|KNOPPIXUtilities|Captive NTFS</strong> to launch the program. The wizard that  appears automates the process of finding and using the NTFS <span class="docEmphasis">.dlls</span>. Click Forward to see a listing of the system  files that Captive NTFS has already found on your Knoppix system. Click Forward  again, and the wizard mounts and scans your hard drives for the essential files  it needs.</p>
<p class="docText"><span id="more-15"></span></p>
<p class="docText">Once Captive NTFS has the modules it needs to mount NTFS, it  enables the OK button even though it continues to scan other directories and  partitions for drivers. If you are in a hurry, you can click OK to immediately  mount NTFS partitions. If you wait for the scan to finish, you are presented  with an option to list specific locations for drivers (which could be on a USB  key drive, for instance), or you can click Forward to get the option to download  the files from the <a title="knoppixhks-CHP-7-ITERM-1593" name="knoppixhks-CHP-7-ITERM-1593"></a>Windows XP Service  Pack 1.</p>
<table align="center" bgcolor="black" border="0" cellpadding="1" cellspacing="0" width="90%">
<tr>
<td>
<table bgcolor="white" border="0" cellpadding="6" cellspacing="0" width="100%">
<tr>
<td valign="top" width="60">&nbsp;</td>
<td valign="top">
<p class="docText">In some countries, you must have a valid XP license to legally  download Service Pack 1, so if you are unsure of the legality of downloading  this publicly available file, consult with your lawyer and with Microsoft&#8217;s  lawyers, and then click &#8220;Yes, start the  download.&#8221;</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p>If you have the time, Captive NTFS recommends downloading the  latest version of the drivers, which is available in the Windows XP Service Pack  1. However, I have successfully written to NTFS partitions with Windows&#8217;s  standard drivers.</p>
<h4 class="docSection2Title">Mount NTFS Partitions</h4>
<p class="docText"><a title="knoppixhks-CHP-7-ITERM-1594" name="knoppixhks-CHP-7-ITERM-1594"></a><a title="knoppixhks-CHP-7-ITERM-1595" name="knoppixhks-CHP-7-ITERM-1595"></a>Once you are finished with the wizard, you  are ready to mount an NTFS partition.</p>
<table align="center" bgcolor="black" border="0" cellpadding="1" cellspacing="0" width="90%">
<tr>
<td>
<table bgcolor="white" border="0" cellpadding="6" cellspacing="0" width="100%">
<tr>
<td valign="top" width="60">&nbsp;</td>
<td valign="top">
<p class="docText">Do not mount the partition by clicking on it on the desktop,  because the standard Linux kernel NTFS module is used—not Captive  NTFS.</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p>Open a terminal and mount the drive manually using this  command:</p>
<pre>knoppix@ttyp0[knoppix]$<strong> sudo mount -t captive-ntfs -o uid=knoppix,gid=knoppix 

/dev/<span class="docEmphasis">hda1</span></strong> <strong> /mnt/<span class="docEmphasis">hda1</span></strong></pre>
<p>Replace <tt><em>hda1</em></tt> with the name of your partition.  The <tt>-t</tt> argument is used to specify a filesystem type. Use  <tt>captive-ntfs</tt> to use the NTFS drivers that the Captive NTFS wizard  previously found. The <tt>-o</tt> argument passes other general options to  mount. In this case, tell mount to assign the user and group <span class="docEmphasis">knoppix</span> to the files on this drive. I recommend that  you mount the drive at <em>/mnt/hda1</em>, because this directory is created by  Knoppix at boot time for this partition, but you can actually use any directory  you wish. This drive is now writable by your regular <span class="docEmphasis">knoppix</span> user; you now possess the power to do good and  evil to your drive. Once the drive is mounted, you can treat it like any other  mounted filesystem, although I have noticed that write speed is substantially  slower with Captive NTFS than with other filesystems.</p>
<p class="docText">Once you are finished with the partition, unmount it to ensure  that any changes are synced. This is an important step, because normally, when  you change a file on a drive, changes are cached to RAM to be written to the  drive later. This is performance-enhancing behavior, because it allows writes to  occur at an optimal time. Unmount the disk to synchronize any changes in RAM  that haven&#8217;t yet been written to disk.</p>
<p><a title="knoppixhks-CHP-7-ITERM-1596" name="knoppixhks-CHP-7-ITERM-1596"></a><a title="knoppixhks-CHP-7-ITERM-1597" name="knoppixhks-CHP-7-ITERM-1597"></a></p>
<pre>knoppix@ttyp0[knoppix]$<strong> sudo umount /mnt/<span class="docEmphasis">hda1</span></strong></pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/rhadimas.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/rhadimas.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rhadimas.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rhadimas.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rhadimas.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rhadimas.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rhadimas.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rhadimas.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rhadimas.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rhadimas.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rhadimas.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rhadimas.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rhadimas.wordpress.com&blog=453746&post=15&subd=rhadimas&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rhadimas.wordpress.com/2006/10/15/fix-the-windows-bootini-file-with-knoppix2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eeef5c88297accd98351c4556aa49c0c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">radimas</media:title>
		</media:content>
	</item>
	</channel>
</rss>