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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make install.do not try changing permissions of existing directories #45

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

Conversation

nrnrnr
Copy link

@nrnrnr nrnrnr commented Jun 8, 2022

Except when necessary, I prefer not to install into /usr/local as root.
My setup is as follows:

$ ls -ld /usr/local/bin /usr/local/share/man/man1
drwxrwsr-x 3 root staff 4096 Jun  8 11:29 /usr/local/bin
drwxrwsr-x 2 root staff 4096 Oct 12  2021 /usr/local/share/man/man1

Since I'm a member of the staff group it all works out.
But running do on install.do failed with an error message:

Installing to: /usr/local
install: cannot change permissions of ‘/usr/local/share/man/man1’: Operation not permitted
install: cannot change permissions of ‘/usr/local/bin’: Operation not permitted

This change calls "$INSTALL" only when the directory to be installed
isn't already there.

Except when necessary, I prefer not to install into /usr/local as root.
My setup is as follows:

```
$ ls -ld /usr/local/bin /usr/local/share/man/man1
drwxrwsr-x 3 root staff 4096 Jun  8 11:29 /usr/local/bin
drwxrwsr-x 2 root staff 4096 Oct 12  2021 /usr/local/share/man/man1
```

Since I'm a member of the `staff` group it all works out.
But running `do` on `install.do` failed with an error message:

```
Installing to: /usr/local
install: cannot change permissions of ‘/usr/local/share/man/man1’: Operation not permitted
install: cannot change permissions of ‘/usr/local/bin’: Operation not permitted
```

This change calls `"$INSTALL"` only when the directory to be installed
isn't already there.
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