vsftpd me unishtava! [resheno] :)

vsftpd me unishtava! [resheno] :)

offline
  • Pridružio: 02 Apr 2005
  • Poruke: 1516
  • Gde živiš: # :(){ :|:& };:

naime,podignuh pre neki dan home web i ftp server za LAN use ali ima problem sa ftp serverom..
lokalni useri mogu slobodno da koriste up/down ali anonymous useri ne mogu upload nikako i dobijem sledeci output:
Citat:purple@genbox ~ $ ftp 192.168.12.143
Connected to 192.168.12.143 (192.168.12.143).
220 .::Welcome to purple's FTP server::.
Name (192.168.12.143:purple): anonymous
530 Please login with USER and PASS.
SSL not available
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> put test.tar.bz2
local: test.tar.bz2 remote: test.tar.bz2
200 PORT command successful. Consider using PASV.
553 Could not create file.
ftp> exit
221 Goodbye.

purple@genbox ~ $ ftp -p 192.168.12.143
Connected to 192.168.12.143 (192.168.12.143).
220 .::Welcome to purple's FTP server::.
Name (192.168.12.143:purple): anonymous
530 Please login with USER and PASS.
SSL not available
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> put test.tar.bz2
local: test.tar.bz2 remote: test.tar.bz2
227 Entering Passive Mode (192,168,12,143,129,238-)
553 Could not create file.
ftp>


ovde se nalazi trenutni vsftpd.conf:
http://rafb.net/p/pQr6sJ41.html
hvala unapred,svaki predlog je dobrodoshao Smile

pretrazio sam net bash dosta i sve shto ljudi predlazu je:
Citat:anonymous_enable=YES
write_enable=YES
anon_upload_enable=YES
anon_mkdir_write_enable=YES

medjutim,to je i bilo postavljeno i opet anonimusi ne mogu upload,help pls Smile



Registruj se da bi učestvovao u diskusiji. Registrovanim korisnicima se NE prikazuju reklame unutar poruka.
offline
  • Pridružio: 05 Jun 2003
  • Poruke: 2075
  • Gde živiš: MaYur CitY

mozda te zeza umask?



offline
  • soxxx 
  • Prijatelj foruma
  • Pridružio: 25 Maj 2005
  • Poruke: 1482
  • Gde živiš: Gracanica, Kosovo

Pogledaj dozvole za taj direktorijum za ftp korisnika. Sta ti kaze /var/log/vsftpd.log? Pogledaj i SElinux, ne koristim Linux pa neznam, ali vidim da su ljudi imali problema zbog toga.

offline
  • Pridružio: 16 Okt 2003
  • Poruke: 207
  • Gde živiš: Beograd

Koristi Pure-FTPD.Wink

offline
  • Pridružio: 02 Apr 2005
  • Poruke: 1516
  • Gde živiš: # :(){ :|:& };:

shto se tiche dozvola,mislim da je to pokriveno u ovom manualu:
Citat:Step 2) Satisfy vsftpd pre-requisites
2a) vsftpd needs the user "nobody" in the default configuration. Add this
user in case it does not already exist. e.g.:

[root@localhost root]# useradd nobody
useradd: user nobody exists

2b) vsftpd needs the (empty) directory /usr/share/empty in the default
configuration. Add this directory in case it does not already exist. e.g.:

[root@localhost root]# mkdir /usr/share/empty/
mkdir: cannot create directory `/usr/share/empty': File exists

2c) For anonymous FTP, you will need the user "ftp" to exist, and have a
valid home directory (which is NOT owned or writable by the user "ftp").
The following commands could be used to set up the user "ftp" if you do not
have one:

[root@localhost root]# mkdir /var/ftp/
[root@localhost root]# useradd -d /var/ftp ftp

(the next two are useful to run even if the user "ftp" already exists).
[root@localhost root]# chown root.root /var/ftp
[root@localhost root]# chmod og-w /var/ftp

shta reci,still same shit :\
selinux ne koristim,a log:
http://rafb.net/p/QRXh0w56.html

Dopuna: 29 Maj 2007 11:54

ok,momci,hvala na trudu,problem reshen:
genbox purple # cat vsftpd-solution
chown root:root /var/ftp
mkdir /var/ftp/upload
chown ftp:ftp /var/ftp/upload
chmod 775 /var/ftp/upload

blago izmenjen vsftpd.conf:
http://rafb.net/p/EhfShH80.html

Citat:purple@genbox ~ $ ftp 127.0.0.1
Connected to 127.0.0.1 (127.0.0.1).
220 .::Welcome to purple's FTP server@gentoo::.
Name (127.0.0.1:purple): anonymous
530 Please login with USER and PASS.
SSL not available
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd upload
250 Directory successfully changed.
ftp> put test.tar.bz2
local: test.tar.bz2 remote: test.tar.bz2
200 PORT command successful. Consider using PASV.
150 Ok to send data.
226 File receive OK.
110 bytes sent in 4.8e-05 secs (2.2e+03 Kbytes/sec)
ftp> delete test.tar.bz2
250 Delete operation successful.
ftp>


Smile ahh,zabavi nikad kraja Cool

offline
  • soxxx 
  • Prijatelj foruma
  • Pridružio: 25 Maj 2005
  • Poruke: 1482
  • Gde živiš: Gracanica, Kosovo

Na dozvole za dir sam i mislio (Upload folder), ftp korisnik nikako ne treba biti vlasnik /var/ftp. Smile
Jel ti to hoces da napravis anopnymous ftp ili ftp za lokalne korisnike?

offline
  • Pridružio: 02 Apr 2005
  • Poruke: 1516
  • Gde živiš: # :(){ :|:& };:

anonymous,za file sharing as drugarima iz mreze..
elem,dragi mi je da je sve sredjeno,sada je zrelo sve za jedan tar cvjpf / pa da dignem sve 4 u vis Smile

offline
  • soxxx 
  • Prijatelj foruma
  • Pridružio: 25 Maj 2005
  • Poruke: 1482
  • Gde živiš: Gracanica, Kosovo

Ako je anonymous ftp onda ti nisu potrebne ove opcije: local_enable=YES, local_root=/var/ftp, local_umask=077.
I pazi da ti se ne napuni /var... Very Happy

offline
  • Pridružio: 02 Apr 2005
  • Poruke: 1516
  • Gde živiš: # :(){ :|:& };:

znam ali to je sa namerom da ja kao lokalni user odrzavam stanje share-a na serveru..
Citat:I pazi da ti se ne napuni /var...Very Happy
ima josh dosta toga tamo odakle je ovo doshlo Smile
peace

Ko je trenutno na forumu
 

Ukupno su 1170 korisnika na forumu :: 66 registrovanih, 9 sakrivenih i 1095 gosta   ::   [ Administrator ] [ Supermoderator ] [ Moderator ] :: Detaljnije

Najviše korisnika na forumu ikad bilo je 3466 - dana 01 Jun 2021 17:07

Korisnici koji su trenutno na forumu:
Korisnici trenutno na forumu: amaterSRB, Apok, babaroga, Belac91, bestguarder, bokisha253, brundo65, ccoogg123, cemix, comi_pfc, Dannyboy, darionis, darkangel, djolew, djordje92sm, Dorcolac, draganl, Dukelander, Excalibur13, Faki-Valjevo, Georgius, havoc995, HrcAk47, ILGromovnik, Joja2, Još malo pa deda, jukeboxer, kokodakalo, kunktator, kybonacci, Leonov, Mad Serb, maiden6657, manda87, mane123, Marko Marković, mercedesamg, Metanoja, mikrimaus, milimoj, MiroslavD, nenad81, nextyamb, nick79, Niko Bitan, ObicanUser, pacika, Panter, raptorsi, repac, RJ, royst33, S2M, shlauf, solic, Srky Boy, Tas011, tomigun, trajkoni018, Tvrtko I, vargas, vathra, Yellow Pinky, yrraf, zixmix, zlaya011