FTP server raspberry pi

Status
Niet open voor verdere reacties.

zakheave

Gebruiker
Lid geworden
27 okt 2011
Berichten
79
Hallo, ik ben een beetje hulp nodig bij het installeren van een FTP server op mijn Raspberry Pi. Ik heb een tutorial van internet hiebij gebruikt. Daarin staat:
For this I chose to use vsftp, as it's pretty simple to set up.

Again, either start an SSH session, or continue if you're already in one.

Type in "sudo chown -R pi /var/www" <-- IMPORTANT (otherwise you won't be able to upload anything)

Type in "sudo apt-get install vsftpd" and hit Return / Enter
Now type in "sudo nano /etc/vsftpd.conf" and hit Return / Enter

Search through the file and change the following lines:
anonymous_enable=YES Change To anonymous_enable=NO
#local_enable=YES Change To local_enable=YES
#write_enable=YES Change To write_enable=YES

Also, add a line to the bottom of the file:
force_dot_files=YES

Then hold the Ctrl key and press "x", then "y", then the Return / Enter key.

Now restart the FTP server with "sudo servce vsftpd restart"

At the moment you will need to change the directory every time you login by FTP, to solve this:

Type:
"sudo -i"
"passwd root"
Type in any password (this is only temporary)
"exit"
"exit"
Start a new SSH session
Username: root
Password (the one you just set)
"nano /etc/passwd"
find the line "pi:x;1000:1000:Raspberry Pi User,,,:home/pi:/bin/bash" and change it to "#pi:x;1000:1000:Raspberry Pi User,,,:home/pi:/bin/bash".

Then hold the Ctrl key and press "x", then release Ctrl and press "y" then hit Return / Enter.
"usermod -d /var/www pi"
Mijn probleem is dat wanneer ik de pi regel in #pi verander en dan "usermod -d /var/www pi" invoer ik een foutmelding krijg die zegt dat de pi gebruiker niet bestaat. Ook kan ik dan niet meer inloggen op de pi gebruiker (nog wel op root).
 
Status
Niet open voor verdere reacties.
Steun Ons

Nieuwste berichten

Terug
Bovenaan Onderaan