Make Symlink to folder on USB stick to be owned by www-data group

Solution 1:

See man fstab and your current file /etc/fstab for more details.

The first field is where to use

UUID=...

The second field describes the mountpoint

The third field describes the filesystem

The fourth field is where to put the options, separated by commas, corresponding to your mount command line

rw,uid=www-data,gid=www-data

The fifth field for an external drive (your USB stick) can contain a zero: 0

The sixth field for an external drive (your USB stick) can contain a zero: 0 but if you want it to be checked regularly, you can put 2 there (and use tune2fs to set the checking interval if an ext4 file system).