PDA

View Full Version : [ubuntu] One other thing: root user?



hbquikcomjamesl
February 10th, 2010, 05:36 PM
I remember from RH8 installation, being asked to set a password for "root." Ubuntu installation didn't ask for anything of the sort: it just asked me to give myself a user-ID and password. Does root get the same password? Does the user I set up for myself have root-equivalent privileges? Something else entirely?

sisco311
February 10th, 2010, 05:43 PM
I remember from RH8 installation, being asked to set a password for "root." Ubuntu installation didn't ask for anything of the sort: it just asked me to give myself a user-ID and password. Does root get the same password? Does the user I set up for myself have root-equivalent privileges? Something else entirely?

By default, the root account password is locked. sudo, gksu & policykit allows authorized users (by default, the first user created during the installation is authorized) to run certain programs as root without having to know the root password.

community/RootSudo

gmargo
February 10th, 2010, 06:05 PM
I remember from RH8 installation, being asked to set a password for "root." Ubuntu installation didn't ask for anything of the sort: it just asked me to give myself a user-ID and password. Does root get the same password? Does the user I set up for myself have root-equivalent privileges? Something else entirely?

Ubuntu creates the default user as a member of the admin group. The /etc/sudoers file is set up to allow anyone in the admin group to use sudo. The root account has it's password disabled, but there's nothing special about it. The forum rules apparently prohibit discussing how to give the root user a password, even though it's trivial.

mcduck
February 10th, 2010, 08:07 PM
The forum rules apparently prohibit discussing how to give the root user a password, even though it's trivial.
It's prohibited exactly because it's trivial. Anyybody not able to figure it out shouldn't be messing with root account.. ;)

Not that it would even be needed for anything, I've yet to see anybody coming up with an example of a task that couldn't be done just as easily with sudo (+ fakeroot for some special tasks).

hbquikcomjamesl
February 10th, 2010, 08:21 PM
True. Unlike "QSECOFR" (or QSECOFR-equivalent accounts) on OS/400, which are perfectly safe for routine use so long as you know what you're doing, "root" on Linux does give one enough rope to hang oneself, and then helps you tie the knot.

gmargo
February 10th, 2010, 08:45 PM
It's prohibited exactly because

It's prohibited because newbies always think they want to run as root and someone decided this policy would magically protect them. And it probably does.:p