So in attempts to secure my server a bit, I created a new user with su - root access and denied root login. Now I can't SFTP any files on my server through Filezilla with this user. These are the steps I took :
- Created new user, new pass, SSH'd to the server, checked it, checked that I could switch user to root (all went well)
PermitRootLogin nowith Filezilla SFTP.
- Restarted SSHD service.
- Double checked again to ensure that new user had root access via SSH. All was fine.
Now, unfortunately, when SFTPing through Filezilla with new user/pass, I can access and view all the directories/files in my server, but I can't open/read/edit them.
Is there a permissions setting I need to change as root user for new user to be able to do this? Have I some how shot myself in the foot?
Edit : Ok, so as root is chmod'd the file 777, and this allowed me to view/edit as new user, but is there a way to simply grant a user all of these permissions for SFTP, but not the public/anyone else?