<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Thanks Henk<br>
      This info helps me<br>
      <br>
      This is a VM l am planning to create in my windows laptop for Java
      development<br>
      <br>
      I dont care about the root risks I use a snapshot of the
      installation of my LinuxVM so any damages made by virus or hacker
      get overridden every time l start this Linux<br>
      Thanks for the info now l know how to set Root password<br>
      <br>
      The problem I have is when you do Ubuntu updates it clobbers out
      your Sun Java then I have to re-install my sun Java<br>
      And that becomes a hassle<br>
      <br>
      <br>
      <pre class="moz-signature" cols="72">Kind Regards

Nico Michael
<a class="moz-txt-link-freetext" href="http://www.arduino.org.za">http://www.arduino.org.za</a></pre>
      On 2012-09-09 10:25, Henk Joubert wrote:<br>
    </div>
    <blockquote
cite="mid:CADTkUVNJZte-qVYjvPtMAud3WGNqGhxfc30z4q2Vv1tfCs7Rww@mail.gmail.com"
      type="cite">You could try sudo -i to get root privileges with your
      account for a session. You should then be able to set a root
      password using "passwd root", but I would advise against doing
      this on any machine that is somehow accessible by others. I can't
      remember what the root users default home directory is, but it's
      probably / or /root in ubuntu, you can change it in /etc/passwd [<a
        moz-do-not-send="true"
        href="http://www.cyberciti.biz/faq/understanding-etcpasswd-file-format/">http://www.cyberciti.biz/faq/understanding-etcpasswd-file-format/</a>].<br>
      <br>
      <a moz-do-not-send="true"
        href="https://help.ubuntu.com/community/Java">https://help.ubuntu.com/community/Java</a>
      has instructions for installing Sun Java that seem rather
      straightforward.<br>
      <br>
      <div class="gmail_quote">On 9 September 2012 08:40, Nico
        Michael(iBurst) <span dir="ltr"><<a moz-do-not-send="true"
            href="mailto:nick.michael@ptaisp.co.za" target="_blank">nick.michael@ptaisp.co.za</a>></span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div bgcolor="#FFFFFF" text="#000000"> Hi there <br>
            <br>
            <b>I need to work as root user </b><br>
            I need to enable the root user and set the root user
            password in my Ubuntu workstation in a VM  <br>
            I could do sudu su but I need to login with full root as the
            root user<br>
            <br>
            <b>This is in a VM and risks mitigated</b><br>
            Regarding risks this is a VM so I will make an image in the
            VMware  server to recover from damage.<br>
            <br>
            <b>How do I set root password</b><br>
            I know is solaris you would use a passwd command to set the
            root user's password<br>
            <br>
            <b>What is root home directory</b><br>
            I also know in solaris the root users home directory in not
            /home/root   what is it in Ubuntu Linux?<br>
            <b><br>
            </b><b>The root or sudo user cant see programs pathed for
              non-root users how do I fix that</b><br>
            Also I have seen certain program  ran when you logged in as
            non-root user which  did not get pathed and did not run on a
            Centos Server when you logged in as root<br>
            <br>
            <b>I need to run Sun Java not the non-industry non-standard
              Java Ubuntu provides</b><br>
            One of the problems all professional Java developers have
            with Ubuntu is we need to use the Industry standard so our
            programs work Ubuntu tends to install its own "Non-Industry
            non-standard" Java<br>
            Which we always have to remove and then it becommes a
            mission to get Sun java to work <br>
            <br>
            <b>To get Sun Java running on Ubuntu</b><br>
            I remove the "Ubuntu supplied non-standard Java" then I edit
            /etc/profile and add
            JAVA_HOME="/usr/lib/jvm/java-6-sun-1.0.0.30  and then export
            JAVA_HOME<br>
            <br>
            <b>Java does not run as the sudo or root user</b><br>
            This works when I run      java
            -version                      I get the right version of
            Java<br>
            how ever when I run         sudo java -version            It
            cant find Java<br>
            <br>
             which file and or older do you put path information  so the
            Root or SUDO user can find the Java ?<br>
            <br>
            <br>
            Please advise<span class="HOEnZb"><font color="#888888"><br>
                <pre cols="72">-- 


Kind Regards

Nico Michael
<a moz-do-not-send="true" href="http://www.arduino.org.za" target="_blank">http://www.arduino.org.za</a></pre>
              </font></span></div>
          <br>
          --<br>
          ubuntu-za mailing list<br>
          <a moz-do-not-send="true"
            href="mailto:ubuntu-za@lists.ubuntu.com">ubuntu-za@lists.ubuntu.com</a><br>
          <a moz-do-not-send="true"
            href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-za"
            target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-za</a><br>
          <br>
        </blockquote>
      </div>
      <br>
      <br clear="all">
      <br>
      -- <br>
      Henk Joubert<br>
      BSc Computer Science (Hons) | University of Cape Town 2012<br>
      <a moz-do-not-send="true" href="mailto:jouberthenk@gmail.com"
        target="_blank">jouberthenk@gmail.com</a> | 0836382339<br>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 


Kind Regards

Nico Michael
<a class="moz-txt-link-freetext" href="http://www.arduino.org.za">http://www.arduino.org.za</a></pre>
  </body>
</html>