I have a new HDD and I need to give it permission but I forgot the command. I think it was, “sudo chown $USER:$USER /path/to/mount” is that right?
Without it, I can’t write to it.
I have a new HDD and I need to give it permission but I forgot the command. I think it was, “sudo chown $USER:$USER /path/to/mount” is that right?
Without it, I can’t write to it.
Hello and welcome,
You are good to go, but is it ext4
format or something else?
The drive is ext4.
Can you also say what the $USER is. Is it a variable of the owners username?
Yes, $USER
will take the actual username and group and use it for that command, hence changing the ownership to it.
Ah excellent. I think i’ll be saving this page.
Thanks.