Installare un server vsFTPd con utenti virtuali su MySQL: differenze tra le versioni

Riga 167: Riga 167:


== Creazione del primo utente virtuale ==
== Creazione del primo utente virtuale ==
Per creare il nostro primo utente virtuale possiamo usare la shell di MySQL:
<pre>
# mysql -u root -p
</pre>
<pre>
USE vsftpd;
</pre>
Creeremo un utente chiamato <tt>testuser</tt> con password <tt>secret</tt>:
<pre>
INSERT INTO accounts (username, pass) VALUES('testuser', PASSWORD('secret'));
quit;
</pre>
testuser's homedir is /home/vsftpd/testuser; unfortunately vsftpd doesn't create that directory automatically if it doesn't exist. Therefore we create it manually now and make it owned by the vsftpd user and the nogroup group:
mkdir /home/vsftpd/testuser
chown vsftpd:nogroup /home/vsftpd/testuser


{{Autori
{{Autori