13. juli 2002 - 16:32Der er
17 kommentarer og 1 løsning
Uid og Gid med proftpd
hejsa all jeg har et mindre problem med min proftpd server. jeg kører den sammen med Mysql, meeen alle domæner's mapper bliver sat til at ejes af proftpd meen i min mysql har jeg dog en kolinne til både Uid og Gid, jeg ville så gerne have sat dem på i stedet for at det er samme bruger alle sammen, da det jo er lidt usikkert. Kan nogen hjælpe med det ??? min proftpd.conf ser således ud
ServerName "FTP on bacce.dk" ServerType standalone DefaultServer on DefaultRoot ~ # 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 tcpNoDelay on UseReverseDNS off # ServerIdent off
# 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 proftpd Group proftpd sqlconnectinfo ftp_login:localhost:3306 root hemmeligt SQLUserTable ftp_users SQLUsernameField handle SQLUidField uid SQLGidField gid SQLPasswordField password SQLHomedirField homedir SQLLoginCountField count SQLAuthoritative on sqlauthtypes plaintext
SQLLogStats on #SQLLogHits ftplog SQLLogDirs fcdir SQLLogHosts fhost faddr ftime
RequireValidShell off
# Normally, we want files to be overwriteable. <Directory /*> AllowOverwrite on </Directory>
I lang tid har samarbejdsbranchen fokuseret på at forbedre enhedsfunktioner – bedre kameraer, klarere lyd og smartere software. Men den virkelige forvandling handler ikke om funktioner.
hmm hvad betydder lige netop det du der har skrevet ??? skulle det ikke bare betyde at Gid og Uid = 80 ??? fordi det som nu undrer mig er at jeg gjorde som du skrev og derefter skrev "killall proftpd" efterfulgt af "/usr/local/sbin/proftpd" og nu hedder mit UID OG GID 9999 som jeg p.t satte den i SQL hvilket jeg ikke rigtig forstår ??
hmmm det bliver mystikkere og mystikkere for min proftpd.conf ser således ud nu
ServerName "FTP on bacce.dk" ServerType standalone DefaultServer on DefaultRoot ~ # 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 tcpNoDelay on UseReverseDNS off # ServerIdent off
# 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 proftpd Group proftpd sqlconnectinfo ftp_login:localhost:3306 root hemmeligt SQLUserTable ftp_users SQLUsernameField handle SQLMinID 80 SQLDefaultUID 80 SQLDefaultGID 80 SQLPasswordField password SQLHomedirField homedir SQLLoginCountField count SQLAuthoritative on sqlauthtypes plaintext
SQLLogStats on #SQLLogHits ftplog SQLLogDirs fcdir SQLLogHosts fhost faddr ftime
RequireValidShell off
# Normally, we want files to be overwriteable. <Directory /*> AllowOverwrite on </Directory> d.v.s at jeg har fjernet SQLUidField uid SQLGidField gid meen skifter jeg sp GID og UID i databasen får filerne nu altså det nye nummer ???
nå men ud over det vil du så venligst svare for så likker jeg dette spm.
# This is a basic ProFTPD configuration file (rename it to # 'proftpd.conf' for actual use. It establishes a single server # and a single anonymous login. It assumes that you have a user/group # "nobody" and "ftp" for normal operation and anon.
ServerName "MegaPixel Upload" ServerType standalone #ServerType inetd DefaultServer on
IdentLookups off
# 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.
# 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 200
# Set the user and group that the server normally runs at. User nobody Group nobody Umask 000
PathAllowFilter ^.*\.[jJ][pP]([eE])?[gG]$
AccessGrantMsg "MegaPixel er klar til dine billeder" AccessDenyMsg "Ingen adgang med disse brugeroplysninger"
UseReverseDNS off
Quotas on #DefaultQuota 41943040 DefaultQuota 100 QuotaBlockSize 1048576 QuotaBlockName mb QuotaCalc on QuotaType soft
ServerIdent on "Velkommen til MegaPixel"
MaxClients 10 "Ikke plads til flere end 10 via ftp" MaxClientsPerHost 2 "Kun to forbindelser pr bruger, tak" MaxLoginAttempts 5
må jeg have lov at spørge om hvad disse er til ??? Quotas on #DefaultQuota 41943040 DefaultQuota 100 QuotaBlockSize 1048576 QuotaBlockName mb QuotaCalc on QuotaType soft for hvis de er hvad jeg tror ville jeg meget gerne have dem uddybet til ????
ohh okey så var det da næsten det jeg søgte :-(( det jeg står og mangler er at kunne begrænse filernes størelser så de fek.s MAX kunne fylde fek.s 50 kb
hmm sorry meeen tror det der har vildt mig flere problemer end jeg havede før :-(( nu går den kold ved downloads efter at have downloadet enkelte filer :-(((
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.