[xubuntu-users] changing ownership on thumb drive
Ralf Mardorf
ralf.mardorf at rocketmail.com
Fri May 13 18:46:48 UTC 2016
Some file system simply don't provide to store owner and group, so chwon
doesn't work, just mount can be used to set the owner.
$ sudo parted -l | grep Intenso -A7
Model: Intenso Rainbow (scsi)
Disk /dev/sdc: 8087MB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:
Number Start End Size File system Flags
1 0.00B 8087MB 8087MB fat32
$ sudo mkdir /mnt/usb
$ sudo mount /dev/sdc /mnt/usb
$ ls -hAl /mnt/usb/
total 45M
drwxr-xr-x 3 root root [snip]
$ sudo umount /dev/sdc
$ sudo mount /dev/sdc /mnt/usb/ -o uid=rocketmouse
$ ls -hAl /mnt/usb/
total 45M
drwxr-xr-x 3 rocketmouse root [snip]
$ sudo chown root:root /mnt/usb/*
chown: changing ownership of '/mnt/usb/[snip]': Operation not permitted
[snip]
More information is provided by the man page. Run
$ man mount
Regards,
Ralf
More information about the xubuntu-users
mailing list