Stop asking for sudo on reading or writing files on /mnt/My_partition

I have a partition on my SSD that I store files on other than the partition of my system. I use this partition very often, but whenever I copy a file from my system to that partition, it asks me for the sudo password, and I want to remove that.

How do I stop it from asking me the sudo password for reading and writing for this partition?

For example:

sam@sam:~/Documents$ mv test.txt /mnt/Data
mv: cannot create regular file '/mnt/Data/test.txt': Permission denied
  • /Data/ :- the partition.

another example:

sam@sam:/mnt/Data$ touch something.txt
touch: cannot touch 'something.txt': Permission denied

If I wanted to perform those actions, I'll have to write sudo with the password, but that's not what I want.


Your /mnt/Data partition is owned by root, so your user "sam" has no permissions to write to it.

Change the ownership of the partition (and everything on it, recursively) to user "sam":

sudo chown -R sam:sam /mnt/Data