If you’d like to install all available updates, enter: $ sudo softwareupdate -ia. Mac OS X is configured so that all administrators are placed in the admin (80) group, and the admin group is given sudo privileges in /etc/sudoers. Launch Terminal on your Mac. To see available software updates for your Mac: $ sudo softwareupdate -l. After a few minutes, you’ll be given a list of available updates. Seems you don’t really understand what sudo is and does. Terminal shows the progress as the volume is erased. On systems like Unix, Linux, plus similar and derivatives there are certain privileges and they are usually tied to user accounts, given they are multi-user software systems. A flaw with the Sudo command used in macOS Terminal let non-privileged users and programs run commands as Root. Switch user in a terminal window on a Mac. Follow answered Apr 15 '11 at 2:09. To use the sudo -s command, start by opening up a terminal. We've all had our Mac freeze up or crash at least once in its lifetime. sudo dscl . Go ahead and open the Terminal. sudo systemsetup -setrestartfreeze on. There are tons of commands that you can make use of. Your Mac will now shut down at the time you specified. When i open the Terminal and i type sudo or ping or some command i receive this answer: Last login: Thu Sep 24 11:36:46 on console MacBook-Pro-de-Victor:~ victor$ sudo su -bash: sudo: command not found MacBook-Pro-de-Victor:~ victor$ ping -bash: ping: command not found MacBook-Pro-de-Victor:~ victor$ ls -bash: ls: command not found I need help! I use sudo quite a lot and get bored of typing my password in every time I use it. -create /Users/sally UserShell /bin/bash Next, we set the actual name of the account user. Before you enable the root user account on your Mac, you should know about an alternative called sudo. Setting up OpenVPN on NETGEAR Nighthawk Router on a Mac. You may be trying to perform administrative tasks from the macOS Mojave terminal, for instance, if you are developing locally (on a Mac, of course).You may encounter permissions issues using your local administrative user.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. Michael Nov. 24, 2012. Having sat on our recent four-day JAMF200 course it was great to revisit some command line skills from times past. This is awesome! The sudo -s command grants the user a Sudo shell. More Less. I am going to log in to my macOS based mac mini server using the ssh command: ssh vivek@macmini-server If you are using a macbook/MBP, just open the terminal app. Share. For starters, open up the Terminal application on you Mac. If you set a root password when you installed the distribution, enter su. Feb 13, 2016 58 5. Restart Your Mac via Terminal. When i open a terminal window and type in "sudo" it comes back with "-bash: sudo: command not found". Type the following ‘whoami’ command (exclude the Amsys$ bit) in a macOS Terminal window and you’ll get the current user: Enter the following syntax command below: sudo shutdown -h now. Now you’re ready to reboot your Mac. Comment Cromulent macrumors 603. … Every time I try to use a sudo or ssh command, it returns with this error: when:~ jackson1442$ sudo [insert any command here] -bash: sudo: command not found I was messing with Python installs, and am not sure what I did to cause this. You will not get a … 25.9k 9 9 gold badges 60 60 silver badges 70 70 bronze badges. That’s it. sudo purge. Wow this actually works, thanks! Here's how. The macOS default is /bin/tcsh and the most recommended shell is /bin/zsh. sudo dscl . Use the below system setup command to enable SSH on Mac: sudo systemsetup -setremotelogin on; There won’t be any confirmation message for the above command. If you want to skip the crying and the yelling at the screen and get back to work, you can enter this Terminal command, which will make OS X reboot as soon as it senses a full system freeze. Here's the full step-by-step, for those who want to experiment. To Unbind a Computer from an Active Directory Domain.