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
+12k Golang : concatenate(combine) strings
+5.2k Golang : Example of custom handler for Gorilla's Path usage.
+7k Golang : Scramble and unscramble text message by randomly replacing words
+11.3k Golang : Google Drive API upload and rename example
+5.7k Golang : Check to see if *File is a file or directory
+2.8k Javascript : Detect when console is activated and do something about it
+19.9k Golang : Round float to precision example
+3k Javascript : How to show different content with noscript?
+6.6k Golang : Handle sub domain with Gin
+19.4k Golang : Convert(cast) string to rune and back to string example
+3.8k Javascript : How to loop over and parse JSON data?
+15.1k Golang : How to save log messages to file?