www.ProFTPD.de
13. März 2007, 19:16:50 *
Willkommen Gast. Bitte einloggen oder registrieren.
Haben Sie Ihre Aktivierungs E-Mail übersehen?

Einloggen mit Benutzername, Passwort und Sitzungslänge
News: SMF - Neu installiert!
 
   Übersicht   Hilfe Suche Login Registrieren  
Seiten: [1]   Nach unten
  Drucken  
Autor Thema: FTP User eintragen?  (Gelesen 591 mal)
0 Mitglieder und 1 Gast betrachten dieses Thema.
GeGo
Gast
« am: 27. Dezember 2003, 19:13:36 »

Hallo

Also ich möchte einen user eintragen der sich nur in dem Ordner /var/www und den unterordner aufhalten darf. Wie mache ich das?

Danke
Gespeichert
Anonymous
Gast
« Antwort #1 am: 27. Dezember 2003, 21:31:23 »

Den User erstellen, in der proftpd.conf dann:

Code:

DefaultRoot /var/www


Auf diese Weise werden aber alle anderen User, die du später hinzufügst, auch in dieses Verzeichnis geleitet. Das ist vielleicht nicht beabsichtigt.
Gespeichert
Anonymous
Gast
« Antwort #2 am: 09. Januar 2004, 13:40:04 »

Dann schreibst einfach den Usernamen dahinter....

DefaultRoot /var/www hansi
DefaultRoot ~

hansi landet dann im www..... alle anderen in ihren home Verzeichnissen.
Gespeichert
Anonymous
Gast
« Antwort #3 am: 22. Januar 2004, 15:40:21 »

Zitat von: "Anonymous"
Den User erstellen, in der proftpd.conf dann:

Code:

DefaultRoot /var/www


Auf diese Weise werden aber alle anderen User, die du später hinzufügst, auch in dieses Verzeichnis geleitet. Das ist vielleicht nicht beabsichtigt.



sorry habe da auch ein problem wie komme ich in die Proftpd.conf rein Huch
nutze webmin und da finde ich ihm nicht, oder muss ich das irgen dwie über shell machen Huch

bin ganz neu mein erster server keine ahnung was ich machen muss.

mfg wolfkill
Gespeichert
Wolfkill
ProFTPD
*
Offline Offline

Beiträge: 5


Profil anzeigen
« Antwort #4 am: 22. Januar 2004, 15:52:32 »

server01:~# defaultroot /var/www/???
bash: defaultroot: command not found

das bekomme ich als fehlermeldung
Gespeichert
stonki
Administrator
ProFTPD
*****
Offline Offline

Beiträge: 1853


15318939
Profil anzeigen WWW E-Mail
« Antwort #5 am: 22. Januar 2004, 17:10:28 »

Zitat von: "Wolfkill"
server01:~# defaultroot /var/www/???
bash: defaultroot: command not found

das bekomme ich als fehlermeldung


IN DIE PROFTPD.CONF !
Gespeichert

www.stonki.de:    the more I see, the more I know.......
www.proftpd.de:   Deutsche ProFTPD Dokumentation
www.krename.net:  Der Batch Renamer für KDE
www.kbarcode.net: Die Barcode Solution für KDE
Wolfkill
ProFTPD
*
Offline Offline

Beiträge: 5


Profil anzeigen
« Antwort #6 am: 22. Januar 2004, 22:34:35 »

danke jetzt weiss ich es auch nur nägstes mal bitte sagt mir wie ich was in die confic schreiben kann,denke das wird einigen so gehen die sich nicht auskennen.
Gespeichert
stonki
Administrator
ProFTPD
*****
Offline Offline

Beiträge: 1853


15318939
Profil anzeigen WWW E-Mail
« Antwort #7 am: 23. Januar 2004, 09:39:14 »

Zitat von: "Wolfkill"
danke jetzt weiss ich es auch nur nägstes mal bitte sagt mir wie ich was in die confic schreiben kann,denke das wird einigen so gehen die sich nicht auskennen.


http://www.linuxbu.ch/pdf4/online.htm
http://www.oreilly.de/german/freebooks/rlinux3ger/linux_wegIVZ.html

Und nehme es mir nicht übel: Aber Linux (alle Unix Systeme) sind deutlich komplexer als jedes Windows System und auch deutlich schwieriger für einen Anfänger zu administrieren (das dreht sich dann später mal). Hier kümmern wir uns um ProFTPD, wenn jemand nicht weiss, wie man Dateien editieren kann (z.B. mit vi, joe, mc) dann hilft es Dir wenig wenn ich Dir das sage, da Du nach 5min wieder etwas nicht weisst. Da musst Du schon Zeit investieren. Ich empfehle dir ausserdem mal den "Kopfler" zu kaufen, ein wirklich gutes Linux Standardwerk. Ausserdem melde Dich in der User Mailingliste Deiner Distributionen an. Wenn Du Linux Profi werden willst, trenne Dich für 4 Monate auch von Deiner Freundin :)

cu
stonki
Gespeichert

www.stonki.de:    the more I see, the more I know.......
www.proftpd.de:   Deutsche ProFTPD Dokumentation
www.krename.net:  Der Batch Renamer für KDE
www.kbarcode.net: Die Barcode Solution für KDE
Wörsty
Moderator
ProFTPD
*****
Offline Offline

Beiträge: 1602


50772603
Profil anzeigen WWW E-Mail
« Antwort #8 am: 23. Januar 2004, 10:19:26 »

vi /etc/proftpd.conf (oder wo die ist...)
Zur Zeile gehen, wo du hin willst (Pfeil hoch und runter)
i für insert
defaultroot /var/www/ hansi <Enter>
defaultroot ~ <Enter>
<Esc> drücken dann :wq
Fertig.
Zeile löschen mit <Esc> drücken dann dd
Dann wieder i für insert ...
Gespeichert

RedHat 8.0 (2.4er Kernel)
proftpd 1.2.10
-mod_sql_mysql
-mow_wrap
-mod_exec
-mod_ifsession[/size]
Wolfkill
ProFTPD
*
Offline Offline

Beiträge: 5


Profil anzeigen
« Antwort #9 am: 23. Januar 2004, 22:33:39 »

Zitat von: "Wörsty"
vi /etc/proftpd.conf (oder wo die ist...)
Zur Zeile gehen, wo du hin willst (Pfeil hoch und runter)
i für insert
defaultroot /var/www/ hansi <Enter>
defaultroot ~ <Enter>
<Esc> drücken dann :wq
Fertig.
Zeile löschen mit <Esc> drücken dann dd
Dann wieder i für insert ...


danke für deine hilfe aber irgend wie will er das nicht machen ka warum.

habe das als standardtso drin stehen wogenau muss es rein wenn ich das rein schreib wie du es mir sagt geht der ftpservernicht mehr?Huch


Zitat
ServerType         standalone
DeferWelcome         off

ShowSymlinks on
MultilineRFC2228      on
DefaultServer         on
AllowOverwrite         on

TimeoutNoTransfer      600
TimeoutStalled         600
TimeoutIdle         1200

DisplayLogin                    welcome.msg
DisplayFirstChdir .message
LsDefaultOptions "-l"

DenyFilter         \*.*/
DefaultRoot ~
RequireValidShell      off
AllowForeignAddress      on

# Uncomment this if you are using NIS or LDAP to retrieve passwords:
#PersistentPasswd      off

# Port 21 is the standard FTP port.
Port            21

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances         30

# Set the user and group that the server normally runs at.
User            nobody
Group            nogroup

# Normally, we want files to be overwriteable.
<Directory /*>
  # Umask 022 is a good standard umask to prevent new files and dirs
  # (second parm) from being group and world writable.
  Umask            022  022

  AllowOverwrite      on
</Directory>

# A basic anonymous configuration, no upload directories.

## <Anonymous ~ftp>
##   User            ftp
##   Group            nogroup
##   # We want clients to be able to login with "anonymous" as well as "ftp"
##   UserAlias         anonymous ftp
##
##   RequireValidShell      off
##
##   # Limit the maximum number of anonymous logins
##   MaxClients         10
##
##   # We want 'welcome.msg' displayed at login, and '.message' displayed
##   # in each newly chdired directory.
##   DisplayLogin         welcome.msg
##   DisplayFirstChdir      .message
##
##   # Limit WRITE everywhere in the anonymous chroot
##   <Directory *>
##     <Limit WRITE>
##       DenyAll
##     </Limit>
##   </Directory>
##
##   # Uncomment this if you're brave.
##   # <Directory incoming>
##   #   # Umask 022 is a good standard umask to prevent new files and dirs
##   #   # (second parm) from being group and world writable.
##   #   Umask            022  022
##   #            <Limit READ WRITE>
##   #            DenyAll
##   #            </Limit>
##   #            <Limit STOR>
##   #            AllowAll
##   #            </Limit>
##   # </Directory>
##
## </Anonymous>


kann es sein das ich echt zudumm dazubin?Huch? und ich will jetzt nicht extra nur für denn ftpserver linux lernen!!!!!! irgend wann muss ich es e.

mfg wolfkill
Gespeichert
Wörsty
Moderator
ProFTPD
*****
Offline Offline

Beiträge: 1602


50772603
Profil anzeigen WWW E-Mail
« Antwort #10 am: 26. Januar 2004, 18:51:54 »

Zitat von: "Wolfkill"
Zitat von: "Wörsty"
vi /etc/proftpd.conf (oder wo die ist...)
Zur Zeile gehen, wo du hin willst (Pfeil hoch und runter)
i für insert
defaultroot /var/www/ hansi <Enter>
defaultroot ~ <Enter>
<Esc> drücken dann :wq
Fertig.
Zeile löschen mit <Esc> drücken dann dd
Dann wieder i für insert ...


danke für deine hilfe aber irgend wie will er das nicht machen ka warum.

habe das als standardtso drin stehen wogenau muss es rein wenn ich das rein schreib wie du es mir sagt geht der ftpservernicht mehr?Huch


Zitat
ServerType         standalone
DeferWelcome         off

ShowSymlinks on
MultilineRFC2228      on
DefaultServer         on
AllowOverwrite         on

TimeoutNoTransfer      600
TimeoutStalled         600
TimeoutIdle         1200

DisplayLogin                    welcome.msg
DisplayFirstChdir .message
LsDefaultOptions "-l"

DenyFilter         \*.*/
defaultroot /var/www/ hansi
DefaultRoot ~
RequireValidShell      off
AllowForeignAddress      on

# Uncomment this if you are using NIS or LDAP to retrieve passwords:
#PersistentPasswd      off

# Port 21 is the standard FTP port.
Port            21

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances         30

# Set the user and group that the server normally runs at.
User            nobody
Group            nogroup

# Normally, we want files to be overwriteable.
<Directory /*>
  # Umask 022 is a good standard umask to prevent new files and dirs
  # (second parm) from being group and world writable.
  Umask            022  022

  AllowOverwrite      on
</Directory>

# A basic anonymous configuration, no upload directories.

## <Anonymous ~ftp>
##   User            ftp
##   Group            nogroup
##   # We want clients to be able to login with "anonymous" as well as "ftp"
##   UserAlias         anonymous ftp
##
##   RequireValidShell      off
##
##   # Limit the maximum number of anonymous logins
##   MaxClients         10
##
##   # We want 'welcome.msg' displayed at login, and '.message' displayed
##   # in each newly chdired directory.
##   DisplayLogin         welcome.msg
##   DisplayFirstChdir      .message
##
##   # Limit WRITE everywhere in the anonymous chroot
##   <Directory *>
##     <Limit WRITE>
##       DenyAll
##     </Limit>
##   </Directory>
##
##   # Uncomment this if you're brave.
##   # <Directory incoming>
##   #   # Umask 022 is a good standard umask to prevent new files and dirs
##   #   # (second parm) from being group and world writable.
##   #   Umask            022  022
##   #            <Limit READ WRITE>
##   #            DenyAll
##   #            </Limit>
##   #            <Limit STOR>
##   #            AllowAll
##   #            </Limit>
##   # </Directory>
##
## </Anonymous>


kann es sein das ich echt zudumm dazubin?Huch? und ich will jetzt nicht extra nur für denn ftpserver linux lernen!!!!!! irgend wann muss ich es e.

mfg wolfkill

 :?!  :debug:
Gespeichert

RedHat 8.0 (2.4er Kernel)
proftpd 1.2.10
-mod_sql_mysql
-mow_wrap
-mod_exec
-mod_ifsession[/size]
Seiten: [1]   Nach oben
  Drucken  
 
Gehe zu:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Prüfe XHTML 1.0 Prüfe CSS
Seite erstellt in 0.078 Sekunden mit 19 Zugriffen.