terminal permission denied
my terminal not execute command. shows permission denied. what's the problem
MacBook Pro 13″, macOS 11.0
my terminal not execute command. shows permission denied. what's the problem
MacBook Pro 13″, macOS 11.0
Usually if you get that error you need to use "sudo" with the command to run the command with administrator privileges. If your user is not an admin account, then you will get this error as well.
You need to be extremely careful running any command with "sudo" as the command line will not protect you from accidental mistakes. Never blindly cut & paste or use commands you find on the Internet as that is a sure fire way to break macOS since many commands need to be customized to your exact situation. You should also understand the commands you are using.
Make sure you have a good backup before attempting to execute any commands in the Terminal app. If users with years of command line experience can accidentally make a fatal mistake and destroy the OS with just a simple typographical error.
Usually if you get that error you need to use "sudo" with the command to run the command with administrator privileges. If your user is not an admin account, then you will get this error as well.
You need to be extremely careful running any command with "sudo" as the command line will not protect you from accidental mistakes. Never blindly cut & paste or use commands you find on the Internet as that is a sure fire way to break macOS since many commands need to be customized to your exact situation. You should also understand the commands you are using.
Make sure you have a good backup before attempting to execute any commands in the Terminal app. If users with years of command line experience can accidentally make a fatal mistake and destroy the OS with just a simple typographical error.
You said you got "permission denied"
what command did you enter, EXACTLY to get that error message? [you can copy and paste from the terminal window].
What command?
what files are involved?
are you an Admin User?
janezhao779 wrote:
I am an admin user . I am just trying to practice on terminal due to a school project . I have no idea what it is going on with this, the information in terminal is as below
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
(base) janetekbookpuro:~ janezhao$
What exactly is the issue here ...
You can see your current shell, copy & paste:
echo $SHELL
To see your options, copy and paste:
cat /etc/shells
The default shell has now changed to zsh,
and recommended you change your shell to zsh, the command as given above to do this, copy & paste:
chsh -s /bin/zsh
that's it.
ref:
Open or quit Terminal on Mac - Apple Support
https://support.apple.com/en-gw/guide/terminal/toc
Terminal User Guide for Mac - Apple Support
I am an admin user . I am just trying to practice on terminal due to a school project . I have no idea what it is going on with this, the information in terminal is as below
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
(base) janetekbookpuro:~ janezhao$
terminal permission denied