| View previous topic :: View next topic |
| Author |
Message |
Johnnie
Joined: Wed Mar 28, 2012 11:41 pm Posts: 9 Location: Puerto Rico
|
Posted: Sun Jul 01, 2012 7:00 pm Post subject: Root password |
|
|
| I installed the Ubuntu 12.04 from LXF159 and ran into a problem with the root password when I tried to use the command line and SU. It kept telling me my password was invalid. The Ubuntu documentation on 12.04 says the first user password defined on installation will be the root password. I have no problem logging on to the system with this password (meaning there are no typos). Any help on this or is my next step to re-install? |
|
| Back to top |
|
 |
towy71 Moderator

Joined: Wed Apr 06, 2005 3:11 pm Posts: 4169 Location: wild West Wales
|
Posted: Sun Jul 01, 2012 7:26 pm Post subject: |
|
|
you need to use sudo rather than su http://en.wikipedia.org/wiki/Sudo _________________ still looking for that door into summer |
|
| Back to top |
|
 |
Johnnie
Joined: Wed Mar 28, 2012 11:41 pm Posts: 9 Location: Puerto Rico
|
Posted: Mon Jul 02, 2012 4:47 am Post subject: Thank you |
|
|
Thanks for the quick info. Guess I'm too old.  |
|
| Back to top |
|
 |
lok1950 LXF regular

Joined: Tue May 31, 2005 6:31 am Posts: 958 Location: Ottawa
|
Posted: Mon Jul 02, 2012 5:50 am Post subject: Re: Thank you |
|
|
| Johnnie wrote: | Thanks for the quick info. Guess I'm too old.  |
We all have our senior moments Johnnie Ubuntu does not put a real root account on their distro so if you are used to using su or su - for root access it's not there
Enjoy the Choice  |
|
| Back to top |
|
 |
Ram LXF regular

Joined: Thu Apr 07, 2005 10:44 pm Posts: 1547 Location: Guisborough
|
Posted: Mon Jul 02, 2012 9:03 am Post subject: |
|
|
But is if you sudo su _________________
Ubuntu LXDE 12.04 running on AMD Phenom II*4; ASUS Crosshair III Formula MB; 4 GB Ram.....
|
|
| Back to top |
|
 |
ajgreeny LXF regular
Joined: Wed May 10, 2006 9:18 pm Posts: 407 Location: Oxfordshire.
|
Posted: Mon Jul 02, 2012 1:32 pm Post subject: |
|
|
| Ram wrote: | | But is if you sudo su | Still uses the user password, though, not a root password. _________________ Ubuntu 10.04 user, and loving it! |
|
| Back to top |
|
 |
Ram LXF regular

Joined: Thu Apr 07, 2005 10:44 pm Posts: 1547 Location: Guisborough
|
Posted: Mon Jul 02, 2012 1:40 pm Post subject: |
|
|
| ajgreeny wrote: | | Ram wrote: | | But is if you sudo su | Still uses the user password, though, not a root password. |
Only the once then you have full root access as far as I can tell until you close the terminal it was issued from. _________________
Ubuntu LXDE 12.04 running on AMD Phenom II*4; ASUS Crosshair III Formula MB; 4 GB Ram.....
|
|
| Back to top |
|
 |
ajgreeny LXF regular
Joined: Wed May 10, 2006 9:18 pm Posts: 407 Location: Oxfordshire.
|
Posted: Mon Jul 02, 2012 7:54 pm Post subject: |
|
|
| Ram wrote: | | ajgreeny wrote: | | Ram wrote: | | But is if you sudo su | Still uses the user password, though, not a root password. |
Only the once then you have full root access as far as I can tell until you close the terminal it was issued from. | We're probably splitting hairs here, but it is still not really using the root account, as far as I'm aware, but just raising the user to temporary root permissions.
I agree, however, it can be useful if you're doing something that requires continual re-entry of the sudo password, as that terminal retains root permissions until closed; one reason why using sudo su is rather frowned on by ubuntuforums, if not quite banned from being talked about. _________________ Ubuntu 10.04 user, and loving it! |
|
| Back to top |
|
 |
Johnnie
Joined: Wed Mar 28, 2012 11:41 pm Posts: 9 Location: Puerto Rico
|
Posted: Mon Jul 02, 2012 10:59 pm Post subject: Root Password |
|
|
| This discussion brings up the question of the root password. Once I am in root and change the password using passwd XXXX does this also change the user password. And if I were back in user mode and changed the password of the initial user would the root password change? |
|
| Back to top |
|
 |
nelz Moderator

Joined: Mon Apr 04, 2005 12:52 pm Posts: 7998 Location: Warrington, UK
|
Posted: Mon Jul 02, 2012 11:58 pm Post subject: |
|
|
No and no. Each user has their own password, and only root is able to change the password of anyone else. _________________ Unix is user-friendly. It's just very selective about who it's friends are. |
|
| Back to top |
|
 |
GregS

Joined: Thu Aug 03, 2006 4:54 am Posts: 89 Location: Oz
|
Posted: Tue Jul 03, 2012 1:46 am Post subject: |
|
|
| ajgreeny wrote: | | Ram wrote: | | ajgreeny wrote: | | Ram wrote: | | But is if you sudo su | Still uses the user password, though, not a root password. |
Only the once then you have full root access as far as I can tell until you close the terminal it was issued from. | We're probably splitting hairs here, but it is still not really using the root account, as far as I'm aware, but just raising the user to temporary root permissions.
I agree, however, it can be useful if you're doing something that requires continual re-entry of the sudo password, as that terminal retains root permissions until closed; one reason why using sudo su is rather frowned on by ubuntuforums, if not quite banned from being talked about. |
AFAIK from my irregular interactions with the big 'U',
provides the same utility (ie remains as root for the duration of the session...) |
|
| Back to top |
|
 |
ajgreeny LXF regular
Joined: Wed May 10, 2006 9:18 pm Posts: 407 Location: Oxfordshire.
|
Posted: Tue Jul 03, 2012 11:12 pm Post subject: |
|
|
Yes, so does but it still only uses the user password, not a root password, and raises the user to root permissions.
Either way, as I said before, I think we are just splitting hairs with this discussion. _________________ Ubuntu 10.04 user, and loving it! |
|
| Back to top |
|
 |
Ram LXF regular

Joined: Thu Apr 07, 2005 10:44 pm Posts: 1547 Location: Guisborough
|
Posted: Tue Jul 03, 2012 11:32 pm Post subject: |
|
|
| ajgreeny wrote: | Yes, so does but it still only uses the user password, not a root password, and raises the user to root permissions.
Either way, as I said before, I think we are just splitting hairs with this discussion. |
Hair splitting maybe but I think the OP miss used su instead of using sudo. _________________
Ubuntu LXDE 12.04 running on AMD Phenom II*4; ASUS Crosshair III Formula MB; 4 GB Ram.....
|
|
| Back to top |
|
 |
| View previous topic :: View next topic |
|