This is an ext4 fs and I am unable to gain permissions over the directory with the postgres user:
mud@mud-i7-32gb:~$ sudo mount /dev/sdc1 /media/mud/ssd128
mud@mud-i7-32gb:~$ ls -l /media/mud/ssd128/
total 20
drwxr-xr-x 2 root root 16384 דצמ 20 22:15 lost+found
drwxr-xr-x 2 postgres postgres 4096 דצמ 21 10:45 pgdata
mud@mud-i7-32gb:~$ sudo chown postgres:postgres /media/mud/ssd128/pgdata
mud@mud-i7-32gb:~$ sudo su postgres
postgres@mud-i7-32gb:/home/mud$ ls -l /media/mud/ssd128/pgdata
ls: cannot access /media/mud/ssd128/pgdata: Permission denied
What did I do wrong?
/media/mud
and/media/mud/ssd128
?