LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How does on login as the root ? And what password do I use for it ? (https://www.linuxquestions.org/questions/linux-newbie-8/how-does-on-login-as-the-root-and-what-password-do-i-use-for-it-761221/)

vigdavies 10-11-2009 04:22 PM

How does on login as the root ? And what password do I use for it ?
 
In order to use some of the instructions online to activate software, one has to login as the root. How on earth do I do this, and with what password ?

Also, what is my sudo password ?
And also, what is my su password ?

MoonMind 10-11-2009 04:28 PM

If you're using Ubuntu (and I infer from other posts and icons shown that you do), you have to use sudo - your password for that as the main user (the one you created on installation) is your password (yes, the same!). Actually, the GNOME dialogues state that (but not the CLI ones, to be fair).

M.

lutusp 10-11-2009 06:35 PM

Quote:

Originally Posted by vigdavies (Post 3715764)
In order to use some of the instructions online to activate software, one has to login as the root. How on earth do I do this, and with what password ?

Also, what is my sudo password ?
And also, what is my su password ?

When you installed Linux, you were asked for a root password. Do you remember what password you entered? It's very important.

Quote:

Originally Posted by vigdavies (Post 3715764)
Also, what is my sudo password ?

Your root password.

Quote:

Originally Posted by vigdavies (Post 3715764)
And also, what is my su password ?

Your root password.

Get it? Your root password is very important.

hoodooman 10-11-2009 07:34 PM

Ubuntu install does not ask for root password.Your sudo password is the one you created for yourself.

lutusp 10-11-2009 08:01 PM

Quote:

Originally Posted by hoodooman (Post 3715911)
Ubuntu install does not ask for root password.Your sudo password is the one you created for yourself.

Obviously I didn't believe this, since it represents a glaring security hole, but I looked it up and you're right -- Ubuntu really doesn't create a default root password, and it really does accept any user password for root access.

This takes my breath away. Any small interest I might have had in Ubuntu just evaporated.

chrism01 10-11-2009 08:06 PM

I was under the impression that it's just the first created (non-root) user that gets an automatic

sudo su -

entry in sudoers,

btmiller 10-12-2009 12:06 AM

That's right -- a user has to be in the "admin" group to use sudo by default. The sudo utility is actually very cool since it allows one to distribute root access among multiple system administrators (and limit what they can do) without distributing the root password. It also (if used properly, can provide much more of an audit trail than plain su.

FWIW, I believe the server edition of Ubuntu sets up a root account as normal, and root can easily be enabled on the desktop versions.

pixellany 10-12-2009 12:16 AM

Quote:

Originally Posted by lutusp (Post 3715927)
Obviously I didn't believe this, since it represents a glaring security hole, but I looked it up and you're right -- Ubuntu really doesn't create a default root password, and it really does accept any user password for root access.

This takes my breath away. Any small interest I might have had in Ubuntu just evaporated.

I had a nice chat with a Ubuntu rep at the last SCALE---he was tryng to explain how their "no root user" policy actually improves security. I was not convinced.

I'm told that--in the Ubuntu forums--you can get banned for posting the fix, but here we are on friendly ground:

In a terminal:
"sudo passwd root".

Now you have root privileges--and anothe password to remember. But: Open a settings dialog, and it still wants your user password....

(I don't use Ubuntu....)

ceantuco 10-12-2009 01:36 AM

just out of curiosity I removed the admin rights of my user to see if Ubuntu would ask for the root password... WRONG! I wasn't able to manage the system because it would say that my user didn't have rights to do so neither asked for the ROOT password.. heheheh learning experience. I had to: # adduser 'myuser' admin
# adduser 'myuser' adm
# adduser 'myuser' sys

lol it was fun tho but I won't deny I was sweating for a lil bit. I thought I messed up my system which I did a clean install LAST SUNDAY!

linuxlover.chaitanya 10-12-2009 01:47 AM

I would still need to know why do you need to be root all the time? If its your desktop you do not need to be root. sudo can grant you the rights temporarily.

uncle-c 10-12-2009 05:59 AM

Quote:

Originally Posted by pixellany (Post 3716040)

In a terminal:
"sudo passwd root".

Now you have root privileges--and anothe password to remember. But: Open a settings dialog, and it still wants your user password....

(I don't use Ubuntu....)

So basically, if you are going to administer a Ubuntu system you should set up a root password or else anyone with sudo rights, say a junior systems admin or a person who needs access to sudo, will have the ability to do it anyway ? If so, what does this say about Ubuntu's decision not to give one the right to set a root password in the first place during initial set up ?

avijitp 10-12-2009 06:13 AM

Thats what you call.."With the great power comes the great responsibility". root has all the power in your system and you do not need all these power to do your day to day work.

Quote:

If so, what does this say about Ubuntu's decision not to give one the right to set a root password in the first place during initial set up ?
I will defer from this statement. Ubuntu has taken a very clever approach. While installation you are not allowed to create root, but you create a normal user. However, this user is provided a sudo acces to be root with his own password. This effectively gives him root access when he need. I personally found this aproach really good. You should know what you are doing to avoid any unintentional data loss.

linuxlover.chaitanya 10-12-2009 06:39 AM

Not anyone can administer with their password. Only the first account that is setup during the installation is automatically given sudo rights. All the other user accounts setup later would need to be given the permissions to use sudo manually.
That is not that bad either. And with this setup you will seldom need the root password unless you are administering a server, in which case root password will be set during install.

pixellany 10-12-2009 07:58 AM

Quote:

Originally Posted by uncle-c (Post 3716268)
So basically, if you are going to administer a Ubuntu system you should set up a root password or else anyone with sudo rights, say a junior systems admin or a person who needs access to sudo, will have the ability to do it anyway ? If so, what does this say about Ubuntu's decision not to give one the right to set a root password in the first place during initial set up ?

That's not exactly what I said.... You can do all your admin stuff as the "lead user" using sudo. That is what the Ubuntu maintainers think you should do. For someone more traditional, you CAN enable root as I showed----but you do not NEED to.

MoonMind 10-12-2009 09:55 AM

Wow, that was a hell of ride for a newb ;)

(Sorry, couldn't resist.)

M.


All times are GMT -5. The time now is 02:56 AM.