<?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: problem after rm -rf * in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107527#M686871</link>
    <description>&lt;BR /&gt;&amp;gt;The "chmod -R 777 *" club&lt;BR /&gt;&amp;gt;The "chown -R root:bin *" Club are all about ?&lt;BR /&gt;&lt;BR /&gt;Please don't try this!, else, you may have to post one more query :)</description>
    <pubDate>Thu, 08 May 2008 03:34:44 GMT</pubDate>
    <dc:creator>Venkatesh BL</dc:creator>
    <dc:date>2008-05-08T03:34:44Z</dc:date>
    <item>
      <title>problem after rm -rf *</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107514#M686858</link>
      <description>hello admins,&lt;BR /&gt;&lt;BR /&gt;just out of curiosity,on one of my test server i fired #rm -rf * to see which files will be deleted, now i am unable to telnet and run any command...&lt;BR /&gt;&lt;BR /&gt;but to my surprise its running only pwd and cd command but not /usr/bin/pwd and /sbin/ls..&lt;BR /&gt;&lt;BR /&gt;can anybody throw some light on reason for this &lt;BR /&gt;&lt;BR /&gt;and is there any way to recover the system..&lt;BR /&gt;&lt;BR /&gt;thankx in advance..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 07 May 2008 08:55:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107514#M686858</guid>
      <dc:creator>prasadb</dc:creator>
      <dc:date>2008-05-07T08:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: problem after rm -rf *</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107515#M686859</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;These commands are in memory, you can not use the /usr/bin/pwd etc because they are not there anymore.&lt;BR /&gt;&lt;BR /&gt;You will have to recover from a make_tape(net)_recovery or reinstall from cd.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Wed, 07 May 2008 09:58:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107515#M686859</guid>
      <dc:creator>Robert-Jan Goossens_1</dc:creator>
      <dc:date>2008-05-07T09:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: problem after rm -rf *</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107516#M686860</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;You will have to restore from your ignite backup. Some commands are inbuilt in the shell, that is why you are able to run them.&lt;BR /&gt;&lt;BR /&gt;good luck!&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Wed, 07 May 2008 10:16:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107516#M686860</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2008-05-07T10:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: problem after rm -rf *</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107517#M686861</link>
      <description>&amp;gt;just out of curiosity, on one of my test server i fired #rm -rf * to see which files will be deleted&lt;BR /&gt;&lt;BR /&gt;You did this in /?&lt;BR /&gt;Isn't it obvious what will happen?</description>
      <pubDate>Wed, 07 May 2008 10:21:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107517#M686861</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-05-07T10:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: problem after rm -rf *</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107518#M686862</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;You will now need to rebuild (cold-install) your server.&lt;BR /&gt;&lt;BR /&gt;The fact that 'cd' and 'pwd' continue to run may be due to the presence of these commands as shell built-ins in addtion to being standalone executables.&lt;BR /&gt;&lt;BR /&gt;As for recovering your server, I trust that you have a good Ignite backup image.  You will certainly need to rebuild from scratch, otherwise!&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 07 May 2008 11:40:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107518#M686862</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-05-07T11:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: problem after rm -rf *</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107519#M686863</link>
      <description>"i fired &lt;BR /&gt;#rm -rf * &lt;BR /&gt;to see which files will be deleted"&lt;BR /&gt;&lt;BR /&gt;Now you know it ... if you would ask instead, it would be not that painful ...</description>
      <pubDate>Wed, 07 May 2008 16:56:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107519#M686863</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2008-05-07T16:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: problem after rm -rf *</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107520#M686864</link>
      <description>At least it didn't say:&lt;BR /&gt;&lt;BR /&gt;"i was fired after #rm -rf *"</description>
      <pubDate>Wed, 07 May 2008 17:10:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107520#M686864</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2008-05-07T17:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: problem after rm -rf *</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107521#M686865</link>
      <description>Sometimes it helps to read the man page to understand the commands, even it is for a test system:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-60103/rm.1.html" target="_blank"&gt;http://docs.hp.com/en/B2355-60103/rm.1.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Your command forced to delete everything below your current directory.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But now you have a very solid status and plenty of space on the disks ... &lt;BR /&gt;&lt;BR /&gt;;-)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 07 May 2008 17:19:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107521#M686865</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2008-05-07T17:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: problem after rm -rf *</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107522#M686866</link>
      <description>Yet another reason to use the scheme (common&lt;BR /&gt;on Linux systems) of giving "root" a home&lt;BR /&gt;directory other than "/", like "/root".  It&lt;BR /&gt;doesn't actually educate (or raise the IQ of)&lt;BR /&gt;the fellow who has the "root" password, but&lt;BR /&gt;it can help to limit the damage in a case&lt;BR /&gt;like this.  (Some of the time, at least.)&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] to see which files will be deleted&lt;BR /&gt;&amp;gt; [...]&lt;BR /&gt;&lt;BR /&gt;Which files did you think that it _wouldn't_&lt;BR /&gt;delete?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; and is there any way to recover the&lt;BR /&gt;&amp;gt; system..&lt;BR /&gt;&lt;BR /&gt;And the best time to think about this is&lt;BR /&gt;when?</description>
      <pubDate>Wed, 07 May 2008 17:58:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107522#M686866</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-05-07T17:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: problem after rm -rf *</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107523#M686867</link>
      <description>&amp;gt;&amp;gt; And the best time to think about this is&lt;BR /&gt;when?&lt;BR /&gt;&lt;BR /&gt;I guess the answer is: NOW.&lt;BR /&gt;&lt;BR /&gt;__LOL__&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You just found 1 out of many ways to destroy the system, but there are sooo many other ways ... if you want to test some others, let us know ... &lt;BR /&gt;&lt;BR /&gt;Keep smiling.</description>
      <pubDate>Wed, 07 May 2008 18:04:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107523#M686867</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2008-05-07T18:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: problem after rm -rf *</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107524#M686868</link>
      <description>Congratulations! You are now a member of the "rm -rf *" Club. There are many members, most of them are sadder but wiser system administrators (or unemployed). There are a couple of additional Clubs for you to join (if you haven't already become a member):&lt;BR /&gt; &lt;BR /&gt;The "chmod -R 777 *" club&lt;BR /&gt;The "chown -R root:bin *" Club&lt;BR /&gt; &lt;BR /&gt;As mentioned, the "/" directory is the *WORST* possible location for root's HOME yet unfortunately, this is the default for virtually all flavors of UNIX. Never cd to / unless you are shutting down. Never execute any command that can recursively act on files and directories until you have previewed the command (ie, rm -i *) and now that you know the consequences, put these aliases in /etc/profile:&lt;BR /&gt; &lt;BR /&gt;alias rm="/usr/bin/rm -i"&lt;BR /&gt;alias cp="/usr/bin/cp -i"&lt;BR /&gt;alias mv="/usr/bin/mv -i"&lt;BR /&gt; &lt;BR /&gt;This will help immensely by prompting you with something like this:&lt;BR /&gt; &lt;BR /&gt;rm -i -rf *&lt;BR /&gt;/stand/vmunix: ? [y/n]&lt;BR /&gt; &lt;BR /&gt;AS you might expect, it would be a bad thing to remove /stand/vmunix...etc.&lt;BR /&gt; &lt;BR /&gt;Another really useful command is: type&lt;BR /&gt; &lt;BR /&gt;This is actually an alias to "whence -v" and is the only useful way to determine what will be run when you type a command. In your case:&lt;BR /&gt; &lt;BR /&gt;# type pwd cd ls&lt;BR /&gt;pwd is a shell builtin.&lt;BR /&gt;cd is a shell builtin. &lt;BR /&gt;ls is /usr/bin/ls&lt;BR /&gt; &lt;BR /&gt;The commands: which and whereis are useless in telling you what will happen in the shell. For instance, in my shell, I get this:&lt;BR /&gt; &lt;BR /&gt;pwd is an alias for /usr/bin/pwd&lt;BR /&gt;cd is a shell builtin.&lt;BR /&gt;ls is an alias for /usr/bin/ls -aF&lt;BR /&gt; &lt;BR /&gt;In other words, I am *NOT* running the 'normal' commands because I have aliased pwd and ls. The reason for pwd is to show the 'real' directory when using cd in the shell to follow a transition link. For example:&lt;BR /&gt; &lt;BR /&gt;$ cd /usr/spool/lp/interface&lt;BR /&gt;$ type pwd&lt;BR /&gt;pwd is a shell builtin.&lt;BR /&gt;$ pwd&lt;BR /&gt;/usr/spool/lp/interface&lt;BR /&gt;$ /usr/bin/pwd&lt;BR /&gt;/etc/lp/interface&lt;BR /&gt; &lt;BR /&gt;The shell can be a bit misleading at times...</description>
      <pubDate>Wed, 07 May 2008 19:22:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107524#M686868</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2008-05-07T19:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: problem after rm -rf *</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107525#M686869</link>
      <description>thank you all..&lt;BR /&gt;&lt;BR /&gt;Bill i was just wondering to know what is &lt;BR /&gt;&lt;BR /&gt;The "chmod -R 777 *" club&lt;BR /&gt;The "chown -R root:bin *" Club are all about ?&lt;BR /&gt;&lt;BR /&gt;can you throw some light on these ?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 08 May 2008 03:01:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107525#M686869</guid>
      <dc:creator>prasadb</dc:creator>
      <dc:date>2008-05-08T03:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: problem after rm -rf *</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107526#M686870</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;The "chmod -R 777 *" club&lt;BR /&gt;&amp;gt;The "chown -R root:bin *" Club are all about ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;these were just anecdots that Bill has used just to say that there have been people before you who have had the same incident before. So, you are not the privileged member of this club... :)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Nothing to worry about. It was just a joke!&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Thu, 08 May 2008 03:21:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107526#M686870</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2008-05-08T03:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: problem after rm -rf *</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107527#M686871</link>
      <description>&lt;BR /&gt;&amp;gt;The "chmod -R 777 *" club&lt;BR /&gt;&amp;gt;The "chown -R root:bin *" Club are all about ?&lt;BR /&gt;&lt;BR /&gt;Please don't try this!, else, you may have to post one more query :)</description>
      <pubDate>Thu, 08 May 2008 03:34:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107527#M686871</guid>
      <dc:creator>Venkatesh BL</dc:creator>
      <dc:date>2008-05-08T03:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: problem after rm -rf *</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107528#M686872</link>
      <description>thanx yogiraj, and all who gave me their precious time to answer my doubts and question...</description>
      <pubDate>Thu, 08 May 2008 03:35:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107528#M686872</guid>
      <dc:creator>prasadb</dc:creator>
      <dc:date>2008-05-08T03:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: problem after rm -rf *</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107529#M686873</link>
      <description>&amp;gt;Bill: The reason for pwd is to show the 'real' directory when using cd in the shell to follow a transition link. &lt;BR /&gt;&lt;BR /&gt;No need to do this.  Just use a real shell.  A real shell has "pwd -P" to give you the physical path.  Of course the default is "pwd -L".&lt;BR /&gt;&lt;BR /&gt;&amp;gt;prasadshete: Bill i was just wondering to know what is&lt;BR /&gt;&amp;gt;The "chmod -R 777 *" club&lt;BR /&gt;&amp;gt;The "chown -R root:bin *" Club&lt;BR /&gt;&lt;BR /&gt;Well, you don't want to join these clubs.&lt;BR /&gt;But since you're paid up member of the rm -rf club, you can get a very cut rate membership, provided you do it BEFORE you restore you broken system.  :-)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Yogeeraj: Nothing to worry about. It was just a joke!&lt;BR /&gt;&lt;BR /&gt;It isn't a joke if you join the club.&lt;BR /&gt;Basically don't do those commands.</description>
      <pubDate>Thu, 08 May 2008 03:58:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107529#M686873</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-05-08T03:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: problem after rm -rf *</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107530#M686874</link>
      <description>The problem with aliasing things to use "-i" is that it leads people to habitually use "-f". In particular, "rm -rf" becomes the One True Way to delete anything. I always cringe a little inside as I watch otherwise-good admins use "rm -rf something*" when they specifically want to remove normal files.</description>
      <pubDate>Thu, 08 May 2008 16:26:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107530#M686874</guid>
      <dc:creator>Heironimus</dc:creator>
      <dc:date>2008-05-08T16:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: problem after rm -rf *</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107531#M686875</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Heironimus: The problem with aliasing things to use "-i" is that it leads people to habitually use "-f".&lt;BR /&gt;&lt;BR /&gt;As one who *prefers* to alias 'rm' to 'rm -i', I understand your comment.  _However_, I look at the requirement to answer the prompt as a nice "are your sure?" that makes me think a fraction of a second before I commit.&lt;BR /&gt;&lt;BR /&gt;If I have several files to remove, and I _do_ want to avoid the interactive prompts, I don't have any problem typing a few more characters to yield:&lt;BR /&gt;&lt;BR /&gt;# /usr/bin/rm file1 file2 file3 ...&lt;BR /&gt;&lt;BR /&gt;...which circumvents the interaction.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 08 May 2008 17:19:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107531#M686875</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-05-08T17:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: problem after rm -rf *</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107532#M686876</link>
      <description>When I say "habitually" I mean they typed "rm -rf" every time they removed anything as any user, even when using accounts or machines that didn't have the alias set, and always without thinking. In doing so, they bypassed the friendly "are you sure" confirmations and "can not remove directory" errors.&lt;BR /&gt;</description>
      <pubDate>Thu, 08 May 2008 21:56:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107532#M686876</guid>
      <dc:creator>Heironimus</dc:creator>
      <dc:date>2008-05-08T21:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: problem after rm -rf *</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107533#M686877</link>
      <description>&amp;gt;ME: Well, you don't want to join these clubs.&lt;BR /&gt;&lt;BR /&gt;I just thought of one way to do these normally dangerous experiments.  Set up a chroot(1m).&lt;BR /&gt;After you have hosed yourself a few times, just  "exit" back to the real world.</description>
      <pubDate>Thu, 03 Jul 2008 02:01:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-rm-rf/m-p/5107533#M686877</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-07-03T02:01:45Z</dc:date>
    </item>
  </channel>
</rss>

