Powered by Invision Power Board



  Reply to this topicStart new topicStart Poll

> server FTP, cum se face?
vektor12
Posted: Sep 24 2004, 05:02 PM
Quote Post


Advanced Member
***

Group: Members
Posts: 118
Member No.: 23
Joined: 20-May 04



cum se face un server FTP? ce cerinte, etc...


--------------------
love as though you have never beeen hurt before...
PMYahoo
Top
shadow
Posted: Sep 24 2004, 06:45 PM
Quote Post


Advanced Member
***

Group: Members
Posts: 67
Member No.: 80
Joined: 26-August 04



Cel mai simplu, cu Mac OS X Server, ai un ftp server preinstalat. Altfel iti trebuie un program, gen vsftpd sau lukemftpd sau wuftpd... Ma refer pentru un MacOS X normal sau Linux. Pentru linux, fiecare distributie include unul sau mai multe astfel de programe. Exista si pentru windows servere de FTP dar nu pot sa te ajut aici...

Cat despre resurse, sunt minimale. Daca vrei sa servesti multa informatie => HD mai mare; daca vrei multi clienti => memorie mai multa, procesor mai rapid, HD-uri mai rapide.
PM
Top
adim
Posted: Sep 24 2004, 06:59 PM
Quote Post


Advanced Member
***

Group: Admin
Posts: 171
Member No.: 34
Joined: 7-June 04



si cu acel program pe OS X pot seta doar un singur folder de pe partitia respectiva???!!! este nevoie si de IP real ??
PM
Top
shadow
Posted: Sep 24 2004, 09:38 PM
Quote Post


Advanced Member
***

Group: Members
Posts: 67
Member No.: 80
Joined: 26-August 04



Daca folosesti numai ftp anonymous (adica fara parola, public, cum e pe serverele de pe care facem download in mod obisnuit) atunci un singur folder. User-ii care intra cu parola o sa vada tot sistemul in mod normal. Dar poti sa faci symlink-uri (sau chiar hard link-uri daca folderele sunt pe aceeasi partitie).

In general ai nevoie de IP public daca trebuie sa fii vizibil din internet. Daca ai IP privat, poti sa faci port forwarding de pe router la calculatorul tau, si cei din afara se conecteaza la router care trimite conexiunea la tine. Pentru calculatoare din reteaua locala nu conteaza ce fel de IP ai, atata timp cat stii care e wink.gif

sper sa-ti foloseasca,
sh
PM
Top
vektor12
Posted: Oct 14 2004, 09:27 PM
Quote Post


Advanced Member
***

Group: Members
Posts: 118
Member No.: 23
Joined: 20-May 04



http://www.creativemac.com/2002/09_sep/tut...posx0209243.htm

am fost aici, dra de la pagina 3 nu mai merge... mai precis nu ma lasa sa ma conectez la ip-ul meu sad.gif


--------------------
love as though you have never beeen hurt before...
PMYahoo
Top
shadow
Posted: Oct 15 2004, 06:27 AM
Quote Post


Advanced Member
***

Group: Members
Posts: 67
Member No.: 80
Joined: 26-August 04



Pagina 3 este pentru configurat un router astfel incat serverul ftp sa fie accesibil din internet. Partea asta nu mai tine propriu-zis de mac, ci depinde de router-ul respectiv.

Ai reusit sa te legi de la calculatorul tau la propriul ip? adica, dintr-un Terminal, "ftp 192.168.0.3" (inlocuieste 192.168.0.3 cu ip-ul tau sau cu numele calculatorului)? sau "ftp localhost"?
PM
Top
vektor12
Posted: Oct 15 2004, 11:11 AM
Quote Post


Advanced Member
***

Group: Members
Posts: 118
Member No.: 23
Joined: 20-May 04



pai acolo zicea sa te conectezi la serverul tau... deci eu, ca un baiat bun si ascultator ce sunt, deschid Safari, copy-paste dupa IP-ul router-ului, care e acelasi cu IP-ul meu, si imi zice ca nu se poate conecta...

p.s. eu nici nu stiu ce e aia router, nu cred sa am asa ceva... sunt picat din luna, stiu, dar...


--------------------
love as though you have never beeen hurt before...
PMYahoo
Top
shadow
Posted: Oct 15 2004, 04:23 PM
Quote Post


Advanced Member
***

Group: Members
Posts: 67
Member No.: 80
Joined: 26-August 04



Ok, voi presupune ca esti abonat la astral/rds, ai un fir TV care intra in modem, si din modem e un fir UTP pana la calculator. Asta inseamna ca ai un IP public (NU este de genul 192.168.xxx.xxx sau 10.xxx.xxx.xxx) si atunci nu ai nevoie de router si de ce zice in pagina a treia a tutorialului. Daca treaba nu sta asa, zi-mi exact cum e.

Te-as ruga sa incerci sa te legi la server si din Terminal (deschizi Terminal din /Applications/Utilities si scrii "ftp <server>" unde <server> e ip-ul tau). Incearca si la ip-ul 127.0.0.1 (un ip special care inseamna "calculatorul acesta"). Daca asta nu merge, ruleaza, tot in Terminal, comenzile "ps wxa" si "netstat -a" si spune-mi ce zice.

Mult succes,
sh
PM
Top
vektor12
Posted: Oct 15 2004, 05:33 PM
Quote Post


Advanced Member
***

Group: Members
Posts: 118
Member No.: 23
Joined: 20-May 04



1. e cablu de retea, pe aici ii zice ethernet... UTP imi pare ceva rotund, si nu e asa...

2. cand ajung acasa, incerc tot si iti dau mai multe date, vedem ce iese....

multumesc


--------------------
love as though you have never beeen hurt before...
PMYahoo
Top
vektor12
Posted: Oct 15 2004, 07:06 PM
Quote Post


Advanced Member
***

Group: Members
Posts: 118
Member No.: 23
Joined: 20-May 04



greseala... ip-ul router-ului e un pic diferit de ip-ul calculatorului... si tot nu ma lasa sa ma conmectez prin safari, incerc cu terminal


--------------------
love as though you have never beeen hurt before...
PMYahoo
Top
vektor12
Posted: Oct 15 2004, 07:14 PM
Quote Post


Advanced Member
***

Group: Members
Posts: 118
Member No.: 23
Joined: 20-May 04



ip: este poza...

uite ce zice la ftp:

CODE
Last login: Fri Oct 15 19:50:30 on console
Welcome to Darwin!
menilmontant-10-82-229-235-166:~ danmiculescu$
menilmontant-10-82-229-235-166:~ danmiculescu$ ftp <82.29.235.254>
-bash: syntax error near unexpected token `newline'
menilmontant-10-82-229-235-166:~ danmiculescu$ ftp <82.229.235.166>
-bash: syntax error near unexpected token `newline'
menilmontant-10-82-229-235-166:~ danmiculescu$ ftp <82.229.235.166>
-bash: syntax error near unexpected token `newline'
menilmontant-10-82-229-235-166:~ danmiculescu$ ftp <127.0.0.1>
-bash: syntax error near unexpected token `newline'
menilmontant-10-82-229-235-166:~ danmiculescu$


uite ce zice la ps wxa:

CODE
 PID  TT  STAT      TIME COMMAND
   1  ??  Ss     0:00.00 /sbin/init
   2  ??  Ss     0:00.17 /sbin/mach_init
  79  ??  Ss     0:00.06 /usr/sbin/syslogd -s -m 0
  85  ??  Ss     0:02.50 kextd
  87  ??  Ss     0:01.65 /usr/sbin/configd
  88  ??  Ss     0:00.23 /usr/sbin/diskarbitrationd
  93  ??  Ss     0:00.09 /usr/sbin/notifyd
 118  ??  Ss     0:00.16 netinfod -s local
 120  ??  Ss     0:00.46 update
 123  ??  Ss     0:00.00 dynamic_pager -F /private/var/vm/swapfile
 144  ??  Ss     0:00.77 /System/Library/CoreServices/coreservicesd
 146  ??  Ss     0:00.12 /usr/sbin/distnoted
 153  ??  Ss     0:00.02 /usr/sbin/KernelEventAgent
 159  ??  Ss     0:00.01 cron
 171  ??  Ss     0:00.13 /System/Library/CoreServices/SecurityServer -X
 173  ??  Ss     0:00.08 /usr/sbin/mDNSResponder
 174  ??  Ss     0:34.74 /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Resources/Wind
 175  ??  S      0:00.68 /usr/sbin/blued
 176  ??  Ss     0:01.34 /System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Support/ATSServer
 177  ??  S      0:00.02 /usr/libexec/ioupsd
 190  ??  Ss     0:00.96 /System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow console
 194  ??  Ss     0:00.45 /usr/sbin/DirectoryService
 203  ??  Ss     0:00.37 /usr/sbin/lookupd
 207  ??  S      0:00.01 /Library/StartupItems/ADSLAutoConfig/ADSLAutoConfig start
 242  ??  Ss     0:00.00 /usr/libexec/crashreporterd
 264  ??  Ss     0:00.00 nfsiod -n 4
 273  ??  Ss     0:00.01 rpc.lockd -w
 276  ??  Ss     0:00.19 /usr/sbin/automount -f -m /Network -nsl
 279  ??  Ss     0:00.02 ntpd -f /var/run/ntp.drift -p /var/run/ntpd.pid
 288  ??  Ss     0:00.01 /usr/sbin/automount -f -m /automount/Servers -fstab -mnt /private/Network/Servers -m /automount/static -s
 289  ??  Ss     0:00.13 /usr/sbin/cupsd
 309  ??  Ss     0:00.00 /usr/sbin/postfix-watch
 330  ??  Ss     0:00.40 /System/Library/CoreServices/pbs
 333  ??  S      0:01.20 /System/Library/CoreServices/Dock.app/Contents/MacOS/Dock -psn_0_393217
 337  ??  S      0:03.68 /System/Library/CoreServices/SystemUIServer.app/Contents/MacOS/SystemUIServer -psn_0_524289
 338  ??  S      0:04.29 /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder -psn_0_655361
 342  ??  S      0:00.17 /Applications/iCal.app/Contents/Resources/iCalAlarmScheduler.app/Contents/MacOS/iCalAlarmScheduler -psn_0
 363  ??  S      1:00.99 /Applications/Safari.app/Contents/MacOS/Safari -psn_0_1179649
 376  ??  S      0:21.97 /Volumes/MSN Messenger 4/MSN Messenger.app/Contents/MacOS/MSN Messenger -psn_0_1310721
 377  ??  S      0:03.18 /Volumes/MSN Messenger 4/MSN Messenger.app/Contents/SharedSupport/MSN Messenger Daemon.app/Contents/MacOS
 378  ??  S      0:08.58 /Applications/Yahoo! Messenger /Applications/Yahoo! Messenger -psn_0_1572865
 381  ??  S      0:04.75 /Applications/System Preferences.app/Contents/MacOS/System Preferences -psn_0_1703937
 407  ??  Ss     0:00.09 /System/Library/PrivateFrameworks/Admin.framework/Resources/writeconfig
 408  ??  Ss     0:00.04 /System/Library/PrivateFrameworks/NetworkConfig.framework/Resources/NetCfgTool
 488  ??  Ss     0:00.02 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid
 523  ??  S      0:00.64 /Volumes/MSN Messenger 4/MSN Messenger.app/Contents/SharedSupport/Alerts Daemon.app/Contents/MacOS/Alerts
 524  ??  S      0:03.33 /Applications/Utilities/Grab.app/Contents/MacOS/Grab -psn_0_2228225
 527  ??  S      0:03.76 /Applications/Utilities/Terminal.app/Contents/MacOS/Terminal -psn_0_2359297
 528  p1  Ss     0:00.02 login -pf danmiculescu
 529  p1  S+     0:00.05 -bash
 532 std  Rs+    0:00.01 ps wxa
[Process completed]


uite ce zice la netstat -a:

CODE
Active Internet connections (including servers)
Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)
tcp46      0      0  *.ftp                  *.*                    LISTEN
tcp4       0      0  menilmontant-10-.49153 cs47.msg.dcn.yah.mmcc  ESTABLISHED
tcp4       0      0  menilmontant-10-.49222 baym-cs114.msgr..msnp  ESTABLISHED
tcp4       0      0  *.*                    *.*                    CLOSED
tcp4       0      0  *.*                    *.*                    CLOSED
tcp4       0      0  localhost.ipp          *.*                    LISTEN
tcp4       0      0  localhost.netinfo-loca localhost.998          ESTABLISHED
tcp4       0      0  localhost.998          localhost.netinfo-loca ESTABLISHED
tcp4       0      0  localhost.netinfo-loca *.*                    LISTEN
udp4       0      0  *.*                    *.*                    
udp4       0      0  *.*                    *.*                    
udp4       0      0  *.ipp                  *.*                    
udp4       0      0  localhost.49157        localhost.1022        
udp4       0      0  localhost.49156        localhost.1022        
udp4       0      0  menilmontant-10-.ntp   *.*                    
udp4       0      0  localhost.ntp          *.*                    
udp4       0      0  *.ntp                  *.*                    
udp4       0      0  localhost.1022         *.*                    
udp4       0      0  localhost.49154        localhost.1023        
udp4       0      0  localhost.1023         *.*                    
udp4       0      0  *.mdns                 *.*                    
udp4       0      0  *.bootpc               *.*                    
udp4       0      0  localhost.netinfo-loca *.*                    
udp4       0      0  *.syslog               *.*                    
udp6       0      0  *.514                  *.*                    
icm6       0      0  *.*                    *.*                    
icm6       0      0  *.*                    *.*                    
Active LOCAL (UNIX) domain sockets
Address  Type   Recv-Q Send-Q    Inode     Conn     Refs  Nextref Addr
1437690 stream      0      0        0  14376c8        0        0
14376c8 stream      0      0        0  1437690        0        0
1437738 stream      0      0        0  14377e0        0        0
14377e0 stream      0      0        0  1437738        0        0
1437770 stream      0      0        0        0        0        0
14377a8 stream      0      0        0        0        0        0
1437818 stream      0      0        0  14378c0        0        0 /var/tmp/SCDynamicStoreNotifyFileDescriptor-20739
14378c0 stream      0      0        0  1437818        0        0
1437a10 stream      0      0        0  1437a48        0        0
1437a48 stream      0      0        0  1437a10        0        0
1437f18 stream      0      0        0  1437850        0        0
1437850 stream      0      0        0  1437f18        0        0
1437af0 stream      0      0        0  1437930        0        0
1437930 stream      0      0        0  1437af0        0        0
1437a80 stream      0      0        0  1437b28        0        0
1437b28 stream      0      0        0  1437a80        0        0
14378f8 stream      0      0        0  1437888        0        0
1437888 stream      0      0        0  14378f8        0        0
1437968 stream      0      0        0  14379a0        0        0
14379a0 stream      0      0        0  1437968        0        0
1437c40 stream      0      0  16e4908        0        0        0 /var/run/pppconfd
1437d90 stream      0      0  166e0a8        0        0        0 /var/run/mDNSResponder
1437700 dgram       0      0        0  1437fc0        0  1437b60
1437b60 dgram       0      0        0  1437fc0        0  1437ab8
1437ab8 dgram       0      0        0  1437fc0        0  14379d8
14379d8 dgram       0      0        0  1437fc0        0  1437b98
1437b98 dgram       0      0        0  1437fc0        0  1437d58
1437d58 dgram       0      0        0  1437fc0        0  1437bd0
1437bd0 dgram       0      0        0  1437fc0        0  1437dc8
1437dc8 dgram       0      0        0  1437fc0        0  1437ce8
1437ce8 dgram       0      0        0  1437fc0        0  1437c08
1437c08 dgram       0      0        0  1437fc0        0  1437e00
1437c78 dgram       0      0        0  1437d20  1437d20        0
1437d20 dgram       0      0        0  1437c78  1437c78        0
1437ea8 dgram       0      0        0  1437ee0  1437ee0        0
1437ee0 dgram       0      0        0  1437ea8  1437ea8        0
1437e00 dgram       0      0        0  1437fc0        0  1437cb0
1437cb0 dgram       0      0        0  1437fc0        0  1437f88
1437f88 dgram       0      0        0  1437fc0        0  1437e38
1437e38 dgram       0      0        0  1437fc0        0  1437e70
1437e70 dgram       0      0        0  1437fc0        0  1437f50
1437f50 dgram       0      0        0  1437fc0        0        0
1437fc0 dgram       0      0  14521d0        0  1437700        0 /var/run/syslog
[Process completed]


mentionez ca ultimele doua comenzi le-am executat din Terminal --> File --> Run Command

multumesc

Attached File ( Number of downloads: 4 )
Attached File  ip.tiff


--------------------
love as though you have never beeen hurt before...
PMYahoo
Top
shadow
Posted: Oct 15 2004, 08:06 PM
Quote Post


Advanced Member
***

Group: Members
Posts: 67
Member No.: 80
Joined: 26-August 04



ok, din ce am inteles, ai ip public, asta e bine.

QUOTE
Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)
tcp46      0      0  *.ftp                  *.*                    LISTEN
server-ul ftp asteapta conexiuni ftp asa cum trebuie

QUOTE
menilmontant-10-82-229-235-166:~ danmiculescu$ ftp <82.229.235.166>
incearca fara paranteze unghiulare:
CODE
menilmontant-10-82-229-235-166:~ danmiculescu$ ftp 82.229.235.166
menilmontant-10-82-229-235-166:~ danmiculescu$ ftp 127.0.0.1
PM
Top
vektor12
Posted: Oct 15 2004, 09:02 PM
Quote Post


Advanced Member
***

Group: Members
Posts: 118
Member No.: 23
Joined: 20-May 04



se pare ca merge... ce fac in continuare?

CODE
Last login: Fri Oct 15 21:57:45 on console
Welcome to Darwin!
menilmontant-10-82-229-235-166:~ danmiculescu$ ftp 82.229.235.166
Connected to menilmontant-10-82-229-235-166.fbx.proxad.net.
220 menilmontant-10-82-229-235-166.fbx.proxad.net FTP server (tnftpd 20040810) ready.
Name (82.229.235.166:danmiculescu): ftp 127.0.0.1
331 Password required for ftp 127.0.0.1.
Password:
530 Login incorrect.
ftp: Login failed.
ftp> 127.0.0.1
?Invalid command.
ftp>


--------------------
love as though you have never beeen hurt before...
PMYahoo
Top
shadow
Posted: Oct 15 2004, 09:29 PM
Quote Post


Advanced Member
***

Group: Members
Posts: 67
Member No.: 80
Joined: 26-August 04



felicitari, server-ul ftp functioneaza smile.gif

QUOTE
Name (82.229.235.166:danmiculescu):
scuza-ma daca nu am fost clar, a doua comanda nu trebuia sa o dai dupa prima, neconditionat smile.gif aici clientul de ftp s-a legat si iti cere username-ul. poti sa folosesti username-ul si parola din macos, ar trebui sa mearga.

daca scrii in safari "ftp://82.229.235.166" (fara ghilimele happy.gif ) ar trebui sa-ti ceara si el user si parola, si se leaga si e.

daca vrei sa publici fisiere, sa le ia oricine, trebuie sa dai acces "anonymous". asta e alta poveste, si e putin mai complicat.
PM
Top
vektor12
Posted: Oct 15 2004, 09:32 PM
Quote Post


Advanced Member
***

Group: Members
Posts: 118
Member No.: 23
Joined: 20-May 04



si cum pot sa o fac??? ca asa, sa am server, nu fac nimic...

si care sunt user-name-ul si parola? user-ul este ceva de genul x's computer?


--------------------
love as though you have never beeen hurt before...
PMYahoo
Top
shadow
Posted: Oct 15 2004, 09:43 PM
Quote Post


Advanced Member
***

Group: Members
Posts: 67
Member No.: 80
Joined: 26-August 04



username-ul si parola care le folosesti cand pornesti calculatorul.

user-ul este "danmiculescu', parola pate sa fie si "" (nimic, doar enter).

cat despre server anonymous, ma uit acum prin documentatie. in linux e simplu, majoritatea distributiilor vin gata configurate. aici trebuie sa faci niste lucruri manual.

[EDIT]am gasit ceva pe google, dar e cam tehnic. cred ca o sa inaugurez sectiunea de howto de pe site, probabil maine dimineata. stay tuned wink.gif[/EDIT]
PM
Top
vektor12
Posted: Oct 15 2004, 09:48 PM
Quote Post


Advanced Member
***

Group: Members
Posts: 118
Member No.: 23
Joined: 20-May 04



merge.... laugh.gif laugh.gif laugh.gif

multumesc frumos


--------------------
love as though you have never beeen hurt before...
PMYahoo
Top
shadow
Posted: Oct 16 2004, 07:11 PM
Quote Post


Advanced Member
***

Group: Members
Posts: 67
Member No.: 80
Joined: 26-August 04



Am pus pe versiunea mea de site (http://82.208.182.80/~alexm/mug) un howto pentru ftp anonim. Este in sectiunea "howto". E scris cat de cat in graba, dar ar trebui sa fie complet. Astept pareri despre howto si despre site.
PM
Top

Topic Options Reply to this topic Fast ReplyStart new topicStart Poll