I just installed a FTP server on my computer with the following script:
#!/bin/bash
groupadd ftpgroup
useradd -g ftpgroup -d /dev/null -s /etc ftpuser
pure-pw useradd robert -u ftpuser -d /ftphome
pure-pw mkdb
cd /etc/pure-ftpd/auth/
ln -s ../conf/PureDB 60pdb
mkdir -p /ftphome
chown -R ftpuser:ftpgroup /ftphome/
/etc/init.d/pure-ftpd restart
Then, I executed it like this:
chmod 755 setup-ftp
./setup-ftp
And I finnaly connected to it as robert with:
~# ftp My_Ip_Address 21
ftp> Name: robert
etc...
ftp> cd /usr
550 Can't change directory to /usr: No such file or directory
So, I don't get why I can't access to any directory when using ftp, I guess I have to set something, but I don't know what.
Thank you