<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: root shell in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/root-shell/m-p/2946998#M4191</link>
    <description>What has been said about just launcing 'ksh' thus far is almost correct.&lt;BR /&gt;&lt;BR /&gt;Whilst 'ksh' isn't being launched from 'login' directly, and doesn't think it needs to read '~/.profile', you can tell ksh that it is a login shell by passing the argument '-l'.&lt;BR /&gt;&lt;BR /&gt;If you read 'man ksh', it will outline what this does and doesn't do..&lt;BR /&gt;&lt;BR /&gt;One other note, so you dont have to double 'exit' when you leave the shell, instead of just calling '/bin/ksh' as the last line of your login, use 'exec /bin/ksh'.  This will switch the control of the tty to the ksh process.  When it ends, it closes off everything, and logs you out.</description>
    <pubDate>Wed, 09 Apr 2003 22:09:36 GMT</pubDate>
    <dc:creator>Stuart Browne</dc:creator>
    <dc:date>2003-04-09T22:09:36Z</dc:date>
    <item>
      <title>root shell</title>
      <link>https://community.hpe.com/t5/operating-system-linux/root-shell/m-p/2946990#M4183</link>
      <description>Hi,&lt;BR /&gt;i want to change the root shell password from /sbin/sh to /bin/ksh&lt;BR /&gt;is it possible?&lt;BR /&gt;what impact does it have?&lt;BR /&gt;thanks &lt;BR /&gt;Tarek</description>
      <pubDate>Wed, 09 Apr 2003 09:58:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/root-shell/m-p/2946990#M4183</guid>
      <dc:creator>Tarek_1</dc:creator>
      <dc:date>2003-04-09T09:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: root shell</title>
      <link>https://community.hpe.com/t5/operating-system-linux/root-shell/m-p/2946991#M4184</link>
      <description>Hi.&lt;BR /&gt;&lt;BR /&gt;Of course it's possible, whether it's a good idea is another question.&lt;BR /&gt;&lt;BR /&gt;It would probably be better to use /bin/sh and then start ksh from your .profile or manually.&lt;BR /&gt;&lt;BR /&gt;G.</description>
      <pubDate>Wed, 09 Apr 2003 09:59:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/root-shell/m-p/2946991#M4184</guid>
      <dc:creator>Goran Koruga</dc:creator>
      <dc:date>2003-04-09T09:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: root shell</title>
      <link>https://community.hpe.com/t5/operating-system-linux/root-shell/m-p/2946992#M4185</link>
      <description>Tarek,&lt;BR /&gt;&lt;BR /&gt;No you should not do this! When you want to login in single user mode, your filesystems are not mounted, and you will not get a shell.&lt;BR /&gt;&lt;BR /&gt;You can put ksh in your .profile, so you can use ksh.&lt;BR /&gt;&lt;BR /&gt;Greetzz&lt;BR /&gt;Donald</description>
      <pubDate>Wed, 09 Apr 2003 10:11:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/root-shell/m-p/2946992#M4185</guid>
      <dc:creator>Donald Kok</dc:creator>
      <dc:date>2003-04-09T10:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: root shell</title>
      <link>https://community.hpe.com/t5/operating-system-linux/root-shell/m-p/2946993#M4186</link>
      <description>ok&lt;BR /&gt;i have my root shell /sbin/sh and created a .profile under my home dir (but this is also read by sh)&lt;BR /&gt;then i issue ksh but it doesn't read my configuration file (.profile)&lt;BR /&gt;why?</description>
      <pubDate>Wed, 09 Apr 2003 10:36:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/root-shell/m-p/2946993#M4186</guid>
      <dc:creator>Tarek_1</dc:creator>
      <dc:date>2003-04-09T10:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: root shell</title>
      <link>https://community.hpe.com/t5/operating-system-linux/root-shell/m-p/2946994#M4187</link>
      <description>Because it's not a login shell.&lt;BR /&gt;&lt;BR /&gt;G.</description>
      <pubDate>Wed, 09 Apr 2003 10:47:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/root-shell/m-p/2946994#M4187</guid>
      <dc:creator>Goran Koruga</dc:creator>
      <dc:date>2003-04-09T10:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: root shell</title>
      <link>https://community.hpe.com/t5/operating-system-linux/root-shell/m-p/2946995#M4188</link>
      <description>Hi Tarek,&lt;BR /&gt;&lt;BR /&gt;Normally the /sbin/sh binary is compiled with all the libraries statically linked. So, it will run even when the OS boots in single user mode.&lt;BR /&gt;&lt;BR /&gt;ksh may have some dynamic linking so.s built in and so, you wouldn't want to use this.&lt;BR /&gt;&lt;BR /&gt;login with kshell as a non-root user.&lt;BR /&gt;&lt;BR /&gt;Thereafter to work as root, &lt;BR /&gt;run &lt;BR /&gt;&lt;BR /&gt;$ su&lt;BR /&gt;&lt;BR /&gt;- ramd.</description>
      <pubDate>Wed, 09 Apr 2003 11:20:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/root-shell/m-p/2946995#M4188</guid>
      <dc:creator>Ramkumar Devanathan</dc:creator>
      <dc:date>2003-04-09T11:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: root shell</title>
      <link>https://community.hpe.com/t5/operating-system-linux/root-shell/m-p/2946996#M4189</link>
      <description>i'm already loggin in as a ksh user and then issuing su but doesn't work&lt;BR /&gt;let's say after i switch to root&lt;BR /&gt;i want to run a script that sets my env variables:&lt;BR /&gt;user&amp;gt; su &lt;BR /&gt;#&amp;gt; ksh&lt;BR /&gt;#&amp;gt; ./setup&lt;BR /&gt;this setup is the script i want to run and inside i have: &lt;BR /&gt;set -o vi&lt;BR /&gt;alias ll='ls -lart'&lt;BR /&gt;PS1=...&lt;BR /&gt;and so on..&lt;BR /&gt;how should i do?</description>
      <pubDate>Wed, 09 Apr 2003 11:36:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/root-shell/m-p/2946996#M4189</guid>
      <dc:creator>Tarek_1</dc:creator>
      <dc:date>2003-04-09T11:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: root shell</title>
      <link>https://community.hpe.com/t5/operating-system-linux/root-shell/m-p/2946997#M4190</link>
      <description>Hi Tarek.&lt;BR /&gt;&lt;BR /&gt;ksh should read the file pointed at by ENV variable, i.e. ~/.kshrc or so.&lt;BR /&gt;&lt;BR /&gt;G.</description>
      <pubDate>Wed, 09 Apr 2003 11:51:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/root-shell/m-p/2946997#M4190</guid>
      <dc:creator>Goran Koruga</dc:creator>
      <dc:date>2003-04-09T11:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: root shell</title>
      <link>https://community.hpe.com/t5/operating-system-linux/root-shell/m-p/2946998#M4191</link>
      <description>What has been said about just launcing 'ksh' thus far is almost correct.&lt;BR /&gt;&lt;BR /&gt;Whilst 'ksh' isn't being launched from 'login' directly, and doesn't think it needs to read '~/.profile', you can tell ksh that it is a login shell by passing the argument '-l'.&lt;BR /&gt;&lt;BR /&gt;If you read 'man ksh', it will outline what this does and doesn't do..&lt;BR /&gt;&lt;BR /&gt;One other note, so you dont have to double 'exit' when you leave the shell, instead of just calling '/bin/ksh' as the last line of your login, use 'exec /bin/ksh'.  This will switch the control of the tty to the ksh process.  When it ends, it closes off everything, and logs you out.</description>
      <pubDate>Wed, 09 Apr 2003 22:09:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/root-shell/m-p/2946998#M4191</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2003-04-09T22:09:36Z</dc:date>
    </item>
  </channel>
</rss>

