Linux : How to set root password in Linux Mint
Alright, just a minor note for my own future reference. Just received my Dual Band USB Adapter today and encounter a minor program while trying to install the driver for Linux Mint. Apparently, by default in Linux Mint, you cannot su
or sudo
because the root
password is not set!
I understand that this is for security reason, but there are times when ability to sudo
a command can be very useful.
Therefore, in order to set the password for root
in Linux Mint, please execute
$sudo -i
and you will be prompted to set a password. This will be your root
password, so remember it!
after this you should be able to su
and sudo
in Linux Mint again.
Hope this helps!
See also : Linux/Unix : Commands that you need to be careful about
By Adam Ng(黃武俊)
IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.
Advertisement
Tutorials
+5.6k Golang : Struct field tags and what is their purpose?
+24.4k Golang : How to print rune, unicode, utf-8 and non-ASCII CJK(Chinese/Japanese/Korean) characters?
+13.2k Golang : Date and Time formatting
+10.2k Golang : Convert file content to Hex
+18.4k Golang : Write file with io.WriteString
+13.5k Golang : Image to ASCII art example
+13.7k Golang : unknown escape sequence error
+7k Golang : Get environment variable
+8.7k Golang : Gorilla web tool kit schema example
+21k Golang : Convert(cast) string to rune and back to string example
+25.1k Golang : Convert uint value to string type
+6k Golang : Extract XML attribute data with attr field tag example