Viewed 83k times. I get this: Macintosh Why won't this work? Tony Tony 1, 8 8 gold badges 28 28 silver badges 29 29 bronze badges. Don't use su use sudo. No need to make up a root password. Try sudo su and type your user password. Marie Fischer Marie Fischer 1, 11 11 silver badges 12 12 bronze badges.
Don't set the root password unless you have to. Zimmerman Jul 21 '09 at On newer sudo releases, sudo -i is the same as sudo su -. Kamil Kisiel Kamil Kisiel Saurabh Barjatiya Saurabh Barjatiya 4, 1 1 gold badge 24 24 silver badges 31 31 bronze badges. The su program expects you to supply the password of the user you become.
Using sudo is much better; it doesn't require shared passwords. Jonathan Leffler Jonathan Leffler 10 10 silver badges 18 18 bronze badges. Based on my experience: Unless the account you are logged in as has "admin" privileges, you are not allowed to su or sudo. What I did is create a second account "Administrator" admin that has admin privileges then su admin enter admin's password sudo su - enter admin's password and then the shell I'm in is root.
In order to do this you have to be root already admin is not sufficient. People will recommend to use sudo instead. Tolsadus Tolsadus 8 8 silver badges 18 18 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook.
Modify the default MongoDB root password
Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. Oct 2, 6, 35 The Land of Hope and Glory. ETID said:. Mar 8, 1 Cambridge, MA.
When you type in 'su' without any other arguments you are switching to the root user, and this assumes you know the root password. I think, instead of 'su', you want to use the 'sudo' command, i. If you're in the administrator group, and root is enabled, successfully authenticating with your password will switch you to the root user. Reactions: jerwin.
Jun 16, 46 0. Dec 28, 1 0. Terminal password???? I have the same problem. I left my password blank when i set up my mac What have I overlooked? What else can I try? Thanks for any help in advance! Jan 10, 3, 1 Dallas, TX.
Setting a password seems like a prudent next step. You can do this under the Users panel of system preferences. Passwd from the terminal will likely work, too, but it seems safer to do through system preferences.
Detrius macrumors Sep 10, 1, 19 Asheville, NC. MorphingDragon macrumors Mar 27, 5, 5 The World Inbetween. Detrius said:. Also, you do NOT have to enable the root user for this to work. Therefore, sudo is better because you can give multiple people access to root without telling them the root password. What, like the fact that it caches your status for a few minutes?
UnixNut macrumors newbie. Jan 3, 13 1 Virginia. Reactions: gatoru.
Billy Boo Bob macrumors UnixNut said:. Sep 8, 1 0. My problems are : 1. Then at a terminal, I typed: su password: I got the error message: su: Sorry. I logged out and logged in again and tried again.wiki.inwestor.com.pl/sites/all/waqavegov/wonyc-top-10.php
macos - Setting the MySQL root user password on OS X - Stack Overflow
But still got same error message. In the login window, I logged in as usual using the Admin login option as this is the only available in the login window. I did not see the 'Other Users' option in the login window. So I could not try to login as "root", is this the problem?