1

So I have a folder with some crazy (Windows) ownership privileges. I have the folder mounted on a Linux guest OS virtual machine shared folder. I can delete files from the folder using rm -f, however I cannot write anything there.

How can that be possible with file permissions in Windows?

BTW: I can't delete the folder from Windows either -- Go figure...

Edit: People want more details about the setup, so here you go:

The host is Windows 8.1 and the guest is Debian 7. The crazy folder that I am talking about is in the WindowsApps hidden folder under Program Files. It makes sense that it has crazy privileges... I am just wondering how they are being carried through to Linux like this.

I am working on getting some privileges data that was requested.

  • 2
    Not from a file system. Once the OS (Linux) mounts the FS, it's up to Linux whether to interpret and make any attempt to honor the security restrictions. Even then it has to be able to read and interpret the SAM which I think they do these days, but still... no. It's one reason for encrypting files, whether per-file or whole-disk encryption, because otherwise someone can just boot a live CD or something and read your data. – Mark Allen Jul 15 '14 at 19:27
  • Can you be more specific about the version of linux and how you have it mounted (samba? nfs? something else?)? – MaQleod Jul 15 '14 at 19:34
  • Also, permissions readouts from both windows (icacls.exe) and linux (ls -l) and the usernames accessing the files could also be helpful. – MaQleod Jul 15 '14 at 19:36
  • @MaQleod I have not heard of "icacls" before... what is it? – Questionmark Jul 15 '14 at 19:38
  • It lists the ACL for a given file. Windows has some pretty granular perms options. Delete (D) is actually a specific option: superuser.com/questions/322423/… – MaQleod Jul 15 '14 at 19:40
1

In my experience as a sysadmin, I load up windows directories with linux so that I can delete or add files without having to worry about the permissions. That is a security issue.

  • What do you mean "load up" -- are you talking about actually booting Linux and mounting Windows?... I know that had better work. – Questionmark Jul 15 '14 at 19:28
  • You are correct in your assumption. – Jeff Clayton Jul 15 '14 at 19:30
  • That's not quite what I was asking... I am pretty much saying "How is this happening???" I like the thinking though... – Questionmark Jul 15 '14 at 19:30
  • BTW: Welcome to superuser! – Questionmark Jul 15 '14 at 19:32
  • What version of windows are you running and what version of linux... It could be that you are running a version of one that does not understand the other... a version of windows without ext2fs cannot read that or write to it without the update, etc... ext3fs support is not included in many versions of windows as well. – Jeff Clayton Jul 15 '14 at 19:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.