Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created August 3, 2018 09:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save todorok1/985006a56ccfb66a46c7faad35d50ad7 to your computer and use it in GitHub Desktop.
Save todorok1/985006a56ccfb66a46c7faad35d50ad7 to your computer and use it in GitHub Desktop.
PackageManagerでerrno13が出るときに権限変更をする
// PackageManager内の権限
$ ls -l
drwxrwxr-x 33 root admin 1056 7 19 20:42 BuiltInPackages
drwxrwxr-x 15 root admin 480 7 19 21:10 Editor
drwxrwxr-x 10 root admin 320 7 19 20:34 ProjectTemplates
drwxrwxr-x 3 root admin 96 7 19 20:42 Server
// 権限を変更
$ sudo chown -R $(whoami) BuiltInPackages
// パスワードが聞かれるので入力すると権限が変更される
$ ls -l
drwxrwxr-x 33 <ユーザ名> admin 1056 7 19 20:42 BuiltInPackages
drwxrwxr-x 15 root admin 480 7 19 21:10 Editor
drwxrwxr-x 10 root admin 320 7 19 20:34 ProjectTemplates
drwxrwxr-x 3 root admin 96 7 19 20:42 Server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment