Clarify the INSTALL instructions#9268
Conversation
Ensure users understand that they need to have appropriate permissions to write to the install location.
INSTALL
Outdated
| appropriate permissions to write to the installation directory. For example, | ||
| in many cases on Unix, you may need to instead run the command like this: | ||
|
|
||
| $ sudo make install |
There was a problem hiding this comment.
It might sensible be to add a warning here that it is not recommended to install to the default location on a linux/unix system, overwriting the preinstalled openssl version from the distributor. (You made such a recommendation just recently on a GitHub issue, but I don't recall where it was)
Also, you could add the recommendation to install to a writable location without sudo (e.g. below the home directory) using the --prefix configure option, if it's for testing purposes only.
|
On the other hand, suggesting I have assisted many users that don't have a lot of familiarity with UNIX/Linux and followed the instructions to compile openssl from source, somehow reach the Edit: @mspncp beat me to it, his comment gives suggestions rather than just raising an issue! |
Yeah, by less than a minute ;-) |
So would you suggest to drop the "sudo make install" bit and just leave it as saying that you should have the right permissions. Or drop this PR altogether? |
|
I think your clarification is useful, if you also mention the caveats and alternatives, like suggested in #9268 (comment). |
|
(Note that Nicola edited his comment) |
|
I'd drop the I do wonder if this PR is mollycoddling, I don't remember seeing any source distributions noting that permissions are required to install (I'm sure I have, I just don't remember any). |
As my use case illustrated, inexperienced users will hit stack overflow and discover that I believe we should provide the useful part of the answer, highlighting the permission problem as you did, and in the same place a note about the risks of installing in a system-wide location, recommending using |
@paulidale @richsalz please don't forget that times have changed since the good ol' days when only the tough UNIX guys on their mainframes would compile software from scratch. ;-) The StackOverflow question shows IMHO that things which used to be obvious to people aren't so obvious anymore. |
levitte
left a comment
There was a problem hiding this comment.
I would only say that they normally need admin rights to install, and that how to get admin rights is system dependent. No mention of sudo...
c2ea98f to
93174ad
Compare
|
Ping? |
|
Sorry, I forgot about this one. I'll take a look this evening. |
mspncp
left a comment
There was a problem hiding this comment.
Looks good to me now. Approved with or without my suggested change.
|
|
||
| The installation directory should be appropriately protected to ensure | ||
| untrusted users cannot make changes to OpenSSL binaries or files, or install | ||
| engines. If you already have a pre-installed version of OpenSSL as part of |
There was a problem hiding this comment.
Just a cosmetical change. Feel free to adopt my suggestion or leave everything as it is.
The installation directory should be write protected to ensure that
unprivileged users cannot make changes to OpenSSL binaries or files, or install
(Personally, I find the term untrusted too negative. Also, I replaced "appropriately protected" by "write protected`.)
|
@mattcaswell I posted a short note on the original Stack Overflow thread about this pull request. |
Ensure users understand that they need to have appropriate permissions to write to the install location. Reviewed-by: Matthias St. Pierre <[email protected]> Reviewed-by: Paul Dale <[email protected]> (Merged from #9268) (cherry picked from commit 7c03bb9)
|
Pushed to master and 1.1.1 - thanks. I took one half of @mspncp's suggestion and changed "untrusted" to "unprivileged". |
Ensure users understand that they need to have appropriate permissions to write to the install location. Reviewed-by: Matthias St. Pierre <[email protected]> Reviewed-by: Paul Dale <[email protected]> (Merged from #9268)
Ensure users understand that they need to have appropriate permissions
to write to the install location.
The following Stack Overflow post was pointed out to me which motivated this change:
https://stackoverflow.com/questions/41938564/problems-during-last-step-of-installing-openssl-on-mac-os-sierra