Using "su" failes
I keep getting an authentication failure when I enter:
Quote:
|
Quote:
To set a new root passwd, boot in single user mode and type passwd Single user mode is accessible at boot, how exactly you do this depends on your bootloader (grub or lilo). Generally, you get to the boot prompt and type linux single or linux 1 |
With some disributions you don't create a root password during the installation (for example Ubuntu) and therefore the root account is disabled for logins until a password is set.
In these instances, you normally have sudo configured for the initial user out of the box. If this is the case, you could run (as the initial user): Code:
sudo passwd |
What is the practical purpose to use 'su' to gain access to the very same account that you are already using (user 'john' trying to su to user 'john')?
Linux Archive |
@soleilarw: That is not the case.
su -> become root but keep the environment settings of the user that is su-ing. su - -> become root and use root's environment. There's a difference, but in the end both will switch to user root. |
All times are GMT -5. The time now is 07:05 PM. |