Geben Sie FTP-Benutzer Zugriff auf ein bestimmtes Verzeichnis

So, ich google würde sich um und fand diese Anleitung zum erstellen einer FTP-Benutzer und geben Sie ihm Zugriff auf ein Verzeichnis

    To create FTP user through SSH you would need to follow below mentioned steps:

1. Login as root through SSH.

2. Next add the user account you want using the 'useradd' command

useradd <username>

3. Now create a special group for that user.

groupadd <groupname>

4. Now to add the user to the group

gpasswd -a <username> <groupname>

These commands are non-standard but
available on most popular
distributions. If not, then you can
try editing /etc/group using your
favorite text editor.

5. Change the group ownership of the special directory to that group.

chgrp -Ra groupname
/path/to/your/web/directory

6. Enable write permissions

chmod -R g+rw

/path/to/your/web/directory

Nun, das war großartig und alle, aber das problem ist, dass auf ftp, meine Benutzer (namens jon) - Protokolle in das Verzeichnis /home/jon statt der Oxford Verzeichnis erstelle ich für seine Gruppe, wie pro Anweisungen: `/home/domain/public_html/wallpaper

Wenn Sie wollen, um die Berechtigungen zu ändern, sollten Sie die binäre option, anstatt alphabetisch. Zum Beispiel:

chmod 777 für alle Benutzer, alles zu tun. Sie wäre wahrscheinlich besser mit 755 aber mit dem, was Sie wollen.

Sie müssen um genauer zu sein. Welches Betriebssystem ist das? Welchen FTPd verwendest du? Dies hängt ganz von OS und FTP-server. Auf ProFTPd, zum Beispiel, Sie können unterschiedliche Benutzer-Verzeichnis pro Benutzer.
apache, centos, ich glaube, ich habe proftpd

InformationsquelleAutor GreatestSwordsman | 2011-07-17

Schreibe einen Kommentar