EldoS | Feel safer!

Software components for data protection, secure storage and transfer

administrator priviledge required to mount

Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.
#29188
Posted: 04/09/2014 07:16:06
by Olfa REKIK (Basic support level)
Joined: 03/11/2014
Posts: 10

Hi,

When running on Windows 7 or 8, I need to run my application as administrator to be able to mount media.

Installation is done seperatly with admin priviledge using install DLL. Then reboot.

I whan to run my app as standart user.
The GetModuleStatus indicates that driver is properly installed

Initialize works
CreateStorage works
MountMedia(0) works
AddMountingPoint(mPoint,CBFS_SYMLINK_NETWORK |CBFS_SYMLINK_NETWORK_HIDDEN_SHARE | CBFS_SYMLINK_NETWORK_WRITE_NETWORK_ACCESS , NULL); fails with exception access denied

running the application as administrator works.

can you help resolve this issue ?

best regards,
#29190
Posted: 04/09/2014 07:33:04
by Eugene Mayevski (EldoS Corp.)

AddMountingPoint by itself doesn't require admin rights. However, creation of the share might require one. Try removing the share flags and see if this works.


Sincerely yours
Eugene Mayevski
#29193
Posted: 04/09/2014 07:43:16
by Volodymyr Zinin (EldoS Corp.)

The problem is in the CBFS_SYMLINK_NETWORK_WRITE_NETWORK_ACCESS flag, which specifies to create a "microsoft networks" (SMB) share (internally it is created by the use of the NetShareAdd system API). This action usually requires the administrator rights.
#29194
Posted: 04/09/2014 07:47:48
by Olfa REKIK (Basic support level)
Joined: 03/11/2014
Posts: 10

Unfortunately, same behavior
#29195
Posted: 04/09/2014 07:55:45
by Eugene Mayevski (EldoS Corp.)

What did you try?


Sincerely yours
Eugene Mayevski
#29196
Posted: 04/09/2014 08:08:52
by Olfa REKIK (Basic support level)
Joined: 03/11/2014
Posts: 10

Sorry, I tried before seeing Vladimir answer.
removing CBFS_SYMLINK_NETWORK_HIDDEN_SHARE did nothing.
removing CBFS_SYMLINK_NETWORK_WRITE_NETWORK_ACCESS fixes the issue

Thanks a lot.
Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.

Reply

Statistics

Topic viewed 1388 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!