My desktop has another hard drive which I intend to use for data storage and the issue is that nautilus always asks for password when trying to mount that drive.
Same when I try and access the drive from the terminal, I get
ls: cannot open directory '/media/luca/Storage/': Permission denied
So basically, I always need to use sudo to perform file operations on this directory.
Now, is there a way to remove this restriction. How can I auto mount this drive without having to specify my password every time or having to use sudo
every time I have to access files on this drive?
I am using ubuntu 18.04.
sudo chown -R luca:luca /media/luca/Storage/
. If you do anls -l
now it's probably owned by the root user. – schrodingerscatcuriosity Apr 21 '20 at 20:52