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
+3k Golang : How to remove certain lines from a file
+2.7k AWS S3 : Prevent Hotlinking policy
+8.1k Golang : How to get a user home directory path?
+4.9k Golang : Convert(cast) bigint to string
+9.5k Golang : Fix type interface{} has no field or no methods and type assertions example
+6.4k Swift : Convert (cast) Float to String
+7.5k Golang : Set up source IP address before making HTTP request
+8.6k Facebook PHP getUser() returns 0
+2k Golang : How to iterate a slice without using for loop?
+4.5k Android Studio : Create custom icons for your application example
+2.5k Golang : Break string into a slice of characters example