User SSH into folder but can nano into any upper folder?

I did useradd -s /bin/rbash -d /var/www/html/directory USRNAME and on ssh login with USRNAME (including ssh key), it goes to directory and cd doesnt go back. So that works… but if they use nano /var/www/html/.env (before directory) it will say Unable to create directory /var/www/html/directory/.local/share/nano/: Permission denied It is required for saving/loading search history or…

iptables INPUT denied from Ossec alerts

I just installed Ossec HIDS in a Ubuntu 18.04 server, and I received a list of Level 2 alerts like the following: Rule: 1002 fired (level 2) -> “Unknown problem somewhere in the system.” Jan 17 17:59:57 fireworks kernel: [ 8014.002457] iptables_INPUT_denied: IN=eth0 OUT= MAC=XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX SRC=XX.XXX.XX.XXX DST=XXX.XXX.XXX.XX LEN=40 TOS=0x00 PREC=0x00 TTL=249 ID=5565 PROTO=TCP SPT=40869 DPT=8129…