*nix Thread, Default Root Password? in Technical; Hi
Im just dipping my toe into the Linux world.
I have installed Ubuntu server in a VM on my ...
-
16th February 2009, 11:13 PM #1 Default Root Password?
Hi
Im just dipping my toe into the Linux world.
I have installed Ubuntu server in a VM on my mac. Install went fine and i like how good it was i could install Lamp during the install.
I would like to set a root password, during the install i did not set one.
What is the default password?
Thanks
Z
-
-
IDG Tech News
-
16th February 2009, 11:19 PM #2 open up terminal form the applications menu
just do "sudo passwd"
and it should get you to create a root password
-
-
16th February 2009, 11:20 PM #3 To expand a bit, Ubuntu doesn't enable root by default, but gives the initial user sudo privileges. So, you can make use of sudo to set a root password if you need to, but ideally, you shouldn't need to.
-
Thanks to localzuk from:
FN-GM (16th February 2009)
-
16th February 2009, 11:21 PM #4 Thanks, i get you. Getting my head around linux will be a big learning curve.
-
-
16th February 2009, 11:48 PM #5 
Originally Posted by
localzuk
To expand a bit, Ubuntu doesn't enable root by default, but gives the initial user sudo privileges. So, you can make use of sudo to set a root password if you need to, but ideally, you shouldn't need to.
And if you find yourself having to type a long sequence of commands that all need super-user (otherwise known as 'su' or 'root') privileges, you can type:
Which will switch you to the root user until you type
Stephen
-
Thanks to SteveMC from:
RabbieBurns (17th February 2009)
-
17th February 2009, 01:10 AM #6 is that the same as "su -" ?
-
-
17th February 2009, 07:47 AM #7 
Originally Posted by
RabbieBurns
is that the same as "su -" ?
Yeee-no. Kinda. It effectively gives you the same power as su, but doesn't spawn a new login shell and replace your environment variables, doesn't need you to know (or share) the root password, only allows allowed commands to be executed, etc. But to all intents and purposes, unless you share the machine with somebody else, yes.
-
Thanks to powdarrmonkey from:
RabbieBurns (17th February 2009)
-
17th February 2009, 08:25 AM #8 I use to switch to root and then to set the root password.
-
-
17th February 2009, 08:41 AM #9 
Originally Posted by
powdarrmonkey
Yeee-no. Kinda. It effectively gives you the same power as su, but doesn't spawn a new login shell and replace your environment variables, doesn't need you to know (or share) the root password, only allows allowed commands to be executed, etc. But to all intents and purposes, unless you share the machine with somebody else, yes.
Thanks, learn something new every day
-
-
17th February 2009, 08:51 AM #10 
Originally Posted by
localzuk
To expand a bit, Ubuntu doesn't enable root by default, but gives the initial user sudo privileges. So, you can make use of sudo to set a root password if you need to, but ideally, you shouldn't need to.
This is not completely accurate. The root account is not disabled; it has an invalid password hash, so that the authentication process will fail.
-
-
17th February 2009, 08:58 AM #11 This is worth a read to learn about Ubuntu/root/sudo: RootSudo
Explains why Ubuntu does it like this, when to use sudo, gksudo and sudo -i
HTH
-
-
17th February 2009, 10:44 AM #12 
Originally Posted by
FN-GM
Thanks, i get you. Getting my head around linux will be a big learning curve.
It might even be worth it :-)
The sudo stuff is a bit like "run as administrator" in Vista; sudo -s is like running a command prompt as administrator.
-
SHARE: 
Similar Threads
-
Replies: 3
Last Post: 14th August 2008, 12:05 PM
-
By FN-GM in forum Web Development
Replies: 33
Last Post: 16th July 2008, 12:08 PM
-
Replies: 8
Last Post: 13th October 2007, 01:05 PM
-
By tickmike in forum General Chat
Replies: 29
Last Post: 9th September 2006, 11:23 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules