I'm trying to make it so my customuser
can use programs like FileZilla, CuteFTP, Bitvise SSH... etc to SFTP into the server and modify files in the root directories. I use Bitvise SSH normally because it acts as both a ssh terminal and also a file explorer.
I have created a new user via:
useradd customuser
passwd customuser
I have setup wheel, root permissions access via:
usermod -G wheel,root customuser
I have modified my sshd_config
file and added the following two lines:
PermitRootLogin no
AllowUsers customuser
I have modified sudoers and added the following, bare in mind I only allow ssh connections right now and I don't mind if this user (a very hard to bruteforce username) has full access to root, I just don't want root
to be a user that can be logged into. Eventually I'll re-enable the password on the root account to increase the security on the customuser
(once re-removing root file permissions)
customuser ALL=(ALL) NOPASSWD: ALL
I have restarted sshd:
service sshd restart
However I cannot access any directory above /home/deploy/
because I don't have the correct permissions... I'm not sure what I am missing in order to achieve the desired result.
Could anyone point me in the right direction?