Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use sudo to Move Into Protected Directory #136

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rogerluan
Copy link

Description

This is the error I was getting without sudo:

swift build -c release
[鈥
Building for production...
<unknown>:0: warning: 'self' refers to the method 'HTMLAnchorTarget.self', which may be unexpected
<unknown>:0: note: use 'HTMLAnchorTarget.self' to silence this warning
[11/11] Linking publish-cli
Build complete! (29.03s)
install .build/release/publish-cli /usr/local/bin/publish
install: /usr/local/bin/publish: Permission denied
make: *** [install] Error 71

With sudo it works:

swift build -c release
Building for production...
Build complete! (0.18s)
sudo install .build/release/publish-cli /usr/local/bin/publish
Password:

Without sudo I get the "permission denied" issue even being the root/admin of this computer 馃し

@rogerluan rogerluan changed the title Uso sudo to Move Into Protected Directory Use sudo to Move Into Protected Directory May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant