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
+40.9k Golang : How to check if a string contains another sub-string?
+5.9k Golang : Generate multiplication table from an integer example
+8.9k Golang : automatically figure out array length(size) with three dots
+7.2k Golang : Dealing with postal or zip code example
+9.4k Golang : Get all countries currencies code in JSON format
+20k Golang : How to run your code only once with sync.Once object
+23.4k Golang : Check if element exist in map
+9.7k Golang : interface - when and where to use examples
+4.7k Which content-type(MIME type) to use for JSON data
+5.5k PHP : Convert string to timestamp or datestamp before storing to database(MariaDB/MySQL)
+7.4k Golang : Process json data with Jason package
+7.5k Golang : How to handle file size larger than available memory panic issue