ADDING FTP USER
Login to the server
"su" Enter your password
Loads the variables for the root user and can be found in /root/.profile
"su -"
You can manually load the above mentioned variables when you forgot to login with the minus by
source /root/.profile
useradd -g <group> -d <folder to access> -s /bin/false -m <username>
Adding the actual user
useradd -g apache -d /home/yourhomefolder -s /bin/false -m yourname
Add the user to this file this dissallows him to go outside his specified folder or allow depending on how your server is setup
vi /etc/vsftpd.chroot_list
Set the password passwd <username>
passwd yourname
Enter the password you would like the user to have
By PHPin24 @ 2009-07-20 20:30:37
|