macos - Why cant I run `su`? (and how should I do?) - Ask . . . In MacOS X, the root user is disabled by default, therefore su will not work As others have stated, it's best to use sudo If you must enable the root user, see Apple's technote: Enabling and using the "root" user in Mac OS X
mac osx - su not working on mac os x? - Server Fault Don't use su use sudo If you need a root shell type sudo -s or sudo sh No need to make up a root password Try sudo su and type your user password 'sudo su -' will work just fine Don't set the root password unless you have to On newer sudo releases, sudo -i is the same as sudo su - Others have mentioned the details of the root account
macos - su root failed on Mac - Stack Overflow To become root, we usually do sudo su -, then input your own password In macOS the root user is DISABLED by default Also note, macOS is not Linux! You should really use sudo as @Philippe suggested If you want to enable the root user there are two methods: Changing password for root Choose Edit > Enable Root User
MacOS Terminal Error: Using Sudo Su Sorry! - Created by Cocoon You may attempt to use the following command: sudo But unfortunately, this is unlikely to work, as the root user is disabled by default in macOS You may also try to get around this by prefixing the popular 'su' command to your command, only to be greeted by an irritating 'Sorry!' Don't worry, you can get around this quite easily Here's the
sudo su - sorry. Whats wrong? - Apple Community Don't use sudo su but only "sudo" You don't want to go into super user mode like in Linux, MacOS is slightly different, you want to act like one as administrator You might need to use "sudo" in from of every commando though
su Admin on Mac OS X does not work as expected - Super User If your su Admin shell is still running after the error message, try doing sudo ls - it should work as it will be run as if by root Plain ls won't if Admin doesn't have access to that directory The answer is to give Admin access to any directories in your home folder you want it to be able to access