access function

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
Search

Post Reply
7 posts • Page 1 of 1
florin.vaida
Posts: 3
Joined: Thu Jul 26, 2012 12:48 pm

access function

Post 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.

User avatar
mkoller
Posts: 741
Joined: Fri Sep 17, 2010 9:03 am

Re: access function

Post 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()

florin.vaida
Posts: 3
Joined: Thu Jul 26, 2012 12:48 pm

Re: access function

Post 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

User avatar
mkoller
Posts: 741
Joined: Fri Sep 17, 2010 9:03 am

Re: access function

Post by mkoller »

What was the result of my suggestion using getCurrentOSUser() ?

User avatar
leoknipp
Posts: 2926
Joined: Tue Aug 24, 2010 7:28 pm

Re: access function

Post 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

florin.vaida
Posts: 3
Joined: Thu Jul 26, 2012 12:48 pm

Re: access function

Post 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

User avatar
mkoller
Posts: 741
Joined: Fri Sep 17, 2010 9:03 am

Re: access function

Post 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.

Post Reply
7 posts • Page 1 of 1