Permission on new HDD

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?

1 Like

The drive is ext4.

Can you also say what the $USER is. Is it a variable of the owners username?

1 Like

Yes, $USER will take the actual username and group and use it for that command, hence changing the ownership to it.

1 Like

Ah excellent. I think i’ll be saving this page.