Fórum Ubuntu CZ/SK

Ostatní => Ubuntu Server => Téma založeno: miso250593 17 Dubna 2009, 18:36:56

Název: Help s debianom a ftp
Přispěvatel: miso250593 17 Dubna 2009, 18:36:56
Viem že toto je podpora ubuntu ale myslím že by ste mi aj vy mohli pomôcť

stiahol a nainstaloval som to takto
Kód: [Vybrat]
apt-get install proftpd
len neviem ako priradiť usera

hladal som aj na nete ale nejak som tomu nepochopil
ja by som chcel usera aj z heslom


ďakujem
Název: Re: Help s debianom a ftp
Přispěvatel: Martin - ViPEr*CZ* 17 Dubna 2009, 18:59:25
Viem že toto je podpora ubuntu ale myslím že by ste mi aj vy mohli pomôcť

stiahol a nainstaloval som to takto
Kód: [Vybrat]
apt-get install proftpd
len neviem ako priradiť usera

hladal som aj na nete ale nejak som tomu nepochopil
ja by som chcel usera aj z heslom


ďakujem

No to je naprosto jednoduchý... navíc na toto téma toho na netu je. Default nastavení je uživatel v systému a jeho heslo. Pokud to chcete změnit budete muset číst.
Tady třeba nějakej rozjezd v češtině: http://www.lanax.net/view.php?cisloclanku=2007010002

A úplně nejlepší stránky projektu: http://www.proftpd.org/docs/example-conf.html
Název: Re: Help s debianom a ftp
Přispěvatel: miso250593 17 Dubna 2009, 19:20:03
ja som už asi úplný *censored* ale prihlasujem sa pod root uctom a ked to dam do ftp nejde

a neviem ako to mam nakonfigurovat
 ???
Název: Re: Help s debianom a ftp
Přispěvatel: Martin - ViPEr*CZ* 17 Dubna 2009, 23:20:17
Vždyt jsem Vám poslal stránku, kde jsou i ukázky konfigurací.
Co to máte za FTP? No pochybuju, že Vám to jen tak někdo udělá ... když se toho na netu válí plno. Já třeba používám proftp s mysql autentizací.
Název: Re: Help s debianom a ftp
Přispěvatel: miso250593 18 Dubna 2009, 08:55:59
no nejak mi to už beží len to ide strašne pomaly

proftpd.conf
Kód: [Vybrat]
##
## Config with simple mysql authentication support
ServerName                      "MY Server"
ServerType                      Standalone
ServerAdmin                     ja@neco.sk

# Hide as much as possible to outside users
ServerIdent                     on "Welcome. Please login..."
DeferWelcome                  on

DefaultServer                   on

# Allow FTP resuming.
# Remember to set to off if you have an incoming ftp for upload.
AllowStoreRestart               on

# Port 21 is the standard FTP port.
Port                            21

# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask                           022

# 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 under which the server will run.
User                            nobody
Group                           nogroup

# Normally, we want files to be overwriteable.

  AllowOverwrite                on

####
LoadModule mod_sql.c
LoadModule mod_sql_mysql.c
####

# The passwords in MySQL are encrypted using CRYPT
SQLAuthTypes            Plaintext Crypt
SQLAuthenticate         users* groups*


# used to connect to the database
# databasename@host database_user user_password
SQLConnectInfo  ftp@localhost ftp pass


# Here we tell ProFTPd the names of the database columns in the "usertable"
# we want it to interact with. Match the names with those in the db
SQLUserInfo     ftpuser userid passwd uid gid homedir shell

# Here we tell ProFTPd the names of the database columns in the "grouptable"
# we want it to interact with. Again the names match with those in the db
SQLGroupInfo    ftpgroup groupname gid members

# set min UID and GID - otherwise these are 999 each
SQLMinID        500

# create a user's home directory on demand if it doesn't exist
SQLHomedirOnDemand on

# Update count every time user logs in
SQLLog PASS updatecount
SQLNamedQuery updatecount UPDATE "count=count+1, accessed=now() WHERE userid='%u'" ftpuser

# Update modified everytime user uploads or deletes a file
SQLLog  STOR,DELE modified
SQLNamedQuery modified UPDATE "modified=now() WHERE userid='%u'" ftpuser

RootLogin off
RequireValidShell off

a prihlasit sa prihlásim a ide mi to strašne pomaly