Can't change permissions of USB drive

Discussions about using Linux guests in VirtualBox.
Post Reply
CactusWren
Posts: 28
Joined: 4. Dec 2021, 18:47

Can't change permissions of USB drive

Post by CactusWren »

I have set up a USB drive and it works correctly, except that I can't change the permissions on it.

The permissions are currently mike:mike, and I want them to be www-data:www-data.

Code: Select all

mike@Jupiter-VirtualBox:/media/mike$ sudo chown www-data:www-data 'USB DRIVE 2'
chown: changing ownership of 'USB DRIVE 2': Operation not permitted
fdisk -l

Code: Select all

Disk /dev/sdb: 29.3 GiB, 31457280000 bytes, 61440000 sectors
Disk model: UDisk           
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0a9f6b05

Device     Boot Start      End  Sectors  Size Id Type
/dev/sdb1  *       64 61439999 61439936 29.3G  c W95 FAT32 (LBA)
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Can't change permissions of USB drive

Post by mpack »

Clearly not relevant in "Windows Hosts". Topic moved to "Linux Guests".
CactusWren
Posts: 28
Joined: 4. Dec 2021, 18:47

Re: Can't change permissions of USB drive

Post by CactusWren »

Turns out the issue was the USB stick was formatted in FAT32 and so permissions aren't supported. Once I changed it to ext4, I was able to change the permissions and access the site.
Post Reply