0

So I'm working in the directory C:\Users\terminator that's me (terminator user), and I have a workspace folder inside terminator If I try to move files using a code editor I get the following error

EPREM

The error clearly states that I need an administrator's permission to carry out this operation, but this seems quite weird to me, why is this happening? Is this how Windows works? coming from a Linux background, I can do anything inside my ~ directory without requiring any superuser permission,

did I mess up something with my system? or this is how Windows works?

Doing the same operation from bash works fine,

works fine in bash

but doing anything with the cmd gives Access Denied immediately.

cmd crying in the cornor

I think my permissions are fine as well

permissions

9
  • 1
    “The error clearly states that I need an administrator's permission” - Actually it doesn’t, that’s not a Windows permission error, it’s a Visual Studio Code error.
    – Ramhound
    Commented Oct 6, 2023 at 5:02
  • I thought EPREM meant, I needed more privileges to run the operation. I think It has nothing to do with the Visual Studio code command prompt behaving the same way, I have edited the question please check this out, running in the administrator mode clears the problem, my permission seems quite fine to me, I have added that too, I have full access Commented Oct 6, 2023 at 5:17
  • 1
    Normally it does mean that, but even on Linux it is a distinct error from EACCES that means "file permissions don't allow this" – EPERM specifically means "something else beyond file permissions disallows this". Though in this case, I suspect it's just a bad choice of error code and the real cause might be the directory being "busy" (open). Commented Oct 6, 2023 at 5:23
  • Although not necessarily relevant, you are moving src into articles instead when in git bash.
    – Tom Yan
    Commented Oct 6, 2023 at 7:21
  • Yes i probably slapped wrong, screenshot here, but the other way works in bash Commented Oct 6, 2023 at 7:37

0

You must log in to answer this question.

Browse other questions tagged .