Page 1 of 1

access function

Posted: Sat Sep 15, 2012 5:06 pm
by florin.vaida
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.

Re: access function

Posted: Mon Sep 17, 2012 4:01 pm
by mkoller
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()

Re: access function

Posted: Tue Sep 18, 2012 10:47 am
by florin.vaida
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

Re: access function

Posted: Tue Sep 18, 2012 10:53 am
by mkoller
What was the result of my suggestion using getCurrentOSUser() ?

Re: access function

Posted: Tue Sep 18, 2012 11:04 am
by leoknipp
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

Re: access function

Posted: Tue Sep 18, 2012 11:12 am
by florin.vaida
The function getCurrentOSUser return:
user = Administrator
full = "" - empty string
desc = Build-in account for administering the computer/domain
group = Administrators
Thank you

Re: access function

Posted: Wed Sep 19, 2012 5:47 pm
by mkoller
This is the result for the CTRL Manager or the UI ?
Please report BOTH results as my assumption is that they are different.