FreeBSD maximum password length
Hi Everyone, As i googled it, there is no maximum limitations for users' password length by default.. But we may use *pam_passwdqc* module with *max* option to check it when required. And i've heard that no-maximum-limits for passwords length is only possible when we keep them in encrypted form not as plain text, which i think is matched with FreeBSD behavior. Am i right? Is that all about maximum password length in FreeBSD? Did i miss something?? Thank you for all your helps and ideas :) Best Regards, takCoder ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Flash failing with videos on youtube
On Mon, Jun 17, 2013 at 2:45 AM, Bernt Hansson b...@bananmonarki.se wrote: On 2013-06-16 13:39, Jerry wrote: I saw the answer to this a while back, but I cannot find it now. youtube-dl -t 'filename' You can also use this trick to work on youtube directly: This video use flash player: http://www.youtube.com/watch?v=M84Y6VXAIaU This will give you player directly and can skip flash: http://www.youtube.com/embed/M84Y6VXAIaU This will download the video: http://www.youtube.com/v/M84Y6VXAIaU Not sure how to change format of a video that will be downloaded. You can also use http://www.offliberty.com to download audio and video tracks of web clips in mp3/mp4 format :-) Best regards, Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD maximum password length
There isn't a max password length as far as I'm aware, but there is a max username length that drive me insane sometimes. I should really file a PR about that... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD maximum password length
Thank you, Mark, for your helpful answer :) yes, i am aware of the max username length of 16characters.. I just wanted to become sure about password max length, cause i need to moderate it in my self-built user interface.. Thank you again :) On Mon, Jun 17, 2013 at 3:44 PM, Mark Felder f...@feld.me wrote: There isn't a max password length as far as I'm aware, but there is a max username length that drive me insane sometimes. I should really file a PR about that... __**_ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/**mailman/listinfo/freebsd-**questionshttp://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-** unsubscr...@freebsd.org freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
installing a kernel under a custom location, not /boot/kernel?
I think there is an option for this. But I cannot find it under 9.5. Building and Installing a Custom Kernel http://www.freebsd.org/doc/handbook/kernelconfig-building.html I need to keep several kernels installed, not just the current and the previous. How to achive this? Thaknks Anton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD maximum password length
takCoder tak.offic...@gmail.com writes: As i googled it, there is no maximum limitations for users' password length by default.. But we may use *pam_passwdqc* module with *max* option to check it when required. And i've heard that no-maximum-limits for passwords length is only possible when we keep them in encrypted form not as plain text, which i think is matched with FreeBSD behavior. Is plain-text passwords even a supported behaviour? I didn't think it was. Am i right? Is that all about maximum password length in FreeBSD? Did i miss something?? _PASSWORD_LEN is the defined limit. It's 128 characters by default but could be changed at compile time. There may be other limits, such as in various versions of NIS. Thank you for all your helps and ideas :) I'm not sure I understand what you're doing, so I don't have any real advice, but I don't see why 128 characters would be that hard to deal with. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD maximum password length
Thank you, Lowell, for your reply. :) And i've heard that no-maximum-limits for passwords length is only possible when we keep them in encrypted form not as plain text, which i think is matched with FreeBSD behavior. Is plain-text passwords even a supported behaviour? I didn't think it was. I meant i think FreeBSD does not use plain-text passwords, so we won't have a limitation for that reason.. excuse me for my poor english. _PASSWORD_LEN is the defined limit. It's 128 characters by default but could be changed at compile time. There may be other limits, such as in various versions of NIS. ... I'm not sure I understand what you're doing, so I don't have any real advice, but I don't see why 128 characters would be that hard to deal with. I need to moderate the input password in my system's user interface. And I believe i have tested longer passwords than that, about 1000 characters long, and there was no limitations, via using this command in a /bin/sh test shell script : echo PASSWORD | pw user mod USER -h 0. at least there was no errors reported by *pw*. i did not test the user myself.. and it somehow seems correct, as the encrypted output string may be not a function of the input string, based on the method used. Thank you :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: installing a kernel under a custom location, not /boot/kernel?
On Mon, Jun 17, 2013 at 7:13 AM, Anton Shterenlikht me...@bris.ac.ukwrote: I think there is an option for this. But I cannot find it under 9.5. Building and Installing a Custom Kernel http://www.freebsd.org/doc/handbook/kernelconfig-building.html I need to keep several kernels installed, not just the current and the previous. How to achive this? KODIR=/boot/testkernel -- Adam Vande More ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD maximum password length
On Mon, 17 Jun 2013 17:49:56 +0330 takCoder tak.offic...@gmail.com wrote: I need to moderate the input password in my system's user interface. And I believe i have tested longer passwords than that, about 1000 characters long, and there was no limitations, via using this command in a /bin/sh test shell script : echo PASSWORD | pw user mod USER -h 0. If I remember well, any password longer than default size is truncated, so passwords a) 'AhN12Njufsn8794432kjfvsnkkJHNDSMNDKh844mNJKnhjhu8u8424' b) 'AhN12Njufsn8794432kj' have the same salt hash value and both validate the user. Thank you :) --- --- Eduardo Morras emorr...@yahoo.es ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Any BASIC Gurus around?
I am having trouble getting this old USNO basic program running in bwBASIC. The error output is not clear to me where the problem is. Here is the code, if someone wouldn't mind running it and suggesting edits: 10 DEF FNARCOS(ARG)=1.570796-ATN(ARG/SQR(1.-ARG*ARG)) 20 DEF FNARCSIN(ARG)=ATN(ARG/SQR(1.-ARG*ARG)) 30 DEF FNDEG(ARG)=INT(ARG)+((ARG-INT(ARG))*1O.)/6. 40 DEF FNDMS(ARG)=INT(ARG)+6. * (ARG - INT(ARG)) / 10! 50 RD=57.29578 60 DR=1./RD 70 DIM A(4) 80 DIM B(2) 90 A(1)=-.01454 100 A(2)=-.10453 110 A(3)=-.20791 120 A(4)=.00233 130 CE=.91775 140 SE=.39715 150 INPUT LONGITUDE IN DEG.; LO 160 LI=ABS(LO) 170 INPUT LATITUDE IN DEG.; F 180 F=F*DR 190 S1=SIN(F) 200 CI=COS(F) 210 INPUT YEAR (4 DIGITS); IY 220 INPUT MONTH (NUMERAL); IM 230 INPUT DAY (NUMERAL); ID 240 C=360. 250 J=367*IY-INT(7*(IY+INT((IM+9)/12))/4)+INT(275*IM/9)+ID-730531. 260 INPUT UNIVERSAL TIME = 0, ZONE TIME = 1, LOCAL MEAN TIME = 2; Z 270 DT=0. 280 IF Z=0. THEN LET DT=-LO/C 290 IF Z=1. THEN LET DT=-(LI-15*INT((LI+7.5)/15))/C*SGN(LO) 300 INPUT HOUR (4 DIGIT NUMERAL ON 24 HOUR CLOCK); H 310 ZO#=J-.5 320 IF H0 THEN GOTO 870 330 PRINT DATA FOR ;IY; , MONTH ;IM; , DAY;ID 340 FOR L=1 TO 4 350 ON L GOTO 370, 650, 650, 360 360 C=347.81 370 M=.5+DT 380 K=1 390 M=M-DT 400 E=M-LO/360. 410 GOSUB 430 420 GOTO 530 430 D#-ZO#+E 440 IF ABS(E)=1 THEN LET E=E-SGN(E) 450 GOSUB 1220 460 IF L=4 THEN GOSUB 1720 470 T=T+LO+360.*E 480 T=T-INT(T/360.)*360. 490 U=T-AS 500 IF ABS(U) 180! THEN LET U=U-360.*SGN(U) 510 U=U/C 520 RETURN 530 M=M-U+DT 540 IF L4 THEN LET K=K+1 550 ON K GOTO 600,560,600,580,600,620 560 IF M=O. AND M1. THEN GOTO 620 570 GOTO 590 580 IF M=O. THEN GOTO 620 590 M=M-SGN(M) 600 K=K+1 610 GOTO 390 620 H=FNARCSIN(COS(F-DS))*RD 630 IF L=4 THEN LET H=H-.95*COS(H) 640 GOSUB 2160 650 GOSUB 2000 660 B(1)=M-H 670 B(2)=M+H 680 FOR I=1 TO 2 690 K=2*I-3 700 FOR N=1 TO 6 710 B(I)=B(I)-DT 720 E=B(I)-LO/360. 730 GOSUB 430 740 GOSUB 2000 750 B(I)=B(I)+K*H-U+DT 760 IF L4 THEN LET N=N+1 770 ON N GOTO 820,780,820,800,820,830 780 IF B(I)=O. AND B(I)1. THEN GOTO 830 790 GOTO 810 800 IF B(I)=O. THEN GOTO 830 810 B(I)=B(I)-SGN(B(I)) 820 NEXT N 830 NEXT I 840 ON L GOSUB 1350,1400,1400,1610 850 NEXT L 860 GOTO 150 870 INPUTSKY CONDITION = 1,2,3,10,;SK 880 PRINTDATA FOR ;IY;, MONTH ;IM;, DAY ;ID;, AT ;H; HOURS 890 E=FNDEG(H/100.)/24.-DT-LO/360. 900 D#=ZO#+E 910 N=1 920 GOSUB 1220 930 T=T+360.*E+LO 940 IF N=2 THEN GOSUB 1720 950 H=T-AS 960 GOSUB 2060 970 Z=H*DR 980 H=H-.95*(N-1)*COS(H*DR) 990 GOSUB 2160 1000 GOSUB 2200 1010 HA=INT(ABS(HA)+.5)*SGN(HA) 1020 ON N GOTO 1030, 1090 1030 IS=133775.*M/SK 1040 PRINTSUN AZIMUTH (DEG.) ;AZ 1050 PRINTSUN ALTITUDE (DOG.) ;HA 1060 PRINTSUN ILLUMINANCE (LUX) ;IS 1070 N=2 1080 GOTO 940 1090 E=FNARCOS(COS(V-LS)*CB) 1100 P=.892*EXP(-3.343/((TAN(E/2.))^.632))+.0344*(SIN(E)-E*COS(E)) 1110 P=.418*P/(1.-.005*COS(E)-.03*SIN(Z)) 1120 IL=P*M/SK 1130 IS=IS+IL+.0005/SK 1140 PRINTMOON AZIMUTH (DEG.) ;AZ 1150 PRINTMOON ALTITUDE (DEG.) ;HA 1160 PRINTMOON ILLUMINANCE (LUX) ;IL 1170 IL=INT(50.*(1.-COS(E»+.5) 1180 PRINT (;IL;% OF MOON ILLUMINATED) 1190 PRINTTOTAL ILLUMINANCE (LUX) ;IS 1200 GOTO 300 1210 END 1220 TD#=280.46#+.98565#*D# 1230 T=TD#-INT(TD#/360#)*360# 1240 IF TO. THEN LET T=T+360. 1250 TD#=357.5#+.9856#*D# 1260 G=(TD#-INT(TD#/360#)*360#)*DR 1270 LS=(T+1.91*SIN(G))*DR 1280 AS=ATN(CE*TAN(LS))*RD 1290 Y=COS(LS) 1300 IF YO. THEN LET AS=AS+180. 1310 SD=SE*SIN(LS) 1320 DS=FNARCSIN(SD) 1330 T=T-180. 1340 RETURN 1350 R=M 1360 GOSUB 1700 1370 PRINTSUN MERIDIAN PASSAGE AT ;R 1380 HA=INT(ABS(HA)+.5)*SGN(HA) 1390 PRINTALTITUDE AT MER. PASS. ;HA 1400 FOR 1=1 TO 2 1410 R=B(I) 1420 GOSUB 1700 1430 IF R=4800. OR RO. THEN GOTO 1680 1440 ON 2*(L-1)+I GOTO 1450,1470,1530,1550,1570,1590,1650,1670 1450 PRINTTIME OF SUNRISE ;R 1460 GOTO 1680 1470 PRINTTIME OF SUNSET ;R 1480 R=B(2)-B(1) 1490 IF RO. THEN LET R=R+1. 1500 GOSUB 1700 1510 PRINTTOTAL DAYLIGHT ;R 1520 GOTO 1680 1530 PRINTBEGIN CIVIL TWILIGHT AT ;R 1540 GOTO 1680 1550 PRINTEND CIVIL TWILIGHT AT ;R 1560 GOTO 1680 1570 PRINTBEGIN NAUTICAL TWILIGHT ;R 1580 GOTO 1680 1590 PRINTEND NAUTICAL TWILIGHT ;R 1600 GOTO 1680 1610 R=M 1620 GOSUB 1700 1630 PRINTMOON MERIDIAN PASSAGE AT;R 1640 GOTO 1380 1650 PRINTTIME OF MOONRISE;R 1660 GOTO 1680 1670 PRINTTIME OF MOONSET ;R 1680 NEXT I 1690 RETURN 1700 R=INT(100.*FNDMS(R*24.)+.5) 1710 RETURN 1720 TD#=218.32#+13.1764#*D# 1730 V=TD#-INT(TD#/360#)*360# 1740 IF VO. THEN LET V=V+360. 1750 TD#=134.96#+13.06499#*D# 1760 Y=(TD#-INT(TD#/360#)*360#)*DR 1770 TD#=93.27#+13.22935#*D# 1780 O=(TD#-INT(TD#/360#)*360#)*DR 1790 TD#=235.7#+24.3815#*D# 1800 W=(TD#-INT(TD#/360#)*360#)*DR 1810 SB=SIN(Y) 1820 CB=COS(Y) 1830 X=SIN(O) 1840 S=COS(O) 1850 SD=SIN(W) 1860 CD=COS(W) 1870 V=V+(6.29-1.27*CD+.43*CB)*SB+(.66+1.27*CB)*SD-.19*SIN(G)-.23*X*S 1880 V=V*DR 1890 Y=((5.13-.17*CD)*X+(.56*SB+.17*SD)*S)*DR 1900 SV=SIN(V) 1910 SB=SIN(Y) 1920 CB=COS(Y) 1930 Q=CB*COS(V) 1940 P=CE*SV*CB-SE*SB 1950 SD=SE*SV*CB+CE*SB 1960 AS=ATN(P/Q)*RD 1970 IF QO. THEN LET AS=AS+180. 1980
Re: FreeBSD maximum password length
On Jun 17, 2013, at 7:47 AM, Eduardo Morras wrote: On Mon, 17 Jun 2013 17:49:56 +0330 takCoder tak.offic...@gmail.com wrote: I need to moderate the input password in my system's user interface. And I believe i have tested longer passwords than that, about 1000 characters long, and there was no limitations, via using this command in a /bin/sh test shell script : echo PASSWORD | pw user mod USER -h 0. If I remember well, any password longer than default size is truncated, so passwords a) 'AhN12Njufsn8794432kjfvsnkkJHNDSMNDKh844mNJKnhjhu8u8424' b) 'AhN12Njufsn8794432kj' have the same salt hash value and both validate the user. Depends on the hashing algo. Old crypt(3) stored passwords with a 12-bit (2x Base64 characters; [0-9a-zA-Z./]) followed by the hashed cleartext. This [ancient] format limited password input to 8 characters. With this algorithm, input beyond 8 characters was ignored, so the behavior you describe is accurate -- with the old DES based one-way hash algorithm (which hasn't been default for a vey long time). The default in FreeBSD is MD5, but you can go to AES256 (Rijndael) if you like, or Blowfish, or whatever you like. Each of these has different limitations, but will not exhibit the behavior you describe above. There is no limit to these algorithms, only in the implementations -- that is to say that if you implement a read-buffer of 128k, that's the practical limit of your applications input (read: these algorithms have no limitations on input, however that being stated… no CRC algorithm has a limitation on input). But be aware… What makes these algorithms more secure is their larger salts *and* their stated rate of collisions. MD5 is no longer considered secure. It's secure *enough* for most people, but if you run a tight ship, any one with a few multiplexed GPUs running a CUDA thread against your hash can break it in a matter of a week if not days. The benchmark (in my mind) for any cryptographically strong algo is that with almost dream-like hardware, it would still be impossible to reverse the one-way trapdoor hash in one's-own lifetime. Of course, achieving that as a human can be hard considering that we rarely (if ever) produce strong inputs to the strong algorithms. However, if you want to be pedantic about choosing a strong password… you should actually take respite in the fact that these algorithms is still like their CRC brethren in that: Inputs greater than the hash length are cryptographically more secure than inputs shorter than the hash length. I digress… -- Devin _ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD maximum password length
On Mon, 17 Jun 2013 12:25:54 -0500, Teske, Devin devin.te...@fisglobal.com wrote: The default in FreeBSD is MD5 MD5 is no longer the default. http://svnweb.freebsd.org/base?view=revisionrevision=238484 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD maximum password length
On Jun 17, 2013, at 10:28 AM, Mark Felder wrote: On Mon, 17 Jun 2013 12:25:54 -0500, Teske, Devin devin.te...@fisglobal.com wrote: The default in FreeBSD is MD5 MD5 is no longer the default. http://svnweb.freebsd.org/base?view=revisionrevision=238484 Huzzah! 9.1-RELEASE and higher indeed use sha512 as the new default. 8.4 still using md5 though (and expected to stay that way). Question… Is sha512 the highest it goes in our system? -- Devin _ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Any BASIC Gurus around?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6/17/13 1:16 PM, Chris Maness wrote: I am having trouble getting this old USNO basic program running in bwBASIC. The error output is not clear to me where the problem is. Here is the code, if someone wouldn't mind running it and suggesting edits: ...setting wayback machine to ca. 1979... Here is a patch to apply to your code that gets the program a little further: http://people.freebsd.org/~glarkin/diffs/prog.bas.diff There were some O characters that should have been 0 instead and at least a couple of Unicode characters that I removed. It prints out some results up to the moon illuminance, and then bwBasic core dumps, but maybe you'll be able to debug from there. Good luck, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/cpucycle/ - Follow you, follow me -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.13 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlG/TPIACgkQ0sRouByUApDxQwCggXDVspM4GF2dlI5EvlmUsvld qtYAn2NeBVSPHJ8p4nEYvN80bbXZGecr =Z9tY -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Any BASIC Gurus around?
I'm no BASIC Guru, but this one line caught my eye while scrolling through your mail: 2010 IF ABS(H1. THEN GOTO 2040 Missing parenthesis? Regards, Michael ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Trouble installing py-sqlite3 port for python3.x
Modulok modulok at gmail.com writes: List, I'm *guessing* this is more of FreeBSD problem than a python one, so I'll ask on this list. I'm trying to import sqlite3 in python3.2 on FreeBSD 8.1-RELEASE and ran into trouble: $ python3.2 ... import sqlite3 Traceback (most recent call last): File stdin, line 1, in module File /usr/local/lib/python3.2/sqlite3/__init__.py, line 23, in module from sqlite3.dbapi2 import * File /usr/local/lib/python3.2/sqlite3/dbapi2.py, line 26, in module [...] Solution : installing port named py-sqlite3 after configure for use with ptyhon3. Tuto here http://bind10.isc.org/wiki/SystemNotesFreeBSD ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Any BASIC Gurus around?
Thanks a ton Greg. It is crashing here too. I am not sure as to the cause. I made a small patch to place on top of yours. There is a typo that outputs the sun position as DOG instead of DEG. Here it is: --- sun.bas.orig 2013-06-17 11:51:00.0 -0700 +++ sun.bas 2013-06-17 11:44:06.0 -0700 @@ -104,7 +104,7 @@ 1020 ON N GOTO 1030, 1090 1030 IS=133775.*M/SK 1040 PRINT SUN AZIMUTH (DEG.) ;AZ -1050 PRINT SUN ALTITUDE (DOG.) ;HA +1050 PRINT SUN ALTITUDE (DEG.) ;HA 1060 PRINT SUN ILLUMINANCE (LUX) ;IS 1070 N=2 1080 GOTO 940 Regards, Chris Maness On Mon, Jun 17, 2013 at 10:52 AM, Greg Larkin glar...@freebsd.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6/17/13 1:16 PM, Chris Maness wrote: I am having trouble getting this old USNO basic program running in bwBASIC. The error output is not clear to me where the problem is. Here is the code, if someone wouldn't mind running it and suggesting edits: ...setting wayback machine to ca. 1979... Here is a patch to apply to your code that gets the program a little further: http://people.freebsd.org/~glarkin/diffs/prog.bas.diff There were some O characters that should have been 0 instead and at least a couple of Unicode characters that I removed. It prints out some results up to the moon illuminance, and then bwBasic core dumps, but maybe you'll be able to debug from there. Good luck, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/cpucycle/ - Follow you, follow me -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.13 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlG/TPIACgkQ0sRouByUApDxQwCggXDVspM4GF2dlI5EvlmUsvld qtYAn2NeBVSPHJ8p4nEYvN80bbXZGecr =Z9tY -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Any BASIC Gurus around?
Oops, here is another patch that includes a correction for the missing parenthesis that Michael Ross pointed out: --- sun.bas.orig 2013-06-17 11:51:00.0 -0700 +++ sun.bas 2013-06-17 11:57:55.0 -0700 @@ -104,7 +104,7 @@ 1020 ON N GOTO 1030, 1090 1030 IS=133775.*M/SK 1040 PRINT SUN AZIMUTH (DEG.) ;AZ -1050 PRINT SUN ALTITUDE (DOG.) ;HA +1050 PRINT SUN ALTITUDE (DEG.) ;HA 1060 PRINT SUN ILLUMINANCE (LUX) ;IS 1070 N=2 1080 GOTO 940 @@ -200,7 +200,7 @@ 1980 DS=FNARCSIN(SD) 1990 RETURN 2000 H=(A(L)-SI*SD)/(CI*COS(D))S -2010 IF ABS(H1. THEN GOTO 2040 +2010 IF ABS(H)1. THEN GOTO 2040 2020 H=FNARCOS(H)*RD/C 2030 RETURN 2040 H=1.5 Thanks, guys. It will be cool if I can figure out why the interpreter is core dumping. Chris Maness ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Any BASIC Gurus around?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6/17/13 3:03 PM, Chris Maness wrote: Oops, here is another patch that includes a correction for the missing parenthesis that Michael Ross pointed out: --- sun.bas.orig2013-06-17 11:51:00.0 -0700 +++ sun.bas2013-06-17 11:57:55.0 -0700 @@ -104,7 +104,7 @@ 1020 ON N GOTO 1030, 1090 1030 IS=133775.*M/SK 1040 PRINT SUN AZIMUTH (DEG.) ;AZ -1050 PRINT SUN ALTITUDE (DOG.) ;HA +1050 PRINT SUN ALTITUDE (DEG.) ;HA 1060 PRINT SUN ILLUMINANCE (LUX) ;IS 1070 N=2 1080 GOTO 940 @@ -200,7 +200,7 @@ 1980 DS=FNARCSIN(SD) 1990 RETURN 2000 H=(A(L)-SI*SD)/(CI*COS(D))S -2010 IF ABS(H1. THEN GOTO 2040 +2010 IF ABS(H)1. THEN GOTO 2040 2020 H=FNARCOS(H)*RD/C 2030 RETURN 2040 H=1.5 Thanks, guys. It will be cool if I can figure out why the interpreter is core dumping. Chris Maness Hi Chris, I prepared a new patch that incorporates my fixes, yours and Michael's. I found the coredump - multiple missing right parens on line 1170. Then I ran into another problem on line 430 and made an educated guess with the fix. The new patch is here, and you'll need to apply it to the original version of the program: http://people.freebsd.org/~glarkin/diffs/prog.bas.2.diff Hope that works, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/cpucycle/ - Follow you, follow me -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.13 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlG/ZiIACgkQ0sRouByUApAjVQCfYAWvfi7sJwa6+og+jcJDsrno jaYAn1vqRecRUn8e1dqU9uI+TMlvjU3Q =9Tnl -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD maximum password length
On Mon, 17 Jun 2013 12:52:48 -0500, Teske, Devin devin.te...@fisglobal.com wrote: Is sha512 the highest it goes in our system? Not sure what the limitations are. I know OpenBSD uses blowfish and I have been using that on older FreeBSD servers as a workaround. I think that OpenBSD uses a high number of rounds on their blowfish to make brute forces more difficult because of how slow it gets. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
easy question about logcheck
Hi all :-) I just configurated logcheck and everything is perfect :-) A question: where is the script that handle to send email? I check also with pkg_info -L but I didn't see any script that send email thanks for help! Pol ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
AdWordPosition - Best alternative of AdWords
Hello, Let me introduce you to new advertisement technology which will bring your website on the top of major search engines, such as Google, Yahoo and Bing without Pay per Click in 24 hours. In order to see it in action, you can watch online demonstration on our website and try it in action with online demo form with two simple steps: - Go to our website and click on Online Demo button; - Fill form with your website (ex. www.freebsd.org) and keyword and click View Online Demo. After you visit our website and fill Online Quote form, you can call us and our experts will analyze your website and will kindly guide you through our technology and details. Best Regards, AdWordPosition.net 5716 Corsa Avenue, Westlake Willage, California 91362 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Any BASIC Gurus around?
On closer inspection it looks like the moons in the right spot, but the Sun is in the wrong spot. I will take a look and see if there is no error in the lines that deal with the Sun's Az/El. I have the original code that was scanned from a USNO document. The OCR was rather sloppy. I will post the original in a minute and send the link. Thanks, again Chris Maness On Mon, Jun 17, 2013 at 1:24 PM, Chris Maness ch...@chrismaness.com wrote: Thanks a ton Greg, it works great. The only thing I that seems to be an issue of I use Zulu time. According to the ephemeris the time seems to be wrong when I use Zulu time. I would have never been able to fix that program. Thanks again. I am going to load it on my NEC 8201A and see if it will run there :D Thanks, Chris Maness On Mon, Jun 17, 2013 at 12:40 PM, Greg Larkin glar...@freebsd.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6/17/13 3:03 PM, Chris Maness wrote: Oops, here is another patch that includes a correction for the missing parenthesis that Michael Ross pointed out: --- sun.bas.orig2013-06-17 11:51:00.0 -0700 +++ sun.bas2013-06-17 11:57:55.0 -0700 @@ -104,7 +104,7 @@ 1020 ON N GOTO 1030, 1090 1030 IS=133775.*M/SK 1040 PRINT SUN AZIMUTH (DEG.) ;AZ -1050 PRINT SUN ALTITUDE (DOG.) ;HA +1050 PRINT SUN ALTITUDE (DEG.) ;HA 1060 PRINT SUN ILLUMINANCE (LUX) ;IS 1070 N=2 1080 GOTO 940 @@ -200,7 +200,7 @@ 1980 DS=FNARCSIN(SD) 1990 RETURN 2000 H=(A(L)-SI*SD)/(CI*COS(D))S -2010 IF ABS(H1. THEN GOTO 2040 +2010 IF ABS(H)1. THEN GOTO 2040 2020 H=FNARCOS(H)*RD/C 2030 RETURN 2040 H=1.5 Thanks, guys. It will be cool if I can figure out why the interpreter is core dumping. Chris Maness Hi Chris, I prepared a new patch that incorporates my fixes, yours and Michael's. I found the coredump - multiple missing right parens on line 1170. Then I ran into another problem on line 430 and made an educated guess with the fix. The new patch is here, and you'll need to apply it to the original version of the program: http://people.freebsd.org/~glarkin/diffs/prog.bas.2.diff Hope that works, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/cpucycle/ - Follow you, follow me -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.13 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlG/ZiIACgkQ0sRouByUApAjVQCfYAWvfi7sJwa6+og+jcJDsrno jaYAn1vqRecRUn8e1dqU9uI+TMlvjU3Q =9Tnl -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Any BASIC Gurus around?
Here is a link to the USNO article that the BASIC program originated from: USNO171s.pdf http://www.chrismaness.com/backend/USNO171s.pdf Thanks, Chris Maness ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: easy question about logcheck
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6/17/13 4:16 PM, Pol Hallen wrote: Hi all :-) I just configurated logcheck and everything is perfect :-) A question: where is the script that handle to send email? I check also with pkg_info -L but I didn't see any script that send email thanks for help! Pol Hi Pol, If you include logcheck in a cron job (hourly, daily, etc.), the cron system will send the email with its output. Regards, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/cpucycle/ - Follow you, follow me -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.13 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlG/d8IACgkQ0sRouByUApAi7gCdFhs9h5HqVZ8sQRTStZP15nj5 casAoIAPxjfqoNPOndWM3QNfX7ikSmwU =q90K -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: easy question about logcheck
If you include logcheck in a cron job (hourly, daily, etc.), the cron system will send the email with its output. After installed logcheck I didn't done any changes to cron... but I've notify mails from logcheck Thanks! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Any BASIC Gurus around?
Hi, Reference: From: Chris Maness ch...@chrismaness.com Date: Mon, 17 Jun 2013 13:52:47 -0700 Chris Maness wrote: Here is a link to the USNO article that the BASIC program originated from: USNO171s.pdf http://www.chrismaness.com/backend/USNO171s.pdf Thanks, Chris Maness As you need max syntax checking from OCR, throw it at as many different basic interpreters/ compilers as you can, inspect where each bleats, some error messages may be more less usefull for different errors. A friend of mine wrote a basic decades back, its in /usr/ports/lang/pbasic/ Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultant, Munich http://berklix.com Reply below not above, like a play script. Indent old text with . Send plain text. No quoted-printable, HTML, base64, multipart/alternative. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: installing a kernel under a custom location, not /boot/kernel?
On Mon, 17 Jun 2013 09:21:21 -0500, Adam Vande More wrote: On Mon, Jun 17, 2013 at 7:13 AM, Anton Shterenlikht me...@bris.ac.ukwrote: I think there is an option for this. But I cannot find it under 9.5. Building and Installing a Custom Kernel http://www.freebsd.org/doc/handbook/kernelconfig-building.html I need to keep several kernels installed, not just the current and the previous. How to achive this? KODIR=/boot/testkernel This parameter can be used to the make installkernel command, for example in a workflow like this: # make buildkernel KERNCONF=TESTKERNEL # make installkernel KERNCONF=TESTKERNEL KODIR=/boot/testkernel Plus the corresponding settings in /boot/loader.conf: kernel=testkernel bootfile=/boot/testkernel/kernel kernel_options=foo bar blah See /boot/defaults/loader.conf for details. For booting test kernels, you might also find the nextboot command very helpful; read man nextboot for more inspiration. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD maximum password length
On Mon, 17 Jun 2013 17:52:48 + Teske, Devin wrote: On Jun 17, 2013, at 10:28 AM, Mark Felder wrote: On Mon, 17 Jun 2013 12:25:54 -0500, Teske, Devin devin.te...@fisglobal.com wrote: The default in FreeBSD is MD5 MD5 is no longer the default. http://svnweb.freebsd.org/base?view=revisionrevision=238484 Huzzah! 9.1-RELEASE and higher indeed use sha512 as the new default. 8.4 still using md5 though (and expected to stay that way). Question… Is sha512 the highest it goes in our system? The precise cipher/hash is almost irrelevant. What's important is the amount of work needed to evaluate a password in a bruteforce dictionary attack. MD5 is still OK for password hashing, the problem is an inadequate number of iterations in our particular implementation. A similar problem exists with blowfish and arguably all of the rest. Another problem is that all current schemes are inadvertently optimised for GPU attack since they run in very little memory. The bottom line is: don't let anyone steal your password file. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD maximum password length
One _little_ terminology detail: On Tue, 18 Jun 2013 00:56:08 +0100, RW wrote: What's important is the amount of work needed to evaluate a password in a bruteforce dictionary attack. I'd say that bruteforce != dictionary. It's bruteforce _or_ dictionary attack instead. A dictionary attack is more sophisticated because it uses words from a dictionary, whereas a _real_ bruteforce will stupidly run through _all_ combinations of the given charsets and length ranges. It will _eventually_ be successful, even if our planet doesn't exist anymore at that time. Finite time, far far away. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD maximum password length
On Mon, Jun 17, 2013 at 6:35 AM, takCoder tak.offic...@gmail.com wrote: Thank you, Mark, for your helpful answer :) yes, i am aware of the max username length of 16characters.. I just wanted to become sure about password max length, cause i need to moderate it in my self-built user interface.. Thank you again :) On Mon, Jun 17, 2013 at 3:44 PM, Mark Felder f...@feld.me wrote: There isn't a max password length as far as I'm aware, but there is a max username length that drive me insane sometimes. I should really file a PR about that... Perhaps your PR is unnecessary: $ svn log -v -r243023 /usr/src/sys/sys/param.h r243023 | bapt | 2012-11-14 04:58:12 -0600 (Wed, 14 Nov 2012) | 8 lines Changed paths: M /head/sys/sys/param.h Allow usernames up to 32 chars PR: kern/161091 [1], misc/133926 [2] Submitted by: Stephane Lapie darks...@darkbsd.org [1], Chris Dillon cdil...@wolves.k12.mo.us [2] Reviewed by:cognet, kib The above would have saved me a few local diffs as well a few years ago... -Brandon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD maximum password length
On Mon, Jun 17, 2013, at 21:19, Brandon Gooch wrote: On Mon, Jun 17, 2013 at 6:35 AM, takCoder tak.offic...@gmail.com wrote: Perhaps your PR is unnecessary: $ svn log -v -r243023 /usr/src/sys/sys/param.h Hmm, looks like it wasn't MFC'd to 9-STABLE before 9.1's release. Well, at least it's good to know that it's coming. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD maximum password length
I know this may seem off-the-wall to some, but I pasted a hashed password for a user under 9.1 into the /etc/passwd entry for that user on an 8.3 machine, and auth continues to work properly. That's nice. - M ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Avoid sharing interrupts in FreeBSD under ESXi
HI all, I have installed a FreeBSD 8.4 vm under an ESXi 5.1 U1 server. All works ok, except for interrupt usage between mpt and nic interfaces: root@fbsdtst:~ # vmstat -i interrupt total rate irq1: atkbd0 6 0 irq6: fdc0 9 0 irq16: em2 mpt2 945924 1 irq17: em3 em6 2124484 4 irq18: em0 em4 em7+ 5950584 11 irq19: em1 em5 em8+ 2317830055 4499 cpu0: timer206119496400 Total 2532970558 4916 I have enabled the following options in loader.conf: hw.pci.enable_msi=0 hw.pci.enable_msix=0 without a result. Is it possible to avoid to share interrupts in FreeBSD when it is running as a vm? Exists some kernel option to resolve this (via sysctl or compiling a new kernel)? Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org