Skocz do zawartości

Zzzminaa Hasla Do Samba Przez Www


adams24

Rekomendowane odpowiedzi

Postanowilem ulatwic zycie userom i udostepnic im skrypt do zmiany hasla przez www.

Pobrac go mozna z tej strony

 

Instalacja przebiega wporzadku ale tylko przy skonfigurowanym jezyku domyslnym czyli angielskim.

Po ustawieniu jezyka na polski wywala taki blad:

[root@dom changepassword-0.9]# make
gcc -c -o smbencrypt/SMBPasswdGen.o  smbencrypt/SMBPasswdGen.c
gcc -c -o smbencrypt/encrypt.o	   smbencrypt/encrypt.c
gcc -c -o smbencrypt/md4.o		   smbencrypt/md4.c
gcc -c -o smbencrypt/smbencrypt.o	smbencrypt/smbencrypt.c
gcc changepassword.c -o changepassword.cgi smbencrypt/SMBPasswdGen.o smbencrypt/md4.o smbencrypt/smbencrypt.o smbencrypt/encrypt.o -lcrypt -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_LIBCRYPT=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_STDIO_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_PWD_H=1 -DHAVE_ERRNO_H=1 -DHAVE_SIGNAL_H=1 -DHAVE_SHADOW_H=1 -DHAVE_TIME_H=1  -Dpolish -DSMBPASSWD=\"/etc/samba\" -DSQUIDPASSWD=\"no\" -DLOGO=\"none\" -L./smbencrypt -ldes
changepassword.c: In function ‘main’:
changepassword.c:100: error: ‘msg25’ undeclared (first use in this function)
changepassword.c:100: error: (Each undeclared identifier is reported only once
changepassword.c:100: error: for each function it appears in.)
changepassword.c:100: error: ‘msg15’ undeclared (first use in this function)
changepassword.c:101: error: ‘msg27’ undeclared (first use in this function)
changepassword.c:159: error: ‘msg07’ undeclared (first use in this function)
changepassword.c:159: error: ‘msg08’ undeclared (first use in this function)
changepassword.c:165: error: ‘msg26’ undeclared (first use in this function)
changepassword.c:183: error: ‘msg09’ undeclared (first use in this function)
changepassword.c:198: error: ‘msg10’ undeclared (first use in this function)
changepassword.c:201: error: ‘msg11’ undeclared (first use in this function)
changepassword.c:207: error: ‘msg12’ undeclared (first use in this function)
changepassword.c:210: error: ‘msg13’ undeclared (first use in this function)
changepassword.c:221: error: ‘msg14’ undeclared (first use in this function)
changepassword.c:280: error: ‘msg16’ undeclared (first use in this function)
changepassword.c:286: error: ‘msg17’ undeclared (first use in this function)
changepassword.c:293: error: ‘msg18’ undeclared (first use in this function)
changepassword.c:293: error: ‘msg19’ undeclared (first use in this function)
changepassword.c:299: error: ‘msg20’ undeclared (first use in this function)
changepassword.c:307: error: ‘msg21’ undeclared (first use in this function)
changepassword.c:317: error: ‘msg24’ undeclared (first use in this function)
changepassword.c: In function ‘htmlheader’:
changepassword.c:369: error: ‘msg01’ undeclared (first use in this function)
changepassword.c:369: error: ‘charset’ undeclared (first use in this function)
changepassword.c: In function ‘showform’:
changepassword.c:394: error: ‘msg01’ undeclared (first use in this function)
changepassword.c:394: error: ‘msg02’ undeclared (first use in this function)
changepassword.c:396: error: ‘msg03’ undeclared (first use in this function)
changepassword.c:397: error: ‘msg04’ undeclared (first use in this function)
changepassword.c:398: error: ‘msg05’ undeclared (first use in this function)
changepassword.c:399: error: ‘msg06’ undeclared (first use in this function)
changepassword.c: In function ‘changesmbpass’:
changepassword.c:433: error: ‘msg14’ undeclared (first use in this function)
changepassword.c:433: error: ‘msg15’ undeclared (first use in this function)
changepassword.c:433: error: ‘msg08’ undeclared (first use in this function)
changepassword.c:439: error: ‘msg25’ undeclared (first use in this function)
changepassword.c:534: error: ‘msg18’ undeclared (first use in this function)
changepassword.c:534: error: ‘msg19’ undeclared (first use in this function)
changepassword.c:540: error: ‘msg20’ undeclared (first use in this function)
changepassword.c:545: error: ‘msg23’ undeclared (first use in this function)
changepassword.c: In function ‘changesquidpass’:
changepassword.c:575: error: ‘msg14’ undeclared (first use in this function)
changepassword.c:575: error: ‘msg15’ undeclared (first use in this function)
changepassword.c:575: error: ‘msg08’ undeclared (first use in this function)
changepassword.c:581: error: ‘msg27’ undeclared (first use in this function)
changepassword.c:647: error: ‘msg28’ undeclared (first use in this function)
changepassword.c:647: error: ‘msg29’ undeclared (first use in this function)
changepassword.c:653: error: ‘msg30’ undeclared (first use in this function)
changepassword.c:658: error: ‘msg31’ undeclared (first use in this function)
make: *** [changepassword.cgi] Błąd 1

 

w dodatku chaslo moze zmienic tylko i wylacznie user ktory nie ma zablokowanego dostepu do shella. Ale to chyba tak stworzony skrypt?? Bede musial pomyslec nad tym zeby miec wlaczone konto shellowe a minium uprawnien zeby mieli userzy.

 

Czy mozecie jakos pomoc co z tym bledem zrobic ???/////////// nie wiem o co chodzi :|

 

Do dłuższych listingów stosujemy codebox, a nie code /Karlik

Odnośnik do komentarza
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
×
×
  • Dodaj nową pozycję...