Hello,
same code used in panel return 0 for access function for a shared folder on another computer,
but return -1 if same code is running under a control manager.
What can be the cause for this?
Thank you.
access function
Search
Re: access function
Maybe you run the CTRL Manager and the UI Manager under different Operating System users and therefore they might have different rights.
You can check this by using the CTRL function getCurrentOSUser()
You can check this by using the CTRL function getCurrentOSUser()
-
- Posts: 3
- Joined: Thu Jul 26, 2012 12:48 pm
Re: access function
Hallo,
- on the PVSS server I was logged with Administrator user
- PVSS server: project run as service on the windows with Administrator rights.
- open a gedi on same server using for pvss the root user
- share was available on another machine (running Linux)
- share was reachable from windows explorer
- share was reachable from panel - the access function return 0
- share was NOT reachable from script running on the project (project running as service with Administrator rights) - the access function return -1
Any other things I can check for this error?
Thank you.
Regards,
Florin
- on the PVSS server I was logged with Administrator user
- PVSS server: project run as service on the windows with Administrator rights.
- open a gedi on same server using for pvss the root user
- share was available on another machine (running Linux)
- share was reachable from windows explorer
- share was reachable from panel - the access function return 0
- share was NOT reachable from script running on the project (project running as service with Administrator rights) - the access function return -1
Any other things I can check for this error?
Thank you.
Regards,
Florin
Re: access function
What was the result of my suggestion using getCurrentOSUser() ?
Re: access function
Hello,
please check the settings for the Windows service on the server.
The project has to be started with a defined user and not with the local system account. If the local system account is used problems with accessing network-devices (printers, shared folders, ....) may occur.
Best Regards
Leopold Knipp
Senior Support Specialist
please check the settings for the Windows service on the server.
The project has to be started with a defined user and not with the local system account. If the local system account is used problems with accessing network-devices (printers, shared folders, ....) may occur.
Best Regards
Leopold Knipp
Senior Support Specialist
-
- Posts: 3
- Joined: Thu Jul 26, 2012 12:48 pm
Re: access function
The function getCurrentOSUser return:
user = Administrator
full = "" - empty string
desc = Build-in account for administering the computer/domain
group = Administrators
Thank you
user = Administrator
full = "" - empty string
desc = Build-in account for administering the computer/domain
group = Administrators
Thank you
Re: access function
This is the result for the CTRL Manager or the UI ?
Please report BOTH results as my assumption is that they are different.
Please report BOTH results as my assumption is that they are different.