Announcement

Collapse
No announcement yet.

Access is denied despite having administrator permissions

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Access is denied despite having administrator permissions

    Hi,
    Anybody knows why is this behavior in Windows ?


    I tried it with the Windows Server 2008 R2 version, but I think this also applies to other versions.


    When I logon (by remote desktop) with user userx (local administrator), it raises an error "Access is denied". Here are the steps to reproduce the behavior:

    c:\>hostname
    HOSTX


    c:\>whoami
    domainx\userx <= Userx is a member of Administrators group from host HOSTX

    c:\>echo "algo" > c:\algo.txt
    Access is denied.


    However, if I logon with domain administrator, it works.

    c:\>whoami
    domainx\administrator

    c:\>echo "algo" > c:\algo.txt

    c:\


    Please, provide any clue according your experience.
    Thanks

  • #2
    What are the Ownership permissions on the folder/files that you are trying to access. If it denies access then it is a permissions issue.
    1 1 was a racehorse.
    2 2 was 1 2.
    1 1 1 1 race 1 day,
    2 2 1 1 2

    Comment


    • #3
      This is a well documented change in Windows. Regular users cannot write files to the root of C anymore. If you try to open the command prompt using elevated credentials, you will succeed.
      Cheers,

      Daniel Petri
      Microsoft Most Valuable Professional - Active Directory Directory Services
      MCSA/E, MCTS, MCITP, MCT

      Comment


      • #4
        Thanks Daniel,

        Your post gave me the clue to arrive at the solution. It is due to UAC. According to http://www.mkyong.com/computer-tips/...ory-windows-8/

        to enable writes files, we have turn off the UAC:

        1. Press keys “Windows Key + R”, type regedit
        2. Locate HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Policies\System\EnableLUA
        3. Update the EnableLUA value
        4. Restart windows

        Thanks

        Comment

        Working...
        X