Instalacja vsftpd

Instalacja i konfiguracja oprogramowania sieciowego.
gooziec
Piegowaty Guziec
Piegowaty Guziec
Posty: 3
Rejestracja: 20 lis 2008, 22:27
Płeć: Mężczyzna
Wersja Ubuntu: inny OS

Instalacja vsftpd

Post autor: gooziec »

Witam,
chce postawic sobie serwer ftp przy uzyciu vsftpd, ale mam problemz z jego instalacja. Przy standardowzm poleceniu make pojawiaja sie takie oto bledy
root@ubuntu:~/vsftpd-2.0.6# make
gcc -c main.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c utility.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c prelogin.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c ftpcmdio.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c postlogin.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c privsock.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c tunables.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c ftpdataio.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c secbuf.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c ls.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c postprivparent.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c logging.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c str.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c netstr.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c sysstr.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c strlist.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c banner.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c filestr.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c parseconf.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c secutil.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c ascii.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c oneprocess.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c twoprocess.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c privops.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c standalone.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c hash.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c tcpwrap.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c ipaddrparse.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c access.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c features.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c readwrite.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c opts.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c ssl.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c sysutil.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c sysdeputil.c -O2 -Wall -W -Wshadow -idirafter dummyinc
sysdeputil.c:162: error: expected declaration specifiers or ‘...’ before ‘capset’
sysdeputil.c:162: error: expected declaration specifiers or ‘...’ before ‘header’
sysdeputil.c:162: error: expected declaration specifiers or ‘...’ before ‘data’
In file included from sysdeputil.c:170:
/usr/include/sys/sendfile.h: In function ‘_syscall2’:
/usr/include/sys/sendfile.h:35: error: storage class specified for parameter ‘sendfile’
sysdeputil.c:186: error: storage class specified for parameter ‘environ’
sysdeputil.c:187: error: storage class specified for parameter ‘s_proctitle_space’
sysdeputil.c:187: error: parameter ‘s_proctitle_space’ is initialized
sysdeputil.c:188: error: storage class specified for parameter ‘s_proctitle_inited’
sysdeputil.c:188: error: parameter ‘s_proctitle_inited’ is initialized
sysdeputil.c:189: error: storage class specified for parameter ‘s_p_proctitle’
sysdeputil.c:189: error: parameter ‘s_p_proctitle’ is initialized
sysdeputil.c:201: error: storage class specified for parameter ‘do_sendfile’
sysdeputil.c:202: error: storage class specified for parameter ‘vsf_sysutil_setproctitle_internal’
sysdeputil.c:203: error: storage class specified for parameter ‘s_proctitle_prefix_str’
sysdeputil.c:215: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
sysdeputil.c:436: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
sysdeputil.c:474: error: storage class specified for parameter ‘do_checkcap’
sysdeputil.c:478: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
sysdeputil.c:497: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
sysdeputil.c:514: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
sysdeputil.c:527: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
sysdeputil.c:604: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
sysdeputil.c:641: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
sysdeputil.c:796: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
sysdeputil.c:803: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
sysdeputil.c:809: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
sysdeputil.c:856: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
sysdeputil.c:889: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
sysdeputil.c:930: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
sysdeputil.c:935: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
sysdeputil.c:976: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
sysdeputil.c:1012: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
sysdeputil.c:1128: error: storage class specified for parameter ‘s_uwtmp_inserted’
sysdeputil.c:1129: error: storage class specified for parameter ‘s_utent’
sysdeputil.c:1134: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
sysdeputil.c:1173: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
sysdeputil.c:1192: error: old-style parameter declarations in prototyped function definition
sysdeputil.c:162: error: parameter name omitted
sysdeputil.c:162: error: parameter name omitted
sysdeputil.c:162: error: parameter name omitted
sysdeputil.c:1189: error: expected ‘{’ at end of input
make: *** [sysdeputil.o] Error 1
Dodatkowo gdy chce potraktowac go apt-get pojawia sie nastepujacy blad
root@ubuntu:~/vsftpd-2.0.6# sudo apt-get install vsftpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package vsftpd
Przyznam ze jestem mocno poczatkujacym uzytkownikiem. Blagam o pomoc
Awatar użytkownika
frklin
Zakręcona Traszka
Zakręcona Traszka
Posty: 891
Rejestracja: 13 gru 2007, 04:48
Płeć: Mężczyzna
Wersja Ubuntu: inny OS
Środowisko graficzne: Openbox
Architektura: x86
Lokalizacja: WLKP
Kontakt:

Odp: problem z zainstalowaniem vsftpd

Post autor: frklin »

o_O co Ty masz za system, jakoś nie chce mi się zgadywać ;)
w 8.10 siedzi ten pakiet w oryginalnym repo ubundowym
DO WYGRANIA TRZY ROUTERY WWW.NIBYBLOG.PL/KONKURS
gooziec
Piegowaty Guziec
Piegowaty Guziec
Posty: 3
Rejestracja: 20 lis 2008, 22:27
Płeć: Mężczyzna
Wersja Ubuntu: inny OS

Odp: problem z zainstalowaniem vsftpd

Post autor: gooziec »

Ubuntu 8.10. Pracuje na maszynie wirtualnej i programie VMPlayer. Czy jest to problem właśnie tego, że pracuje na maszynie wirtualnej? Co w takim razie zrobić, żebym mógł poprawnie zainstalować ten program?
Awatar użytkownika
frklin
Zakręcona Traszka
Zakręcona Traszka
Posty: 891
Rejestracja: 13 gru 2007, 04:48
Płeć: Mężczyzna
Wersja Ubuntu: inny OS
Środowisko graficzne: Openbox
Architektura: x86
Lokalizacja: WLKP
Kontakt:

Odp: Instalacja vsftpd

Post autor: frklin »

Kod: Zaznacz cały

deb http://archive.ubuntu.com/ubuntu/ intrepid main
w tym repo na bank to jest
DO WYGRANIA TRZY ROUTERY WWW.NIBYBLOG.PL/KONKURS
ubulo
Piegowaty Guziec
Piegowaty Guziec
Posty: 3
Rejestracja: 07 maja 2009, 08:44
Płeć: Mężczyzna
Wersja Ubuntu: 10.04
Środowisko graficzne: GNOME

Odp: Instalacja vsftpd

Post autor: ubulo »

Witam!
Podłączam się pod ten temat, bo wydaje mi się najodpowiedniejszy.
Zainstalowałem vsftp, wygląda na to, że wszystko działa ok. Mogę się zalogować się zdalnie na użytkownika systemowego, widzę zawartość przypisanego katalogu (i tylko to), mogę pobrać pliki, ale mam problem z uploadem, który działa tylko lokalnie (na localhost). Kiedy próbuję zrobić to samo zdalnie - mam komunikat o błędzie 550 (access denied). Bardzo proszę o jakieś wskazówki lub sugestie, które pomogą mi rozwiązać problem.
Pozdrawiam
Pozdrawiam
pawel1000
Piegowaty Guziec
Piegowaty Guziec
Posty: 2
Rejestracja: 30 paź 2009, 00:03
Płeć: Mężczyzna
Wersja Ubuntu: 9.10
Środowisko graficzne: GNOME
Architektura: x86

Odp: Instalacja vsftpd

Post autor: pawel1000 »

tez mam z nim problem i prosze o pomoc
chcialbym aby dowolny uzytkownik mogl umieszczac i sciagac dane z folderu /dane/ftp
ale na razie nie idzie
plik konfiguracyjny wyglada tak:
********************************************************************************8
# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
#
# Run standalone? vsftpd can run either from an inetd or as a standalone
# daemon started from an initscript.
listen=YES
anon_root=/data/ftp
#
# Run standalone with IPv6?
# Like the listen parameter, except vsftpd will listen on an IPv6 socket
# instead of an IPv4 one. This parameter and the listen parameter are mutually
# exclusive.
#listen_ipv6=YES
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=YES
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
#local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
#anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
#anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format
#xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
*********************************************************************************************************************
a jak loguje sie z firefoxa to wywala cos takiego
500 OOPS:cannot change directory:data/ftp
500 OOPS:child died

prosze o pomoc
ODPOWIEDZ

Wróć do „Sieci, serwery, Internet”

Kto jest online

Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 13 gości