Symlink Problem (FTP)
Symlink Problem (FTP)
Hallo,
Ich habe ein Problem mit einem Symlink, der in /var/www/web11/html/cgi-bin/shops/s000001 liegen soll, den Namen "html" tragen soll und nach /var/www/web11/html/s000001 verweisen soll.
Weiters sollte der Benutzer auch Schreib-/Leserechte (per FTP) in diesem Verzeichnis haben, da es schliesslich auch im gehört.
Ich sehe das Verzeichnis zwar per FTP als Symlink, jedoch kann ich nicht in diesen wechseln. Stattdessen erhalte ich die Meldung "[R] 550 html: No such file or directory".
Wer kann mir dazu bitte einen hilfreichen Tip geben?
Lg
Jürgen
Ich habe ein Problem mit einem Symlink, der in /var/www/web11/html/cgi-bin/shops/s000001 liegen soll, den Namen "html" tragen soll und nach /var/www/web11/html/s000001 verweisen soll.
Weiters sollte der Benutzer auch Schreib-/Leserechte (per FTP) in diesem Verzeichnis haben, da es schliesslich auch im gehört.
Ich sehe das Verzeichnis zwar per FTP als Symlink, jedoch kann ich nicht in diesen wechseln. Stattdessen erhalte ich die Meldung "[R] 550 html: No such file or directory".
Wer kann mir dazu bitte einen hilfreichen Tip geben?
Lg
Jürgen
Re: Symlink Problem (FTP)
Code: Select all
ln -sf /var/www/web11/html/cgi-bin/shops/s000001/html /var/www/web11/html/s000001PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Re: Symlink Problem (FTP)
Hi Joe,
Danke für deine Antwort, jedoch klappt dies nicht.
Mein FTP-Programm (FlashFXP) meint dazu:
Lg Jürgen
Danke für deine Antwort, jedoch klappt dies nicht.
Mein FTP-Programm (FlashFXP) meint dazu:
Gibts dafür eine Lösung, denn das Verzeichnis existiert doch.[R] CWD html
[R] 550 html: No such file or directory
Lg Jürgen
Re: Symlink Problem (FTP)
Hast Du es mal mit einem vernünftigem FTP-Client (WS_FTP Pro) versucht?
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Re: Symlink Problem (FTP)
Hallo,
Ich arbeite mit FlashFXP schon seit mehr als 4 Jahren, kann es aber gerne mal mit WS_FTP Pro probieren und dann berichten, ob es damit geklappt hat.
Lg
Jürgen
Ich arbeite mit FlashFXP schon seit mehr als 4 Jahren, kann es aber gerne mal mit WS_FTP Pro probieren und dann berichten, ob es damit geklappt hat.
Lg
Jürgen
-
superuser1
- Posts: 291
- Joined: 2003-11-26 18:43
- Location: earth
Re: Symlink Problem (FTP)
Hi...
http://www.proftpd.de/forum2/viewtopic.php?t=67
http://www.vsftpdrocks.org/faq/
http://www.proftpd.de/forum2/viewtopic.php?t=67
http://www.vsftpdrocks.org/faq/
:roll:Q) Why don't symlinks work with chroot_local_user=YES?
A) This is a consequence of how chroot() security works. As alternatives,
look into hard links, or if you have a modern Linux, see the powerful
"mount --bind".
Re: Symlink Problem (FTP)
Hallo,
Also mit WS_FTP funktioniert es auch nicht...
Hier die Fehlermeldung der Software:
Gibt es hier nicht sowas mit "AllowSymlinks" oder ähnliches?
Das mit "mount" ist nicht so mein Fall...
Aber eine halbwegs akzeptable Möglichkeit muss es doch geben?
Lg
Jürgen
Also mit WS_FTP funktioniert es auch nicht...
Hier die Fehlermeldung der Software:
Die Sache mit dem "defaultroot~" gefällt mir gar nicht... :(Failed, error: 550
Gibt es hier nicht sowas mit "AllowSymlinks" oder ähnliches?
Das mit "mount" ist nicht so mein Fall...
Aber eine halbwegs akzeptable Möglichkeit muss es doch geben?
Lg
Jürgen
-
superuser1
- Posts: 291
- Joined: 2003-11-26 18:43
- Location: earth
Re: Symlink Problem (FTP)
Hi...
:roll:
lesen: http://castaglia.org/proftpd/modules/mod_vroot.htmlAber eine halbwegs akzeptable Möglichkeit muss es doch geben?
:roll:
Re: Symlink Problem (FTP)
Hardlink statt Softlink?
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Re: Symlink Problem (FTP)
Hallo Joe,
Hmm, man kann doch einen Hardlink doch nur auf eine Datei erstellen, aber nicht auf ein Verzeichnis, oder habe ich da etwas falsch verstanden?
Wie würdest du es denn mit einem Verzeichnis haben, wenn du mir schon einen Hardlink empfiehlst?
Lg Jürgen
Hmm, man kann doch einen Hardlink doch nur auf eine Datei erstellen, aber nicht auf ein Verzeichnis, oder habe ich da etwas falsch verstanden?
Wie würdest du es denn mit einem Verzeichnis haben, wenn du mir schon einen Hardlink empfiehlst?
Lg Jürgen
Re: Symlink Problem (FTP)
Code: Select all
man ln
ln -d foo bar
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Re: Symlink Problem (FTP)
Hi Joe,
Demnach wäre der korrekte Befehl:
Aber... das klappt nicht:
Wie ich ja schon sagte, kann das mit Hardlinks nicht funktionieren, weil:
Liebe Grüsse
Jürgen
Demnach wäre der korrekte Befehl:
Code: Select all
ln -d /var/www/web11/html/cgi-bin/shops/s000001/html /var/www/web11/html/s000001Code: Select all
ln: Zugriff auf ,,/var/www/web11/html/cgi-bin/shops/s000001/html": Datei oder Verzeichnis nicht gefundenAlso scheint es für mein Problem keine gute Lösung zu geben?Man kann i.a. auch keine "hardlinks" auf Verzeichnisse machen.
Praktischer und viel öfter verwendet werden daher die symlinks.
Liebe Grüsse
Jürgen
-
superuser1
- Posts: 291
- Joined: 2003-11-26 18:43
- Location: earth
Re: Symlink Problem (FTP)
Hi...
Im Falle von ProFTPd ist mod_vroot ja wohl die eleganteste aller Lösungen.
Und was dir an mount --bind nicht gefällt, entzieht sich auch meinem Verständnis.
Irgendwie klingt mir das etwas nach - sorry - "ich will meine Suppe nicht essen"...
Ansonsten musst du eben über eine geänderte Verzeichnisstruktur nachdenken, die dein Problem löst...
:roll:
Also ich weiss echt nicht, was du unter einer guten Lösung verstehst?Also scheint es für mein Problem keine gute Lösung zu geben?
Im Falle von ProFTPd ist mod_vroot ja wohl die eleganteste aller Lösungen.
Und was dir an mount --bind nicht gefällt, entzieht sich auch meinem Verständnis.
Irgendwie klingt mir das etwas nach - sorry - "ich will meine Suppe nicht essen"...
Ansonsten musst du eben über eine geänderte Verzeichnisstruktur nachdenken, die dein Problem löst...
:roll:
Re: Symlink Problem (FTP)
Ich weiss zwar nicht, wen/was Du zitierst, aber in meinem man steht etwas Anderes...DtS wrote:Wie ich ja schon sagte, kann das mit Hardlinks nicht funktionieren, weil:
Man kann i.a. auch keine "hardlinks" auf Verzeichnisse machen.
Praktischer und viel öfter verwendet werden daher die symlinks.
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Re: Symlink Problem (FTP)
8O
Also jetzt verstehe ich gar nichts mehr...
Könntest du mir mal den korrekt Befehl zukommen lassen?
Danke dir!

Also jetzt verstehe ich gar nichts mehr...
Könntest du mir mal den korrekt Befehl zukommen lassen?
Danke dir!
-
superuser1
- Posts: 291
- Joined: 2003-11-26 18:43
- Location: earth
Re: Symlink Problem (FTP)
Hi...
Soweit ich weiss, sind Hardlinks auf Verzeichnisse bei aktuellen Distributionen selbst für root verboten - Stichwort Schleifenfreiheit in Verzeichnisbäumen...
:roll:
Mein man gestattet auf dem Papier auch Hardlinks auf Verzeichnisse, aber funktionieren tun sie trotzdem nicht.Joe User wrote:Ich weiss zwar nicht, wen/was Du zitierst, aber in meinem man steht etwas Anderes...
Soweit ich weiss, sind Hardlinks auf Verzeichnisse bei aktuellen Distributionen selbst für root verboten - Stichwort Schleifenfreiheit in Verzeichnisbäumen...
:roll:
