<?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: Revert chsh changes in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/revert-chsh-changes/m-p/5270183#M473232</link>
    <description>Just to clarify the situation:&lt;BR /&gt; &lt;BR /&gt;This user had a non-standard shell, csh in this case. That means that all the customization you required was never in .profile (the standard for POSIX and ksh) so all the suggestions would not work until you changed back to /usr/bin/csh as the shell.&lt;BR /&gt; &lt;BR /&gt;So for any user that is runing csh, you should not change the shell until the user translates all the customized .cshrc commands into a .profile, something does require some experience. Otherwise, don't change the shell. This is why most sysadmins reject the use of csh (and relatives like tcsh) for use in Unix servers -- they are incompatible with standard shells.</description>
    <pubDate>Tue, 18 Jan 2011 17:57:37 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2011-01-18T17:57:37Z</dc:date>
    <item>
      <title>Revert chsh changes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/revert-chsh-changes/m-p/5270170#M473219</link>
      <description>&lt;!--!*#--&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;I have accidently changed the shell using chsh of user prdadm. Now the environment variables are gone and nothing is working via the user.&lt;BR /&gt;&lt;BR /&gt;Please advise on how to revert these changes. I have a Data Protector backup. Which files should I restore in order to gain the functionality back?</description>
      <pubDate>Mon, 17 Jan 2011 12:59:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/revert-chsh-changes/m-p/5270170#M473219</guid>
      <dc:creator>Taurian</dc:creator>
      <dc:date>2011-01-17T12:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Revert chsh changes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/revert-chsh-changes/m-p/5270171#M473220</link>
      <description>chsh simply changes the shell. Run chsh to change it back to the original shell. This would be a common problem changing the shell from ksh or sh to something totally incompatible like csh.&lt;BR /&gt; &lt;BR /&gt;chsh prdadm /usr/bin/sh</description>
      <pubDate>Mon, 17 Jan 2011 13:10:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/revert-chsh-changes/m-p/5270171#M473220</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2011-01-17T13:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Revert chsh changes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/revert-chsh-changes/m-p/5270172#M473221</link>
      <description>&lt;!--!*#--&gt;Hi Bill,&lt;BR /&gt;&lt;BR /&gt;Already tried "chmod prdadm /usr/bin/sh", but it's not working.</description>
      <pubDate>Mon, 17 Jan 2011 13:12:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/revert-chsh-changes/m-p/5270172#M473221</guid>
      <dc:creator>Taurian</dc:creator>
      <dc:date>2011-01-17T13:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Revert chsh changes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/revert-chsh-changes/m-p/5270173#M473222</link>
      <description>&lt;!--!*#--&gt;I am actually getting the error: ".profile[40]: SHLIB_PATH: Parameter not set." when I log in to prdadm user.&lt;BR /&gt;&lt;BR /&gt;Also, I am failing to run sqlplus, due to which other problems are arising.</description>
      <pubDate>Mon, 17 Jan 2011 13:17:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/revert-chsh-changes/m-p/5270173#M473222</guid>
      <dc:creator>Taurian</dc:creator>
      <dc:date>2011-01-17T13:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Revert chsh changes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/revert-chsh-changes/m-p/5270174#M473223</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Already tried "chmod prdadm /usr/bin/sh", but it's not working.&lt;BR /&gt;&lt;BR /&gt;Re-read Bill's post.  You need to use 'chsh' not 'chmod'.&lt;BR /&gt;&lt;BR /&gt;Another way is, as root, edit the 'prdadm' account in '/etc/passwd' and specify '/usr/bin/sh' as the login shell.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 17 Jan 2011 13:40:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/revert-chsh-changes/m-p/5270174#M473223</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2011-01-17T13:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: Revert chsh changes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/revert-chsh-changes/m-p/5270175#M473224</link>
      <description>&lt;!--!*#--&gt;&amp;gt; chsh prdadm /usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Already tried "chmod prdadm /usr/bin/sh",&lt;BR /&gt;&amp;gt; but it's not working.&lt;BR /&gt;&lt;BR /&gt;"chsh" and "chmod" are spelled differently&lt;BR /&gt;for a reason.&lt;BR /&gt;&lt;BR /&gt;"It's not working" is not a useful problem&lt;BR /&gt;description.  It does not say what happened&lt;BR /&gt;when you tried this (wrong) command.</description>
      <pubDate>Mon, 17 Jan 2011 13:42:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/revert-chsh-changes/m-p/5270175#M473224</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-01-17T13:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Revert chsh changes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/revert-chsh-changes/m-p/5270176#M473225</link>
      <description>&lt;!--!*#--&gt;TYPO mistake guys! I meant to say chsh not chmod. I tried the chsh command, not chmod.&lt;BR /&gt;&lt;BR /&gt;Already told you the error I am getting. The user prdadm does not recognise sqlplus command, and in turn SAP startup is failing.</description>
      <pubDate>Mon, 17 Jan 2011 13:47:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/revert-chsh-changes/m-p/5270176#M473225</guid>
      <dc:creator>Taurian</dc:creator>
      <dc:date>2011-01-17T13:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Revert chsh changes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/revert-chsh-changes/m-p/5270177#M473226</link>
      <description>Perhaps you can tell us what shell you specified for the user? What is the user's shell now?&lt;BR /&gt; &lt;BR /&gt;The environment variables are normally set with the user's profile and for sane shells like POSIX and ksh, that would be .profile, possibly .kshrc. To see what the user has right now, use this command:&lt;BR /&gt; &lt;BR /&gt;awk -F: '/prdadm/{print $NF}' /etc/passwd</description>
      <pubDate>Mon, 17 Jan 2011 13:58:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/revert-chsh-changes/m-p/5270177#M473226</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2011-01-17T13:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Revert chsh changes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/revert-chsh-changes/m-p/5270178#M473227</link>
      <description>&amp;gt;Which files should I restore in order to gain the functionality back?&lt;BR /&gt;&lt;BR /&gt;This should be as simple as restoring /etc/passwd (if system isn't trusted).&lt;BR /&gt;&lt;BR /&gt;Of course, have you made any other changes to that file?</description>
      <pubDate>Mon, 17 Jan 2011 23:16:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/revert-chsh-changes/m-p/5270178#M473227</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-01-17T23:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Revert chsh changes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/revert-chsh-changes/m-p/5270179#M473228</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] I tried the chsh command, not chmod.&lt;BR /&gt;&lt;BR /&gt;And then what happened?  Did you get the&lt;BR /&gt;user's shell changed back to the right one?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Already told you the error I am getting.&lt;BR /&gt;&lt;BR /&gt;When you did what, exactly?&lt;BR /&gt;&lt;BR /&gt;As usual, showing actual commands with their&lt;BR /&gt;actual output can be more helpful than vague&lt;BR /&gt;descriptions or interpretations.  And using&lt;BR /&gt;copy+paste can be more reliable than trying&lt;BR /&gt;to do it manually.</description>
      <pubDate>Mon, 17 Jan 2011 23:26:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/revert-chsh-changes/m-p/5270179#M473228</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-01-17T23:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Revert chsh changes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/revert-chsh-changes/m-p/5270180#M473229</link>
      <description>Hi Taurian&lt;BR /&gt;The simplest for you would be to have your system administrator (root user), to change your login shell...&lt;BR /&gt;&lt;BR /&gt;It seems as you have changed the login shell from cshrc perhaps to sh/ksh.&lt;BR /&gt;&lt;BR /&gt;csh reads .cshrc file to set you environment&lt;BR /&gt;sh/ksh reads your .profile to do this&lt;BR /&gt;&lt;BR /&gt;Now, when switching shell - you seem to have an error in .profile which terminate the processing of defining your environment correctly, or forking new shells.&lt;BR /&gt;&lt;BR /&gt;The mess relate to the error given when parsing the .profile - so you need to get this corrected - and again... since you seem a bit unfamiliare with unix I suggest you get the root user to do this.&lt;BR /&gt;&lt;BR /&gt;Should I pick a guess - you have a .profile who try to source several other environment files - and have syntax error in one of them.&lt;BR /&gt;... could even be a SAP system ;)&lt;BR /&gt;&lt;BR /&gt;An alternativ could be to move away the current .profile and replace with a simple template file, just so that you can run the chsh command&lt;BR /&gt;&lt;BR /&gt;/Tor-Arne</description>
      <pubDate>Tue, 18 Jan 2011 02:48:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/revert-chsh-changes/m-p/5270180#M473229</guid>
      <dc:creator>Tor-Arne Nostdal</dc:creator>
      <dc:date>2011-01-18T02:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Revert chsh changes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/revert-chsh-changes/m-p/5270181#M473230</link>
      <description>&lt;!--!*#--&gt;Hi Everyone,&lt;BR /&gt;&lt;BR /&gt;Thanks for all your help. Sorry that I was in a rush yesterday that's why I could copy/paste the commands.&lt;BR /&gt;&lt;BR /&gt;Anyways, Tor-Arne's reply was the best and right on the mark, although I am not that much unfamiliar with UNIX. Everyone needs a little help here and there.&lt;BR /&gt;&lt;BR /&gt;Anywho. My original shell was apparently "csh". Which I changed to "ksh" and so it was having trouble processing the .profile file as Tor-Arne put it. I then changed the shell to "sh", think that it was the original shell. But still the .profile was not being processed properly.&lt;BR /&gt;&lt;BR /&gt;Now with Tor-Arne's help, I've restored the original "csh" shell. There are lots of variables being set in the ".cshrc" file.&lt;BR /&gt;&lt;BR /&gt;Now the system behaviour is back to normal.</description>
      <pubDate>Tue, 18 Jan 2011 06:15:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/revert-chsh-changes/m-p/5270181#M473230</guid>
      <dc:creator>Taurian</dc:creator>
      <dc:date>2011-01-18T06:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Revert chsh changes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/revert-chsh-changes/m-p/5270182#M473231</link>
      <description>&lt;!--!*#--&gt;Read Tor-Arne's post and my last comments for the solution.</description>
      <pubDate>Tue, 18 Jan 2011 06:18:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/revert-chsh-changes/m-p/5270182#M473231</guid>
      <dc:creator>Taurian</dc:creator>
      <dc:date>2011-01-18T06:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Revert chsh changes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/revert-chsh-changes/m-p/5270183#M473232</link>
      <description>Just to clarify the situation:&lt;BR /&gt; &lt;BR /&gt;This user had a non-standard shell, csh in this case. That means that all the customization you required was never in .profile (the standard for POSIX and ksh) so all the suggestions would not work until you changed back to /usr/bin/csh as the shell.&lt;BR /&gt; &lt;BR /&gt;So for any user that is runing csh, you should not change the shell until the user translates all the customized .cshrc commands into a .profile, something does require some experience. Otherwise, don't change the shell. This is why most sysadmins reject the use of csh (and relatives like tcsh) for use in Unix servers -- they are incompatible with standard shells.</description>
      <pubDate>Tue, 18 Jan 2011 17:57:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/revert-chsh-changes/m-p/5270183#M473232</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2011-01-18T17:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Revert chsh changes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/revert-chsh-changes/m-p/5270184#M473233</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] This is why most sysadmins reject the&lt;BR /&gt;&amp;gt; use of csh (and relatives like tcsh) for&lt;BR /&gt;&amp;gt; use in Unix servers -- they are&lt;BR /&gt;&amp;gt; incompatible with standard shells.&lt;BR /&gt;&lt;BR /&gt;"most"?  Really?  You took a survey?  I've&lt;BR /&gt;noticed that Spanish is "incompatible with"&lt;BR /&gt;English (the "standard" language), too.  Do&lt;BR /&gt;these "sysadmins" also "reject the use of"&lt;BR /&gt;Spanish (and relatives like Portuguese)?  Do&lt;BR /&gt;they also reject the use of Fortran and&lt;BR /&gt;Pascal because they're incompatible with&lt;BR /&gt;standard C?&lt;BR /&gt;&lt;BR /&gt;"Different" and "incompatible" are spelled&lt;BR /&gt;differently for a reason.</description>
      <pubDate>Tue, 18 Jan 2011 20:02:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/revert-chsh-changes/m-p/5270184#M473233</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-01-18T20:02:21Z</dc:date>
    </item>
  </channel>
</rss>

