14
submitted 1 week ago by Tippon@lemmy.dbzer0.com to c/linux@lemmy.ml

I manage a handful of small websites and have recently switched from Windows to Mint. I was using PortableApps to keep the sites separated, and for the moment want to do the same. I've set up VirtualBox with a cut down Windows 10 installation, and added the root folder of the websites as a shared folder, so Websites/Site1, Websites/Site2 etc. The root folder is still on an NTFS drive.

So far, everything works, except I can't run the PortableApps suite from the shared folder in VirtualBox. PortableApps runs and updates, but the apps don't work properly. Thunderbird is ok but has random glitches, Firefox launches but sites don't load, and Chrome instantly closes. If I copy the folder for the individual site into the virtual machine though, it works perfectly.

I'm assuming that it's a permissions problem, as the NTFS drive is owned by me but is in the root group, but copying the files to the virtual machine copies them to the vboxuser group, which I'm a member of. The fstab entry for the drive is:

UUID=BAB4BFE2B4BF9EF7 /mnt/Storage ntfs defaults,uid=tippon 0 2

but from what I can gather, it should have my UID and GID instead. The examples and questions I've found online have some extra details at the end with no explanation though, like dmask=022, fmask=133, and I don't want to risk editing my fstab without understanding them.

So, to finally get to the question, if I replace uid=tippon with uid=1000,gid=1000 (my user and group), would that let me access the files from within VirtualBox, as well as whichever other programs I might want to use, and would it break anything?

you are viewing a single comment's thread
view the rest of the comments
[-] just_another_person@lemmy.world 4 points 1 week ago

Unless there is a mapping between a UID of a user across many different machines (something like a domain controller), you're not going to be able to set proper permissions by user. You need to use a generic group, or provide global read access at a minimum.

I'm not 100% sure why you've chosen this route, but there are MUCH simpler ways of doing this that don't involve VMs and NTFS volumes.

At this point, you're butting up against 3 levels of nested permissions, including the VM. My suggestion would be to make sure all the files on the NTFS volume have global read access, then go into the VM and attempt to set NTFS permissions on the files (they are different). If that becomes too tedious, you could just try setting 777 on all shared files. It's unsafe, but may get you through until you find a more...workable solution for what you're doing here.

I think the overall solution is to just not need this Windows VM, so look at moving these sites off to Nginx or something ASAP.

[-] Tippon@lemmy.dbzer0.com 1 points 1 week ago

Thanks for replying :)

I think there's some confusion though, none of the sites are hosted locally, PortableApps just lets me use a separate browser and email client for each website, effectively sandboxed from each other so that there's no chance of accidentally editing the wrong site or posting from the wrong account. Each PortableApps instance has its own set of logins and bookmarks etc. to manage one website and the associated emails.

I essentially just want to run a program in a Windows 10 VM that's stored on the Linux host but on an NTFS drive. As far as I can tell, the permissions on the NTFS drive are interfering with that, as the files are in the root group on Mint, whereas I'm in the tippon and vboxuser groups. I'm not sure how to change that without risking breaking something, but the way the NTFS drive is mounted through fstab seems to be the answer.

I think that changing fstab so that the drive is mounted under my user and group will fix it, but I don't know how that will affect anything else on the drive, or any Linux programs that access those files. I'm stuck with NTFS for now as I occasionally need to dual boot, and need these programs available while I'm in Windows too.

Ideally I'm going to move away from using PortableApps to manage the sites, but I haven't found a better way yet.

[-] bjoern_tantau@swg-empire.de 4 points 1 week ago

Firefox recently added a new profile manager to do just that. Thunderbird should also support having multiple separate profiles.

[-] Tippon@lemmy.dbzer0.com 2 points 1 week ago

That's interesting. I knew that Firefox had options for different profiles, but last time I tried I couldn't get it working the way I wanted. I'll have another look, thanks :)

load more comments (9 replies)
load more comments (9 replies)
load more comments (9 replies)
this post was submitted on 28 Jan 2026
14 points (100.0% liked)

Linux

62524 readers
364 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS