<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Open Source Software and Linux &#187; /root</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/linux-lotus-domino/tag/root/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/linux-lotus-domino</link>
	<description></description>
	<lastBuildDate>Thu, 02 May 2013 21:07:56 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Solaris 10, ksh and root</title>
		<link>http://itknowledgeexchange.techtarget.com/linux-lotus-domino/solaris-10-ksh-and-root/</link>
		<comments>http://itknowledgeexchange.techtarget.com/linux-lotus-domino/solaris-10-ksh-and-root/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 14:49:33 +0000</pubDate>
		<dc:creator>Xjlittle</dc:creator>
				<category><![CDATA[/root]]></category>
		<category><![CDATA[/sbin/sh]]></category>
		<category><![CDATA[bourne shell]]></category>
		<category><![CDATA[default shell]]></category>
		<category><![CDATA[korn shell]]></category>
		<category><![CDATA[ksh]]></category>
		<category><![CDATA[solaris 10]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/linux-lotus-domino/?p=152</guid>
		<description><![CDATA[Like many people I have the question of, on Solaris 10, can I set the default root shell to ksh. After some study and research apparently it is ok to do this. The default shell for root is /sbin/sh. For those of us that use Linux this is not a symlink to bash but a [...]]]></description>
				<content:encoded><![CDATA[<p>Like many people I have the question of, on Solaris 10, can I set the default root shell to ksh.  After some study and research apparently it is ok to do this.  The default shell for root is /sbin/sh.  For those of us that use Linux this is not a symlink to bash but a static binary of the Bourne Shell.</p>
<p>Solaris versions previous to 10 had the Bourne Shell statically linked so that in case of a crash root would have access to a shell.  This implies that certain directories were not mounted when booting into a &#8216;rescue&#8217; mode, namely /usr.</p>
<p>With version 10 of Solaris, Sun has dynamically linked linked the Bourne Shell.  This means that it does in fact now use shared libraries.  This also implies that since other shells use shared libraries that it is ok to use the shell of your choice.</p>
<p>Sun has also built code into the OS that if for some reason the shell that is designated as the default is not accessible it will fall back to /sbin/sh.  This resolves the problem of changing the default shell and still being able to sleep at night.  Still experience says this is new and different, do I really want to rely on this new style?</p>
<p>If you are like me, a devout coward regarding such things, then you probably are reluctant to go this route.  Because of my cowardice I have reached a compromise that works well, at least for me.</p>
<p>First I created a /root home directory and changed the home directory in /etc/passwd to reflect this.  The directory mode is set to 700 and user/group ownership is set to root.</p>
<p>I then copied the contents of /etc/skel, including the hidden file .profile, into root&#8217;s home directory.  After that I edited the .profile file so that it contains the following:<br />
<code><br />
SHELL=/bin/ksh<br />
export SHELL<br />
HISTFILE=~/.history<br />
HISTSIZE=1000<br />
</code></p>
<p>This gives me a login and working shell of ksh while leaving the default shell in /etc/passwd to /sbin/sh.</p>
<p>hth.</p>
<p>John</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/linux-lotus-domino/solaris-10-ksh-and-root/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Help!  root can&#8217;t login</title>
		<link>http://itknowledgeexchange.techtarget.com/linux-lotus-domino/help-root-cant-login/</link>
		<comments>http://itknowledgeexchange.techtarget.com/linux-lotus-domino/help-root-cant-login/#comments</comments>
		<pubDate>Sat, 08 Nov 2008 14:59:51 +0000</pubDate>
		<dc:creator>Xjlittle</dc:creator>
				<category><![CDATA[/root]]></category>
		<category><![CDATA[chage]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[passwd]]></category>
		<category><![CDATA[password]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/linux-lotus-domino/help-root-cant-login/</guid>
		<description><![CDATA[I occasionally see the post Help! root can&#8217;t login on some of the discussion boards around the net. Generally this is for two reasons. Either the account has expired or a forgotten password. The forgotten password is straightforward to fix. When booting the machine enter the grub menu. Your default kernel should already be highlighted. [...]]]></description>
				<content:encoded><![CDATA[<p>I occasionally see the post Help! root can&#8217;t login on some of the discussion boards around the net.  Generally this is for two reasons.  Either the account has expired or a forgotten password.</p>
<p>The forgotten password is straightforward to fix.  When booting the machine enter the grub menu.  Your default kernel should already be highlighted.  Press e which will bring you to a screen with the three lines for that kernel that are in the grub.conf.  Highlight the one titled kernel and press e again.</p>
<p>This will open up that line for editing.  Move to the end of the line and type s and then hit enter.  Now type b for that kernel to boot.  This will put you into single user mode.</p>
<p>Once the machine has booted into single user mode you may change root&#8217;s password using the normal passwd command.</p>
<p>Having root&#8217;s account account expired is a little more complicatedb is still straightforward.  Once again boot into single user mode as describe above.  We will use the chage command to fix root&#8217;s account.</p>
<p>If you issue:<br />
<code><br />
[root@centos5-lt ~]# chage --help<br />
Usage: chage [options] user</p>
<p>Options:<br />
  -d, --lastday LAST_DAY                            set last password change to LAST_DAY<br />
  -E, --expiredate EXPIRE_DATE                  set account expiration date to EXPIRE_DATE<br />
  -h, --help                                                   display this help message and exit<br />
  -I, --inactive INACTIVE                                set password inactive after expiration<br />
                                                                   to INACTIVE<br />
  -l, --list                                                       show account aging information<br />
  -m, --mindays MIN_DAYS                          set minimum number of days before password<br />
                                                                   change to MIN_DAYS<br />
  -M, --maxdays MAX_DAYS                       set maximim number of days before password<br />
                                                                   change to MAX_DAYS<br />
  -W, --warndays WARN_DAYS                    set expiration warning days to WARN_DAYS</p>
<p>[root@centos5-lt ~]#<br />
</code></p>
<p>The two comands that we are interested in here are<br />
<code><br />
chage -l<br />
chage -E<br />
</code>chage -l root will list root&#8217;s user account so that we can confirm that it is expired.  We want to set the account so that it will not expire.  use chage -E -1 root to accomplish this.<br />
<code><br />
chage -l root<br />
Account expires                        : Nov 07, 2008    #The account expires line is what you want to check<br />
chage -E -1 root<br />
chage -l root<br />
Account expires                         : never  # Now we have solved our problem of the root account expiring<br />
</code></p>
<p>There you go.  Now you should be able to fix root&#8217;s account if you accidentally make a mistake with it.</p>
<p>-j</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/linux-lotus-domino/help-root-cant-login/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Grub and boot errors</title>
		<link>http://itknowledgeexchange.techtarget.com/linux-lotus-domino/grub-and-boot-errors/</link>
		<comments>http://itknowledgeexchange.techtarget.com/linux-lotus-domino/grub-and-boot-errors/#comments</comments>
		<pubDate>Sat, 13 Sep 2008 00:26:23 +0000</pubDate>
		<dc:creator>Xjlittle</dc:creator>
				<category><![CDATA[/root]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[grub.conf]]></category>
		<category><![CDATA[initrd]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[menu.lst]]></category>
		<category><![CDATA[red hat]]></category>
		<category><![CDATA[vmlinuz]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/linux-lotus-domino/grub-and-boot-errors/</guid>
		<description><![CDATA[If you&#8217;ve administered or customized Linux long enough you&#8217;ve no doubt created a situation at some point where, during the boot process, that GRUB throws an error. We&#8217;re going to discuss some of these situations below along with ways to work through them. If a file name or partition in the GRUB configuration file is [...]]]></description>
				<content:encoded><![CDATA[<p>If you&#8217;ve administered or customized Linux long enough you&#8217;ve no doubt created a situation at some point where, during the boot process, that GRUB throws an error.  We&#8217;re going to discuss some of these situations below along with ways to work through them.</p>
<p>If a file name or partition in the GRUB configuration file is incorrect GRUB won&#8217;t be able to find critical files such as the Linux kernel.  For instance if the root directive points to something other than the /boot directory GRUB will throw one of the following errors:<br />
<code><br />
Error 17:  Cannot mount selected partition<br />
Error 27: Unrecognized command<br />
Error while parsing number<br />
Cannot mount selected partition<br />
</code></p>
<p>If the GRUB configuration file is completely missing you will see the following:<br />
<code><br />
grub&gt;<br />
</code><br />
If you find yourself at this prompt you can find a list of available commands by hitting the tab key.</p>
<p>The first thing that you are going to want to do in any of these cases is check and make sure that your root directive is correct.  To do this, at the grub prompt, use the find command to locate the GRUB configuration file.  Your search would begin something like this:<br />
<code><br />
grub&gt; find (hd0,0)/grub/grub.conf<br />
</code><br />
where hd0,0 is the 1st hard disk and the 1st partition on the hard disk.  Repeat the process using the various partitions on the 1st disk (hd0,1 hd0,2) and so on until you find the configuration file.  If the partition is not found you will get an error:<br />
<code><br />
Error 15: File not found<br />
</code><br />
Once you have found the GRUB configuration file check it&#8217;s location against what the boot loader is showing.  You can check the contents of the file by using the cat command:<br />
<code><br />
grub&gt; cat (hd0,0)/grub/grub.conf<br />
</code><br />
Another way to find the same information is to locate the stage1 boot loader file:<br />
<code><br />
grub&gt; find /grub/stage1<br />
</code><br />
You will see output specifying the /boot partition:<br />
<code><br />
(hd0,0)<br />
</code><br />
Perhaps the most simple way to get this information is to simply type root at the prompt:<br />
<code><br />
grub&gt;root<br />
(hd0,0) : Filesystem type is ext2fs, partition type 0x83<br />
</code><br />
Command completion also works from the GRUB command line.  If you don&#8217;t remember the name of the kernel file type kernel / and press the tab key.  This will show you the available files in the boot directory.  The same holds true for the initrd file.</p>
<p>To sum all of this up and get your machine booted, at the GRUB configuration file type c for the GRUB command line. You should be at the grub&gt; prompt.</p>
<p>Start by issuing the root directive as described above.  This will set up your /boot  partition.  Now setup your kernel command line as described above.  Remember that you can use command completion as this is a long line.  At the prompt type:<br />
<code><br />
grub&gt; kernel /vmli (hit the tab key to complete the vmlinuz line).<br />
</code><br />
You will also need the root=/your/root/partition directive on this line for Linux to boot.  Last setup the third line by typing initrd which specifies the initial RAM disk.<br />
<code><br />
grub&gt; initrd /init (hit the tab key to complete the initrd line)<br />
</code><br />
Now enter boot at the command prompt and your Linux machine should boot if you have the correct parameters.</p>
<p>Of course you could possibly prevent all of this by keeping a backup copy of the GRUB configuration file in the root&#8217;s home directory at /root.</p>
<p>-j</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/linux-lotus-domino/grub-and-boot-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Troubleshooot your Linux boot process with GRUB</title>
		<link>http://itknowledgeexchange.techtarget.com/linux-lotus-domino/troubleshooot-your-linux-boot-process-with-grub/</link>
		<comments>http://itknowledgeexchange.techtarget.com/linux-lotus-domino/troubleshooot-your-linux-boot-process-with-grub/#comments</comments>
		<pubDate>Thu, 11 Sep 2008 00:36:47 +0000</pubDate>
		<dc:creator>Xjlittle</dc:creator>
				<category><![CDATA[/boot]]></category>
		<category><![CDATA[/root]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[grub.conf]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[menu.lst]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/linux-lotus-domino/troubleshooot-your-linux-boot-process-with-grub/</guid>
		<description><![CDATA[Red Hat and subsequently Fedora and CentOS use the the GRUB (Grand Unified Boot Loader) to initialize the kernel and boot into Linux. I&#8217;m going to look at some of the common error messages possible when booting Linux and how to edit the GRUB boot loader to test and fix the errors. GRUB has 6 [...]]]></description>
				<content:encoded><![CDATA[<p>Red Hat and subsequently Fedora and CentOS use the the GRUB (Grand Unified Boot Loader) to initialize the kernel and boot into Linux.  I&#8217;m going to look at some of the common error messages possible when booting Linux and how to edit the GRUB boot loader to test and fix the errors.</p>
<p>GRUB has 6 basic editing commands:<br />
<code><br />
b=boot the currently listed operating system<br />
d=delete the current line<br />
e=edit the current line<br />
a=append a parameter to GRUB<br />
o=create an empty line underneath the current line<br />
O=create an empty line above the current line<br />
</code><br />
These are the commands with which I will initially be working to access the grub configuration file.</p>
<p>After you boot to the GRUB menu screen highlight the line the Linux version that you want to edit.  I like to  use e so that I can choose which line that I want to edit.</p>
<p>On Red Hat and it&#8217;s derivatives you will usually see three lines at this point:<br />
<code><br />
root<br />
kernel<br />
initrd<br />
</code><br />
While any of the three could need editing to pass a parameter to the kernel you will want to use the kernel line.  Highlight this line and press e to edit.  Move to the end of the line to add a parameter.  The kernel has many parameters that you can add here.  I will use some of the more commonly used.</p>
<p>Booting into a different runlevel is probably one of the most common tasks of a Linux administrator.  The Red Hat kernel has 7 parameters that you can use to boot to the runlevel that you want.  These are 1, single (or s), emergency, 2, 3, 4, or 5.  If you add single or s to the end of this line you will boot into single user mode.  If you boot into runlevel 0 or 6 you will either halt or reboot your machine.</p>
<p>Another common area that not only administrators but users as well find themselves requiring is the VGA setting.  Occasionally on updating a video driver or for various other reasons your machine may continue booting but only showing a black screen without any output.  A possible way to overcome this so that you can see the output and at least get to runlevel 3 is vga=ask.</p>
<p>Some other commonly used parameters are selinux=[0|1] where 0 disables selinux, acpi=[force|off|noirq|ht|strict] and mem=n[KMG].</p>
<p>The ACPI option controls parameters that the Advanced Configuration and Power Interface (ACPI) subsystem can use.  This is the main option for the Advanced Configuration and Power Interface (ACPI). The values are:<br />
force: Force ACPI to be enabled. Can be used to override the kernel configuration option that disabled it.<br />
off: Disable ACPI. Can be used to override the kernel configuration option that enabled it.<br />
noirq: Prevent ACPI from being used for IRQ routing.<br />
ht: Run only enough of the ACPI layer to enable HyperThreading on processors that are capable of it.<br />
strict: Make the ACPI layer be less tolerant of platforms that are not fully compliant with the ACPI specification.</p>
<p>The mem option forces a certain amount of memory used by the kernel. When<br />
used with the memmap= option, physical address space collisions can be avoided. Without the memmap= option, this option could cause PCI devices to be placed at addresses that belong to unused RAM.  n specifies the amount of memory to force and is measured in units of kilobytes (K), megabytes (M), or gigabytes (G).</p>
<p>That covers some basics kernel parameters, how to access and edit them.  You will find these most useful generally on a new install or after adding new hardware that is either not detected or acting properly.</p>
<p>If you want to see more on the various kernel options and parameters install the kernel-doc package.  The documentation can then be found under /usr/share/doc/kernel-doc-2.6.18/Documentation on recent Red Hat and CentOS versions.</p>
<p>Next post I&#8217;ll get into some of the error messages that are common when you Linux machine refuses to boot.</p>
<p>-j</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/linux-lotus-domino/troubleshooot-your-linux-boot-process-with-grub/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Graphical Linux File Structure representation</title>
		<link>http://itknowledgeexchange.techtarget.com/linux-lotus-domino/graphical-linux-file-structure-representation/</link>
		<comments>http://itknowledgeexchange.techtarget.com/linux-lotus-domino/graphical-linux-file-structure-representation/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 15:37:19 +0000</pubDate>
		<dc:creator>Xjlittle</dc:creator>
				<category><![CDATA[/bin]]></category>
		<category><![CDATA[/boot]]></category>
		<category><![CDATA[/home]]></category>
		<category><![CDATA[/root]]></category>
		<category><![CDATA[/sbin]]></category>
		<category><![CDATA[fhs]]></category>
		<category><![CDATA[file system]]></category>
		<category><![CDATA[Filesystem Hierarchy Standard]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux kernel]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/linux-lotus-domino/graphical-linux-file-structure-representation/</guid>
		<description><![CDATA[I ran across the following jpeg file on another blog. I thought it a reasonable idea to distribute this as much as possible as it is a very good representation of the Linux file structure. A couple of things to note about this graphic: The author did it in caps for readability. None of the [...]]]></description>
				<content:encoded><![CDATA[<p>I ran across the following jpeg file on another <a href="http://geek2live.blogspot.com/2007/09/linux-file-structure.htm">blog</a>.  I thought it a reasonable idea to distribute this as much as possible as it is a very good representation of the <a href="http://www.pathname.com/fhs/">Linux file structure</a>.</p>
<p>A couple of things to note about this graphic:<br />
The author did it in caps for readability.  None of the files or directories shown are in caps on a Linux system.  The ROOT label at the top is to designate that it is representing the root file system.  It does not represent the root&#8217;s home directory which is /root in the lower right hand corner of the graphic.  This probably should have been labeled &#8220;ROOT FILESYSTEM&#8221;.</p>
<p>For new Linux users reading this you should note that most systems today will by default create three to four partitions for mounting various directories:<br />
/boot    holds the kernel and files that the boot loader uses to boot Linux<br />
/           holds the user (/bin)and system (/sbin) binaries as well as other configuration and log files<br />
/home  holds the directories of users that have been added to the system<br />
/swap   the partition the system uses for swap memory</p>
<p>Here&#8217;s the graphic.  Enjoy!<br />
-j</p>
<p>Click to enlarge<br />
<a href="http://cdn.ttgtmedia.com/ITKE/uploads/blogs.dir/77/files/2008/09/linux_file_structure.jpg" title="Linux File System Graphic">Linux File System Graphic</a></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/linux-lotus-domino/graphical-linux-file-structure-representation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
