i have a ntfs hard mounted on /mnt/HDD and i want to change the ownership of the files inside from root to amiroof. i tried
sudo chwon -R amiroof:amiroof /mnt/HDD
but that didnt worked and the result of ls -halg /mnt/HDD is still the same.
i have windows installed on that drive (with fast startup disabled) and that might be the cause.
man mount
and do something likesudo mount -o remount,rw,uid=$(id u),gid=$(id -g) /dev/whatever /mnt/HDD
. That will redo themount
, read/write, and "owned" by you. – waltinator May 09 '23 at 22:06