LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   password change (https://www.linuxquestions.org/questions/debian-26/password-change-878726/)

Sameer Kedare 05-04-2011 03:42 AM

password change
 
HI all,

Want to set root password

i don't have any idea as from where to get a root password. as I have freshly install Ubuntu10. Sudo cmd is working out.

How to go in single user mode in Ubuntu.

Thank you
Sameer Kedare

EricTRA 05-04-2011 03:49 AM

Hello and Welcome to LinuxQuestions,

Ubuntu is against the use of the root account for security reasons, so they haven't set a password for it. The root account is not something to play around with, you should use sudo for your maintenance tasks. I'm not sure since I don't use Ubuntu but normally if you'd run
Code:

sudo su -
you get a root shell. If you really want to go into single user mode (do you mind indicating why?) then you could run
Code:

init 1
from that root shell.

Read why Ubuntu doesn't favor the use of the root account and password here and here. Have fun with Linux.

Kind regards,

Eric

xzcallaway 05-04-2011 07:54 PM

In Ubuntu, you can also get a File browser with root permissions to start up by clicking Accessories;Terminal and entering the command:

gksudo nautilus

You can then edit anything you want in this browser.

frankbell 05-04-2011 08:49 PM

Another alternative is to use sudo su. Then you can retain root privileges until your administrative tasks are done without having to keep re-entering passwords.

If you search LQ, you will find ways to create a root password in Ubuntu so you can just su.

I frankly consider Ubuntu's position on this issue to be silly. It penalizes competent and careful users for the sins of the incompetent and careless.

But that's just me.

alan_ri 05-05-2011 12:56 PM

This is D E B I A N Forum, not Ubuntu Forum.

Thank you!

countach74 05-11-2011 12:18 AM

If you still want to set a root password in Ubuntu, simply do the following:

Code:

$ sudo passwd
Enter new UNIX password:

And you've got yourself a root password. It's one of the first things I do when setting up an Ubuntu-based server. I'm sorry, but tagging sudo onto every command gets old--and I can never get used to using "sudo su". :)


All times are GMT -5. The time now is 03:27 AM.