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 href="http://www.cyberciti.biz/faq/understanding-etcpasswd-file-format/">http://www.cyberciti.biz/faq/understanding-etcpasswd-file-format/</a>].<br>
<br><a 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 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 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 href="mailto:ubuntu-za@lists.ubuntu.com">ubuntu-za@lists.ubuntu.com</a><br>
<a 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 href="mailto:jouberthenk@gmail.com" target="_blank">jouberthenk@gmail.com</a> |<a href="mailto:henk@algorithm.cs.uct.ac.za" target="_blank"></a> 0836382339<br>
<br>