-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Windows 10 plus no longer correctly supports mkdir -p
#1072
Comments
Testing for Windows administrator access is simple, however, solving the UX is not so straight forward. Teaching people how to deliberately use an administrator account, in ways that Windows is no longer prepared to tolerate, is not a sound approach. Also, Windows default is to not allow After consideration, I believe the simplest solution is as follows:
This also allows users (Clients) to generate CSRs without the need for admin access. So this is probably going to be a little bit more complicated. This does all fit into the scope and capabilities of Easy-RSA |
mkdir -p
mkdir -p
Could you clarify Anything else required from installer except creating a new shortcut? Do we need another |
Currently, This change would add some logic to
At this stage, I am only proposing a new shortcut launcher; all other changes would be made in the Easy-RSA repository. Edit: My mistake is:
|
Additionally, When the standard shortcut is used, it is necessary to deliberately check if the shell can write to the PKI. Otherwise, When the new shortcut is used |
This approach should also work for Easy-RSA source code tarballs. The logic to determine Windows access is still part of A Windows access error could then return a message explaining how to use Non-Admin option. Also, I have access to Windows 10, which replicates this issue and can be thoroughly tested. |
My mistake, I obviously mean Still working on it. |
These are the changes to OpenVPN-build Windows-Installer that this fix would require:
All other changes can be managed by I have a working patch for EasyRSA but not for Openvpn-build. Sorry for the earlier confusion regarding the file names. |
If the PKI is in a protected folder, such as
\Program Files
, andEasyrsa-Start.bat
is not run-as administrator thenmkdir -p $EASYRSA_PKI/$dir
fails as follows:$EASYRSA_PKI
does not exist then it is not created and no error is thrown.$EASYRSA_PKI
does exist then a "directory exists" error is thrown and no changes are made.FTR: The problem is that
easyrsa
is being fooled by Windows UAC. It is vital thateasyrsa
be capable of reacting correctly to this privilege problem.If Easy-RSA is copied to the user home directory then the problem does not occur.
It is also now possible, to change directory to
\User\$HOME\easy-rsa
and run the script from there, using$PATH
. This must be done within an Easy-RSA shell. A solution to this particular step is being considered.The text was updated successfully, but these errors were encountered: