Mac sudo su - command to enter the root user

On mac, the beginning user with administrator privileges created, but the user's password, instead of entering the root password when running su - When this command, you will be prompted to enter a password, and enter your user password report

su :sorry,

in fact,

Need to use

sudo su - command to enter the root user,

Or enter sudo su command, enter sh-3.2 #, where # attention to this number,

In linux is to represent the root privileges, then enter in the su sh-3.2 # environment - command, you can also enter root.

Guess you like

Origin blog.51cto.com/chenhva/2426988