-
-
Notifications
You must be signed in to change notification settings - Fork 308
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
[Bug] GRASS 7.8.6 for Windows will not start for unpriviliged user #1965
Comments
grass78.py seems to be the only file in the etc directory with this permissions issue |
Hi, @newcomb-d. How did you install GRASS and which package did you install? |
I installed using the binary linked from the GRASS website earlier today. |
Any solution to this issue? I am also having the same error. |
Just to clarify, using the Standalone installer , not installing via the
OSGeo4W2 network installer.
…On Mon, Nov 15, 2021 at 5:23 PM Sujata ***@***.***> wrote:
Any solution to this issue? I am also having the same error.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1965 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQQR22MJXRVLJZVDNQ6DMLUMGB43ANCNFSM5HGV65SA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
On a virtual instance of Windows10, with the initial user from the Windows installation, GRASS 7.8.6-1 runs. This bug also seems to be present in the nightly GRASS 8 Standalone installers. |
AFAIK there is no change in the related nsis code between RC and release. |
could it be local issue? |
was there a change in Windows 10 Enterprise? |
the start up python script is called by the startup batch file, and not directly by the user. |
it is started by grass78.bat |
|
no access here to a windows 10 enterprisebox |
Maybe a native language issue? https://peter.bloomfield.online/nsis-access-control-problem-with-built-in-users-group/ |
I was successfull with reproduce this issue. I tested this issue on the MS Windows 10 Enterprise Evaluation version as VirtualBox image obtained from official MS Microsoft page https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/ (on the page choose from Virtual Machines Select Box: MS Edge on Win 10 (x86_64) Stable 1809). GRASS GIS 8.0 version (Standalone installer) was installed under default IEuser user account (Administrator type account), then I created new user account Test (Standard user type account) and run GRASS GIS (double click on grass80.bat file) under this user account. Error message:
As mentioned above only grass80.py file in the /etc dir doesn't have read permission. |
it works on a Windows 10 Home laptop. so the question is: is there a difference in behaviour between Windows 10 Home and Windows 10 Professional? |
so file execution on grass78.py is enabled. |
on other places:
so at least the \etc directory is set accordingly to the comment above. |
it may be that the directory setting isn't overruling the file setting? |
so it seems that there is a different behaviour between an IEuser user account and a Standard user type account any hints from the nsis side of the world about that? |
checked here: it is an administrator account. |
Sorry to take so long to reply. To sum up, it looks like changing line 766 from: should fix the issue for the standalone installer issue of normal, non-privileged users starting GRASS 7.8.6 and 8.0 after installation |
@dnewcomb would you mind to open a PR with the changes mentioned above against G8? |
Will run through the windows compile chain tonight to confirm fix, then
make PR.
Doug
…On Mon, Jan 3, 2022 at 2:38 PM Helmut Kudrnovsky ***@***.***> wrote:
@dnewcomb <https://github.com/dnewcomb> would you mind to open a PR with
the changes mentioned above against G8?
—
Reply to this email directly, view it on GitHub
<#1965 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQQR264L4E6MSQ24WTQN3DUUH3MVANCNFSM5HGV65SA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I installed GRASS 8.3.1-1 on Windows 10 Pro from standalone-installer. |
Fully agree! I noticed that there is a new version of NSIS released last July, https://nsis.sourceforge.io/Download . What version is currently used to build standalone GRASS on Windows?
Doug
…________________________________
From: Till Francke ***@***.***>
Sent: Friday, January 12, 2024 10:21 AM
To: OSGeo/grass ***@***.***>
Cc: Newcomb, Doug ***@***.***>; Mention ***@***.***>
Subject: [EXTERNAL] Re: [OSGeo/grass] [Bug] GRASS 7.8.6 for Windows will not start for unpriviliged user (Issue #1965)
This email has been received from outside of DOI - Use caution before clicking on links, opening attachments, or responding.
I installed GRASS 8.3.1-1 on Windows 10 Pro from standalone-installer.
Same problem: GRASS could not be started as an unprivileged user, error message as above.
Quick dirty fix was modifying the file permissions of c:\Program Files\GRASS GIS 8.3\etc\grass83.py to "full access" for all computer users. Still, it would be nice to have it working out put the box afdter installation.
—
Reply to this email directly, view it on GitHub<#1965 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABSYN7XFZWPUDU7IJTBGL63YOFIIFAVCNFSM5HGV65SKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBYHE2DSOJTGY2A>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I have built a new 7.8.8 standalone installer using NSIS 3.09, see OSGeo/grass-website#410 I was able to start GRASS 7.8.8 under unprivileged user. I am closing this issue, feel free to reopen if needed. |
Describe the bug
After installation on Windows 10 , starting GRASS7.8.6 fails with the message in the terminal window:
"C:\Program Files\GRASS GIS 7.8\extrabin\python3.exe: can't open file 'C:\ProgramFiles\GRASS GIS 7.8\etc\grass78.py': {Errno 13] Permission denied
It should be noted that normal users do not have read access to C:\ProgramFiles\GRASS GIS 7.8\etc\grass78.py after installation , only System and users in the Administrators group or otherwise elevated access
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expect GRASS 7.8.6 to start
Screenshots
If applicable, add screenshots to help explain your problem.
System description (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: