I use sftp to backup my laptop (Ubuntu 18.10) onto a server (Ubuntu 18.04) on my local network. Suddenly something has gone wrong with the permissions on the server and I started getting access denied warnings. My username on the server also lost membership of the sudoers group. I added the user back into the sudoers group but cannot get the access to the backup folder without running
sudo chmod -R 777. Obviously, for security reasons, I need to have at least 775 permissions on this file but I don't know what user to add to what group to achieve this.
EDIT I tried adding the backup folder owner to the ssh group but that didn't work.
~$ ls -l /home/biergarten total 1172 drwxrwxr-x 2 biergarten ssh 1167360 Feb 6 00:27 BackupLaptopSSD drwxrwxr-x 2 biergarten ssh 20480 Apr 23 09:20 BackupTuxedo -rwxrwxr-x 1 biergarten ssh 58 Oct 20 2016 delPhotos.sh -rwxrwxr-x 1 biergarten ssh 131 Dec 14 2016 FTP_TEST123.txt ~$ groups biergarten ssh