Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista General

Vista Tutorial - Vista Non-admin problem

Reply
 
Old 09-10-2007   #1 (permalink)
vista
Guest


 
 

Vista Non-admin problem


Hi all,
The process doesn't have admin rights to open Registry Key,
CreateFile, etc .... That is If i accesses any admin privileged
resource that will be failed in vista(Even if the account type is
administrator or standard user).
Am using CreateFile. Its failed on TAP device,
\\.\Global\{..}.tap: Access is denied. Do we need to set any specific
Security policy for resolving this issue? Tried some of them under user
control. But everything ends in failure. Can anyone help on this?
Thanks.


--
vista
------------------------------------------------------------------------
vista's Profile: http://forums.techarena.in/member.php?userid=30845
View this thread: http://forums.techarena.in/showthread.php?t=815553

http://forums.techarena.in


My System SpecsSystem Spec
Old 09-11-2007   #2 (permalink)
vista
Guest


 
 

Re: Vista Non-admin problem


Problem is we are getting the "Access is denied" error when we try to
access the TAP device using CreateFile() function.

Following are the various configuration changes we tried in Vista
Business trial version to fix this CR.
But everything ends in failure.

1. Tried the following Group Policy option in Vista
Click Start, type gpedit.msc in the Search box, and press ENTER
Go to the following branch:
User Configuration | Administrative Templates | System

Double-click Prevent access to registry editing tools
Set it as Not Configured
This option didnt helped.
2. Tried the following Security Policy options in Vista

-> Enabled UAC to Run all administrators in admin approval mode and


-> Network access for remotely accessing registry path and
subpaths.

Both options didnt helped.

3. Used third party utility(SubInACL) to add administrator permissions
to every key in the registry from the link:
http://www.microsoft.com/technet/tec...s/2006/11/UAC/
This is failed as we are not able to set the registry permissions using
this utility procedures.
4. "Removable Storage Devices and Win Vista support" document provided
by Microsoft Support.

It was mentioned in that document that,
"Application such as CD-burning applications or video games that use
SCSI pass-through requests to send commands to devices require Full
access to the storage device driver’s interface. However, such requests
require elevated privileges to send commands to the drive, and in
Windows Vista, the user is not granted elevated privileges by default,
even if the user is a member of the Administrator group. Therefore,
applications that assume that the access permissions for device access
will be the same as the logged-on user’s permissions might break if an
operation requires elevated privileges. Such an application would fail
to open a handle to the storage device driver interface, and therefore
the application would fail to work in Windows Vista.
Important: It is not necessary to change these applications to be "UAC
aware" and prompt the user for elevation of privileges for specific
operations. Such a change would break application compatibility between
Windows Vista and earlier versions of the Windows operating system.
Instead, Windows Vista grants higher privileges by default to the
Interactive User (IU) group for CD and DVD drives that have the
Removable property set. This default allows applications to open a
handle to removable media drives for sending SCSI pass-through requests
without prompting the user for elevation of privileges."

But we are not able to set REMOVABLE property for our TAP device, so
that VISTA will grant access for that.
5. Changed the user permission in registry path as follow: i) Open
regedit and go to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class
ii) Right click on the key to want to change and choose Permissions
from the menu.
iii) Click on the Advanced button and go to the Owner tab
iv) Change the owner to the local machine's Administrators group,
checking the Replace owner on subcontainers and objects box.
v) Click on the OK buttons until the initial Permissions dialog has
disappeared.
We now have permission to view/edit the registry entries. If we are not
a member of the Administrators group, then we need to add the user
account to the list of accounts who can access that registry key.

Once the above procedure was tried out, we are able to access the
registry properly but still NetDirect failed due to CreateFile()
function for TAP device.

Can anyone please help on this?


--
vista
------------------------------------------------------------------------
vista's Profile: http://forums.techarena.in/member.php?userid=30845
View this thread: http://forums.techarena.in/showthread.php?t=815553

http://forums.techarena.in

My System SpecsSystem Spec
Old 09-13-2007   #3 (permalink)
vista
Guest


 
 

Re: Vista Non-admin problem


Hi all,
why Vista has two user types? When we select "Administrator" user
type, there are some paths and registry not accessable by them. Since
description of that user type said its "a user with admin rights". Then
how can we enable full access to them? Is there anyway to do that? And
also the created admin user don't know the actual admin credentials,
username and passwd. Thanks in advance.


--
vista
------------------------------------------------------------------------
vista's Profile: http://forums.techarena.in/member.php?userid=30845
View this thread: http://forums.techarena.in/showthread.php?t=815553

http://forums.techarena.in

My System SpecsSystem Spec
Old 09-13-2007   #4 (permalink)
Dwarf
Guest


 
 

Re: Vista Non-admin problem



"vista" wrote:
Quote:

>
> Hi all,
> why Vista has two user types? When we select "Administrator" user
> type, there are some paths and registry not accessable by them. Since
> description of that user type said its "a user with admin rights". Then
> how can we enable full access to them? Is there anyway to do that? And
> also the created admin user don't know the actual admin credentials,
> username and passwd. Thanks in advance.
>
>
> --
> vista
> ------------------------------------------------------------------------
> vista's Profile: http://forums.techarena.in/member.php?userid=30845
> View this thread: http://forums.techarena.in/showthread.php?t=815553
>
> http://forums.techarena.in
>
>
Try using the information in my post 'Problematic Updates in Windows Vista',
also in this newsgroup, to activate the main Administrator account and see if
you can solve your problem using this account. Do not use this account any
more than you need to - when you have finished using it, it is probably safer
to disable it again.
My System SpecsSystem Spec
Old 09-18-2007   #5 (permalink)
vista
Guest


 
 

Re: Vista Non-admin problem


Hi,

Thanks for your help. My application is automatically invoked by
CreateProcess(). Is this right to place the below manifest file in the
application executable folder.

My exe : sample.exe
Manifest file name : sample.exe.manifest



Manifest file contents:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<assembly xmlns="urn: schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0"
processorArchitecture="X86"
name="sample.exe"
type="win32"/>
<description> Sample Exe Description</description>

<!-- Identify the application security requirements. -->
<trustInfo xmlns="urn: schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel
level="asInvoker"
uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>

Will Vista pick it up automatically when i call my application .exe?
Will this manifest file work for both user types, 'Standard user' and
'Administrator'? Do we need to do any specific changes in this file
content?


--
vista
------------------------------------------------------------------------
vista's Profile: http://forums.techarena.in/member.php?userid=30845
View this thread: http://forums.techarena.in/showthread.php?t=815553

http://forums.techarena.in

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Vista Admin Corrupt problem General Discussion
Problem in creating multiple admin accounts - Vista Ultimate 64 bi Vista account administration
Admin problem with vista General Discussion
Admin access to Vista Registry Remote & locally in Admin Approval Vista security
Vista admin problem Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46