I'm setting up and FTP server, and I want to be able to login myself and do whatever I want, but if I want others to connect to my server, I give them credentials that restrict them to the home directory. I've created the user with:
adduser username passwd username mkdir /home/user_dir usermod -d /home/user_dir
I then enabled
chroot_list_enable, created a file and put my username in it so that I still have access to the entire machine.
If I ftp as myself, I can login and do whatever I want, but I can't login as this new user. (I get
530 Login Incorrect).
I can login to a shell as the new user (
su newUser... password)
Also - if I remove myself from the chroot list, I get the
Fixed - forgot about writeable chroot
500 OOPS refusing to run with writeable root inside chroot. I'm assuming this error will be the same with the new user, how do I give them restricted access if I get this error when restricting their access?