ohmyzsh: Updated ZSH this morning, get error when SUDOing
I upgraded ZSH today. When I run sudo I see the following output:
charlespantoga in ~
❯❯ sudo -s 1:36PM
[oh-my-zsh] Insecure completion-dependent directories detected:
drwxr-xr-x 15 charlespantoga staff 510 Sep 22 09:34 /Users/charlespantoga/.oh-my-zsh
drwxr-xr-x 208 charlespantoga staff 7072 Sep 22 09:34 /Users/charlespantoga/.oh-my-zsh/plugins
drwxr-xr-x 4 charlespantoga staff 136 Jul 27 16:31 /Users/charlespantoga/.oh-my-zsh/plugins/brew
-rw-r--r-- 1 charlespantoga staff 3790 Jul 27 16:31 /Users/charlespantoga/.oh-my-zsh/plugins/brew/_brew
drwxr-xr-x 4 charlespantoga staff 136 Sep 8 09:27 /Users/charlespantoga/.oh-my-zsh/plugins/git
[oh-my-zsh] For safety, completions will be disabled until you manually fix all
[oh-my-zsh] insecure directory permissions and ownership and restart oh-my-zsh.
[oh-my-zsh] See the above list for directories with group or other writability.
[oh-my-zsh] Insecure completion caches also detected:
-rw-r--r-- 1 charlespantoga staff 35720 Sep 22 13:34 /Users/charlespantoga/.zcompdump-mac-chapan-5.0.5
-rw-r--r-- 1 charlespantoga staff 37866 Sep 22 13:32 /Users/charlespantoga/.zcompdump-mac-chapan-5.0.8
[oh-my-zsh] Moving to "/Users/charlespantoga/.oh-my-zsh/cache//zcompdump-bad/"...
/Users/charlespantoga/.oh-my-zsh/plugins/git/git.plugin.zsh:81: command not found: compdef
/Users/charlespantoga/.oh-my-zsh/plugins/git/git.plugin.zsh:89: command not found: compdef
/Users/charlespantoga/.oh-my-zsh/plugins/git/git.plugin.zsh:95: command not found: compdef
/Users/charlespantoga/.oh-my-zsh/plugins/git/git.plugin.zsh:104: command not found: compdef
/Users/charlespantoga/.oh-my-zsh/plugins/git/git.plugin.zsh:113: command not found: compdef
/Users/charlespantoga/.oh-my-zsh/plugins/git/git.plugin.zsh:115: command not found: compdef
/Users/charlespantoga/.oh-my-zsh/plugins/git/git.plugin.zsh:124: command not found: compdef
/Users/charlespantoga/.oh-my-zsh/plugins/git/git.plugin.zsh:126: command not found: compdef
/Users/charlespantoga/.oh-my-zsh/plugins/git/git.plugin.zsh:134: command not found: compdef
/Users/charlespantoga/.oh-my-zsh/plugins/git/git.plugin.zsh:140: command not found: compdef
/Users/charlespantoga/.oh-my-zsh/plugins/git/git.plugin.zsh:142: command not found: compdef
/Users/charlespantoga/.oh-my-zsh/plugins/git/git.plugin.zsh:147: command not found: compdef
/Users/charlespantoga/.oh-my-zsh/plugins/git/git.plugin.zsh:150: command not found: compdef
/Users/charlespantoga/.oh-my-zsh/plugins/git/git.plugin.zsh:152: command not found: compdef
/Users/charlespantoga/.oh-my-zsh/plugins/git/git.plugin.zsh:165: command not found: compdef
/Users/charlespantoga/.oh-my-zsh/plugins/git/git.plugin.zsh:176: command not found: compdef
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 50 (29 by maintainers)
Just chmod 755 /Users/charlespantoga/.oh-my-zsh and so on ~ It works fine for me ~
Setting the owner of the .oh-my-zsh directory (recursive) to root and changing permissions to
drwxr-xr-xfixed it for me