Short introduction: I'm fairly new to Unix-Systems and got a Raspberry 3b+ using it as a Web-Server. Obviously I'm using a different computer for development and transfer the files via sftp. Always running into permission-problems after file transfers I checked my ftp-server (proftpd) for problems (umask) and noticed that whatever the umask in the config nothing changes in the actual file permissions, not even when i change the umask to 777. I got a hint of looking into user-umasks which I then persued and led meto something which i think is the actual problem.
Problem: I'm currently using the standard "pi" user. Whenever i create a file (doesn't matter if i use touch in bash or rightclick - new in file manager) in any directory (for testing purposes i used /home/pi/Desktop/) it's created with 640 permissions.
What i checked:
- umask command: says 022, changing to 000 results in file created with 660 permissions
- /etc/profile: no umask there (i also learned it's the wrong place, but early search led me there)
- /etc/login.defs: has umask set to 022
- /etc/pam.d/: no umask set in any file
- .bashrc: no umask set
Can anyone tell me what i can do so files get created with 644 permissions?
If i'm missing something obvious bonus-thanks if you explain how i could've googled it myself.