Gallery install - permission problems



So when installing gallery, it asks you to create a login.txt within the gallery2 folder and put some sort of a code into it. When I try to create that file (both by just SFTPing it into the right folder and by SSHing into the server and using Pico), I get a Permission Denied error. All the files in that folder are owned by root:root, which explains the error. Anybody run into this before? Do I need to call support?