Thursday 2 November 2017

linux - Can't change owner of folders/files on thumb drive

I have a drive being mounted (either manually or automatically using usbmount) and I can't change the owner or modify the permissions on the mounted drive or folders/files within in order for Mono to write files to it. I keep getting an operation not permitted error. I have since removed the usbmount package and I'm trying to affect the permissions on the mounted drive.. can't touch it


$sudo chmod 777 Folder
drwx------ 2 jroper jroper 16384 Sep 13 16:13 Folder/

jroper@ubuntu:/media/usb$ ll
drwxr-xr-x 4 root root 16384 Dec 31 1969 ./
drwxr-xr-x 12 root root 4096 Sep 13 16:30 ../
-rwxr-xr-x 1 root root 0 Sep 13 14:43 File.txt*
drwxr-xr-x 2 root root 16384 Sep 13 16:13 Folder/
drwxr-xr-x 2 root root 16384 Sep 13 14:23 System Volume Information/
jroper@ubuntu:/media/usb$ sudo chmod 777 Folder
jroper@ubuntu:/media/usb$ ll
total 52
drwxr-xr-x 4 root root 16384 Dec 31 1969 ./
drwxr-xr-x 12 root root 4096 Sep 13 16:30 ../
-rwxr-xr-x 1 root root 0 Sep 13 14:43 File.txt*
drwxr-xr-x 2 root root 16384 Sep 13 16:13 Folder/
drwxr-xr-x 2 root root 16384 Sep 13 14:23 System Volume Information/
jroper@ubuntu:/media/usb$ sudo chown jroper:jroper Folder
chown: changing ownership of ‘Folder’: Operation not permitted
jroper@ubuntu:/media/usb$ ll
total 52
drwxr-xr-x 4 root root 16384 Dec 31 1969 ./
drwxr-xr-x 12 root root 4096 Sep 13 16:30 ../
-rwxr-xr-x 1 root root 0 Sep 13 14:43 File.txt*
drwxr-xr-x 2 root root 16384 Sep 13 16:13 Folder/
drwxr-xr-x 2 root root 16384 Sep 13 14:23 System Volume Information/
jroper@ubuntu:/media/usb$ sudo chgrp jroper Folder/
chgrp: changing group of ‘Folder/’: Operation not permitted

No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...