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.5k Golang : Skip or discard items of non-interest when iterating example
+11.3k Elastic Search : Return all records (higher than default 10)
+11.3k Swift : Convert (cast) Int or int32 value to CGFloat
+5.7k Golang : Fixing Gorilla mux http.FileServer() 404 problem
+5.5k Unix/Linux : How to get own IP address ?
+25.9k Golang : Convert integer to binary, octal, hexadecimal and back to integer
+3.9k Golang : Customize scanner.Scanner to treat dash as part of identifier
+11.3k Golang : Covert map/slice/array to JSON or XML format
+11.9k CodeIgniter : "Fatal error: Cannot use object of type stdClass as array" message
+7.5k Golang : Gaussian blur on image and camera video feed examples
+9.5k Golang : Get UDP client IP address and differentiate clients by port number
+8.1k Golang : Generate Codabar