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
+26.3k Golang : Get first few and last few characters from string
+11k Golang : Get constant name from value
+4.6k Golang : Build new URL for named or registered route with Gorilla webtoolkit example
+1.2k Golang : PGX CopyFrom to insert rows into Postgres database
+4.4k Golang : Convert an executable file into []byte example
+7.6k Golang : Turn string or text file into slice example
+21.9k Golang : Get executable name behind process ID example
+25.2k Golang : Connect to database (MySQL/MariaDB) server
+11.7k Golang : Reset buffer example
+3.4k Golang : Get FX sentiment from website example
+5.4k Golang : alternative to os.Exit() function
+13.3k Golang : Test floating point numbers not-a-number and infinite example