Re: BIND forwarding

2006-04-18 Thread Alexander Farber
Check http://groups.google.com/group/comp.protocols.dns.bind On 4/16/06, Darrin Chandler [EMAIL PROTECTED] wrote: On Sun, Apr 16, 2006 at 08:22:27AM +0200, Alexander Farber wrote: On the USENET I've learnt that forwarders shouldn't be used... Did you also learn why? I'd like to know. I don't

Re: BIND forwarding

2006-04-16 Thread Alexander Farber
On the USENET I've learnt that forwarders shouldn't be used... -Original Message- From: Brendan Grossman [mailto:[EMAIL PROTECTED] Sent: Sunday, 16 April 2006 6:17 AM To: 'misc@openbsd.org' Subject: BIND forwarding I have a simple BIND setup that forwards requests for

Re: Bluetooth in OpenBSD

2006-04-04 Thread Alexander Farber
Dunno about USB-BT adapter, but GPRS does work - at least with my Nokia 9300 and infrared (the birda package) http://archives.neohapsis.com/archives/openbsd/2005-09/1387.html On 4/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have installed OpenBSD 3.8 in a laptop with a winmodem so I can't

Re: Firefox with Java and Flash

2006-03-31 Thread Alexander Farber
You need to install native jdk from the ports. Java works fine in Firefox, Mozilla and Konqueror here. laptop:afarber {516} ll .mozilla/plugins/ total 4 4 lrwxr-xr-x 1 afarber users 63 Mar 14 09:23 libjavaplugin_oji.so - /usr/local/jdk-1.4.2/jre/plugin/i386/ns610/libjavaplugin_oji.so On

Re: C Compiler Prob

2006-03-30 Thread Alexander Farber
Did you install the compXY.tgz? On Thu, Mar 30, 2006 at 12:49:29PM +0200, oliver simon wrote: checking for C compiler default output file name... configure: error: C compiler cannot create executables

Re: pppoe (through pcn) stopped working in mid-February

2006-03-19 Thread Alexander Farber
The kernel and the rest were out of sync - that's why pppoe wasn't working. Sorry for the wrong report. On 3/9/06, Alexander Farber [EMAIL PROTECTED] wrote: I was following -current with my home gateway on a dual-CPU HP Kayak XAs (full dmesg attached), but since mid-February I'm unable to do

pppoe (through pcn) stopped working in mid-February

2006-03-09 Thread Alexander Farber
Hello, I was following -current with my home gateway on a dual-CPU HP Kayak XAs (full dmesg attached), but since mid-February I'm unable to do it anymore, because when I boot a newly compiled kernel, I get these repeating messages: Mar 9 15:31:59 gate /bsd: pppoe0: phase network Mar 9 15:31:59

writev() on a nonblocking Unix-domain SOCK_STREAM socket

2006-02-21 Thread Alexander Farber
Hi, do I need to retry writev() on a nonblocking Unix-domain SOCK_STREAM socket or will it always write out the exact number of bytes I wanted? And another question: is it possible to find out that such a socket has been disconnected before I call writev() on it (so that I reconnect it first)?

Re: httpd question - solved

2006-02-06 Thread Alexander Farber
And there is also ipcheck.py On 2/6/06, Keith Richardson [EMAIL PROTECTED] wrote: This will handle the pesty case of your IP changing. 1. dyndns.org - get a free subdomain to map to your IP. 2. ddclient package - updates your DNS whenever your IP changes.

Is unix domain UDP reliable?

2006-02-04 Thread Alexander Farber
Do datagrams arrive in order and without loss when using unix domain on OpenBSD?

Re: How to link my C module against libapreq.a?

2006-01-31 Thread Alexander Farber
, Alexander Farber [EMAIL PROTECTED] wrote: could someone please give me a hint, how to use libapreq from my Apache module? ... laptop:afarber {862} sudo /usr/sbin/httpd -X /usr/sbin/httpd:/usr/lib/apache/modules/mod_pref.so: undefined symbol 'ApacheRequest_new'

[GENERAL] How to change the default database for a user

2006-01-30 Thread Alexander Farber
Hello, I've created a user and a database both wrongly named phpbb. After that I have renamed both to punbb using ALTER DATABASE and ALTER USER. Now everything works fine, except I always have to specify the database when connecting (both using psql or the PQconnectdb() from my C-program):

Re: [GENERAL] How to change the default database for a user

2006-01-30 Thread Alexander Farber
Hi, On 1/30/06, Doug McNaught [EMAIL PROTECTED] wrote: Alexander Farber [EMAIL PROTECTED] writes: h754814:afarber {103} psql -U punbb psql: FATAL: database phpbb does not exist psql uses your Unix username as the default database if you don't specify one. but I do specify

Re: [GENERAL] How to change the default database for a user

2006-01-30 Thread Alexander Farber
Argh, I had phpbb in my env ( ~/.login) too: setenv PGDATA /var/postgresql/data setenv PGDATABASE phpbb setenv PGHOST /var/www/tmp setenv PGUSER phpbb Now everything makes sense (I was thinking about some kind of system table for default databases). Sorry and

Can't set timezone in KDE - only UTC is shown

2006-01-29 Thread Alexander Farber
Hi, does anydody please know, why can't I set timezone in KDE? When I right-click on the clock - Show timezone - Configure timezones then there is only one timezone - UTC. And the KDE clock is off by 1h. At the same time I think the clock is ok on my laptop: laptop:afarber {517} grep -i

Re: [GENERAL] Basic questions about PQprepare()

2006-01-28 Thread Alexander Farber
it the fastest method?) Regards Alex On 1/28/06, Tom Lane [EMAIL PROTECTED] wrote: Alexander Farber [EMAIL PROTECTED] writes: 4) How do I set the last PQprepare argument, the const Oid *paramTypes? You'd need to look up the OIDs of the parameter types. In practice it's usally a lot easier to write

[GENERAL] Basic questions about PQprepare()

2006-01-27 Thread Alexander Farber
Hello, I'm trying to write an Apache 1.3.29 module connecting to PostgreSQL 8.1.0 on OpenBSD -current and have few probably simple questions: When an Apache child is initialized, I'd like to establish connection to the database and to prepare 2 queries. And then later in the repeating response

Re: Debugging httpd

2006-01-27 Thread Alexander Farber
For the archives: On 1/22/06, Alexander Farber [EMAIL PROTECTED] wrote: how could I please compile the in-tree Apache with -ggdb added and -O2 removed? I've tried setting EXTRA_CFLAGS=-ggdb in src/Configuration, but that file seems not to be used. cd /usr/src/usr.sbin/httpd make -f

Re: Squid and named DNS

2006-01-27 Thread Alexander Farber
Hi, I use squid in a similar environment too and have learnt in comp.protocols.dns.bind that forwarders are evil. Remove that line from your named.conf. I also used adzap (and before - squeezeball) to filter out ads for my home network hanging on ADSL But then I stopped doing that and just

Debugging httpd

2006-01-22 Thread Alexander Farber
Hi, how could I please compile the in-tree Apache with -ggdb added and -O2 removed? I've tried setting EXTRA_CFLAGS=-ggdb in src/Configuration, but that file seems not to be used. Also I've tried looking at src/Makefile.bsd-wrapper and the .included /usr/share/mk/bsd.{own,obj,subdir}.mk, but

Re: OS FINGERPRINTS

2006-01-20 Thread Alexander Farber
http://www.openbsd.org/faq/pf/filter.html#osfp On 1/20/06, G.Stefan [EMAIL PROTECTED] wrote: What i have to do if i want to allow o n l y Windows OS to have acces on the internet ? I know that OS FINGERPRINTS can help me but how ?

Re: OpenBSD 3.8, fxp, device timeout

2006-01-20 Thread Alexander Farber
Hi, for comparison I have a similar PC at the same provider and it works fine (I have fxp at irq 11 though, and use -current). Also I had used the original floppy image to install OpenBSD: wget ftp://ftp.de.openbsd.org/pub/snapshots/i386/floppy38.fs dd of=/dev/hda if=floppy38.fs bs=1k

Re: CVSync servers not syncing?

2006-01-20 Thread Alexander Farber
Maybe because they are tagging it 3.9?

Re: OT: wrt OpenBSD, what's a good laptop

2006-01-16 Thread Alexander Farber
I have T41 too and it works ok (except for my iwi which loses connection often and an Edimax EW-7128g PCMCIA ral card, which just won't work - maybe because of pcibios 2.1) iwi0 at pci2 dev 2 function 0 Intel PRO/Wireless 2200BG rev 0x05: irq 11, address 00:15:00:23:e2:9c Jan 15 10:14:20 laptop

Re: 3Ware Escalade 7506-8 IDE RAID controller support under OpenBSD 3.8

2006-01-16 Thread Alexander Farber
On 1/14/06, Jim Razmus [EMAIL PROTECTED] wrote: Replace it with an LSI MegaRAID controller and don't look back. 3Ware is on the same boat with Adaptec. They will not share the documentation the developers need to fully support their controllers. man bioctl to read what fully supported

-current: Conflict between efax and mgetty+sendfax

2006-01-13 Thread Alexander Farber
laptop:afarber {526} sudo pkg_add mgetty+sendfax-1.1.34p2.tgz Collision: the following files already exist /usr/local/man/man1/fax.1 (efax-0.9p1) /usr/sbin/pkg_add: fatal issues in installing mgetty+sendfax-1.1.34p2

Re: dhcpd: Multiple interfaces match the same shared network

2006-01-09 Thread Alexander Farber
Argh I should have reread the (man dhcpd.conf, sorry! This has helped, thank you On 1/9/06, Rod.. Whitworth [EMAIL PROTECTED] wrote: What you need is 2 shared networks with individual names and their own subnet entries. Here is the relevant bit of my box doing exactly what you want ( 1

dhcpd: Multiple interfaces match the same shared network

2006-01-08 Thread Alexander Farber
Hi, why do I get this warning in /var/log/daemon: dhcpd: Multiple interfaces match the same shared network: re0 ral0 even though the dhcpd seems to work (ok, my WLAN over ral0 is unstable, but I'm not sure if this dhcpd warning is related to that problem): dhcpd: DHCPREQUEST for

[Flashcoders] sendAndLoad() and If-Modified-Since

2006-01-05 Thread Alexander Farber
Ok, thanks. And what about the If-Modified-Since header? Is it honored by Flash's sendAndLoad()? Does anybody please have an AS-code snippet using that header? Regards Alex On 1/4/06, Weyert de Boer [EMAIL PROTECTED] wrote: What I always understood about the working of the Flash player is that

Re: [Flashcoders] sendAndLoad() and If-Modified-Since

2006-01-05 Thread Alexander Farber
Hi, On 1/5/06, Weyert de Boer [EMAIL PROTECTED] wrote: // disable the caching... highscoreXml .sendAndLoad( highscorephp?timestamp= + new Date().getTime(), highscoreXml ); thanks however I mean something different than your trick with the changing URL: 1) Can you sendAndLoad() from a flash

[Flashcoders] sendAndLoad()ing Content-Encoding: gzip

2006-01-04 Thread Alexander Farber
Hello flashcoders, I'm new to Flash, but plan to develop an web-chat-alike Apache module which would communicate with a Flash client through sendAndLoad() (i.e. exchanging short messages in application/x-www-form-urlencoded format). From the docs/books I've understood that SSL communication is

Re: Gallery on OpenBSD 3.8: resolv.conf needed for email registration through remote smtp

2006-01-02 Thread Alexander Farber
You could try mini_sendmail_chrooted package On 1/2/06, Justin H Haynes [EMAIL PROTECTED] wrote: Thanks Nick Holmes and misc for http://www.openbsdsupport.org/GalleryInChroot.html. However, I need to use an external smtp server to handle registration emails.

piixpm0: timeout, status 0x1BUSY AND iic0: addr 0x48 00=17 01=00 ... ...

2005-12-31 Thread Alexander Farber
Hello, just FYI: I'm running -current on a dual-CPU HP Kayak-XAs 750 MT with a ral PCI card and regularly get these 2 messages: Dec 31 00:32:17 gate /bsd: Data modified on freelist: word 4 of object 0xd151560 0 size 0x100 previous type devbuf (0xdeadbeee != 0xdeadbeef) (is that

Separate dirs for source (.c .java) and build files (.class .o)

2005-12-18 Thread Alexander Farber
Hello, I realize, that the question about a separate build dir is asked often here and have also studied the manual and http://make.paulandlesley.org/ but I'm still not happy with my small Makefile pasted below (even though it kind of works) and I wonder, if I could get any improvement proposals.

Google ad: OpenBSD 2.6 changes

2005-12-15 Thread Alexander Farber
Just smth funny FYI: I read misc@ mails using GMail thorugh a web browser and I've noticed that it displays on the right side an ad OpenBSD 2.7 changes the main OpenBSD page www.openbsd.org or even 2.6 changes :-)

Re: disk encryption on login

2005-12-02 Thread Alexander Farber
I have one suggestion: if a user logs in and the path to home dir in the /etc/passwd is actually pointing to a file, then it is encrypted

Re: disk encryption on login

2005-12-02 Thread Alexander Farber
Ok, maybe not so excellent, because where that would be mounted :-/ On 12/3/05, Zachery Hostens [EMAIL PROTECTED] wrote: excellent idea. this is a perfect solution. On Fri, 2 Dec 2005 23:02:12 +0100, Alexander Farber [EMAIL PROTECTED] wrote: I have one suggestion: if a user logs

Re: disk encryption on login

2005-12-01 Thread Alexander Farber
On 12/1/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: As for some time, the size limit was on 8,2G, but according to a documentation that was posted at undeadly.org, this limitation doesn't exist anymore. I haven't verified it myself, though. A 140 gig file seems to work fine here:

Re: disk encryption on login

2005-12-01 Thread Alexander Farber
On 12/1/05, Zachery Hostens [EMAIL PROTECTED] wrote: he is saying use a random key for the disk. and encrypt this key with your password. so changing your account password you just have to re-encrypt the disk key. Where will that random disk key be kept? And isn't user password encrypted

Re: [squid-users] Re: AdZap: WARNING: Cannot run '/usr/local/bin/squid_redirect' process.

2005-11-27 Thread Alexander Farber
, Alexander Farber wrote: I've tried replacing the AdZap's squid_redirect script by a simple redirector from http://wiki.squid-cache.org/faq/redirectors and have the same problem. So it isn't AdZap's fault. Is running Squid in transparent mode AND using redirect_programs possible? I'm

Re: [squid-users] Re: AdZap: WARNING: Cannot run '/usr/local/bin/squid_redirect' process.

2005-11-27 Thread Alexander Farber
Oops my problem were caused by the pf (firewall) rule: antispoof quick for lo I don't know exactly why, but when I removed it, the redirector started worked and telnet localhost too... On 11/27/05, Alexander Farber [EMAIL PROTECTED] wrote: I'm running Squid 2.5.STABLE12 on OpenBSD

Re: OT: Transparent squid AND redirect_program possible?

2005-11-27 Thread Alexander Farber
Oops my problem were caused by antispoof quick for lo On 11/26/05, Alexander Farber [EMAIL PROTECTED] wrote: http://www.benzedrine.cx/transquid.html together with any kind of a redirect_program? I've tried first using adzapper.sf.net and then just a hello world redirector from http

[squid-users] AdZap: WARNING: Cannot run '/usr/local/bin/squid_redirect' process.

2005-11-26 Thread Alexander Farber
Hello, I'm running Squid 2.5.STABLE12 on OpenBSD -current (i.e. post 3.8) in transparent mode as described at http://www.benzedrine.cx/transquid.html It works fine - both as transparent proxy and also if I enter the IP and port explicitly as the proxy server in the Firefox browser settings.

[squid-users] Re: AdZap: WARNING: Cannot run '/usr/local/bin/squid_redirect' process.

2005-11-26 Thread Alexander Farber
I've tried replacing the AdZap's squid_redirect script by a simple redirector from http://wiki.squid-cache.org/faq/redirectors and have the same problem. So it isn't AdZap's fault. Is running Squid in transparent mode AND using redirect_programs possible? On 11/26/05, Alexander Farber [EMAIL

OT: Transparent squid AND redirect_program possible?

2005-11-26 Thread Alexander Farber
Does anybody else successfully use Squid in transparent mode exactly as described in the (evil ;-) HOWTO http://www.benzedrine.cx/transquid.html together with any kind of a redirect_program? I've tried first using adzapper.sf.net and then just a hello world redirector from

Re: Subtle Referrence to OpenBSD in a Simpsons episode

2005-11-22 Thread Alexander Farber
http://www.snpp.com/episodes/7F11.html ? On 11/22/05, Dan Roe [EMAIL PROTECTED] wrote: In one of the Simpson episodes Homer opens a cupboard to put something in it It is a mock up of a sticker that comes with the 'official' OpenBSD CDs Except all the fish are in plastic bags as if they were

An ftp command to fetch wildcarded packages

2005-11-22 Thread Alexander Farber
Hi, I have few scripts to save some work after an installation: the install.site (pasted on the bottom) asks me if I want to install a (D)esktop, (L)aptop or (S)erver and depending on my choice copies the needed packages into /root Then it puts -s into /etc/boot.conf (the idea is stolen from

Re: An ftp command to fetch wildcarded packages

2005-11-22 Thread Alexander Farber
Clarification: On 11/22/05, Chris Kuethe [EMAIL PROTECTED] wrote: I was not trying to come up with a subset of packages that would be installed by a commonly used profile. I prefer vi to emacs, windowmaker to kde or gnome, etc. Needless to say, building a set of packages that will be all

Re: OpenBSD 3.8 Bugzilla - does anyone have this running ok?

2005-11-16 Thread Alexander Farber
IMHO when you get situations like this: On 11/16/05, Trystan Negus [EMAIL PROTECTED] wrote: Symptom: Using a browser, configuration pages occasionally (1 in 5 refreshes, more or less) return an error 500 page, coupled with 'Premature end of script headers' error in Apache's error log. No

Re: Telnet daemon retired in 3.8 ?

2005-11-08 Thread Alexander Farber
1 arg. for telnetd: MUDs :-)

Re: Which SATA controller to purchase

2005-09-27 Thread Alexander Farber
Theo's reply was good :-) and you're just doing blah-blah here. The blah-blah about the integrated d/b was waste of time too. Why don't you shut up and implement your ideas yourself? On 9/27/05, Szechuan Death [EMAIL PROTECTED] wrote: Theo de Raadt wrote: Wow, free advice as to how I can

Re: using rpm after redhat_base pkg_add

2005-09-27 Thread Alexander Farber
I believe you have to use rpm2cpio blah.rpm | cpio -iv because there is no real rpm d/b on OpenBSD On 9/27/05, Zeigler White II [EMAIL PROTECTED] wrote: I successfully added the redhat_ base package, but now I'm having a problem using the rpm command. I am trying to rpm the file jdk-1_5_0_05-

Re: problem in clcs driver?

2005-09-26 Thread Alexander Farber
I have same problem on T22. The 3.7's bsd.rd boots, but bsd not: clcs0: AC97 write fail (DCV!=0) for add=0x00 data=0x I tried disabling PCI and CPU power management in BIOS as suggested here: http://archives.neohapsis.com/archives/openbsd/2005-02/1093.html but that didn't

Re: problem in clcs driver?

2005-09-26 Thread Alexander Farber
Oops I should have read the original mail, sorry

Re: in-kernel PPPoE and linkup-script

2005-09-21 Thread Alexander Farber
Can't you put !stuff into /etc/hostname.pppoe0 ? On 9/21/05, Steffen Michalke [EMAIL PROTECTED] wrote: No, really nothing else than /etc/hostname.pppoe0. If you need something special (eg. dynamic DNS) you could create a process which is observing this interface.

Re: in-kernel PPPoE and linkup-script

2005-09-21 Thread Alexander Farber
, got: %s\n, buf)); if(bread == -1) On 9/21/05, Martin Dommermuth [EMAIL PROTECTED] wrote: * Alexander Farber wrote/schrieb: Can't you put !stuff into /etc/hostname.pppoe0 ? nope, I tried that. Seems not to be executet on reconnect. I now got it working with the daemon mode of ez-ipupdate

Connecting to HSCSD/GPRS

2005-09-20 Thread Alexander Farber
Hello, I'd like to share my working ppp.conf here (for Vodafone Germany) and would like to learn any good tricks from other mobile users. I run the ircomm (of the comms/birda-1.1 package on a 3.7 -stable installed on a Thinkpad T41) to connect to a Nokia 9300 commie through infrared port.

2100 mini-PCI connects, but 2 PCMCIA ral's do not

2005-09-18 Thread Alexander Farber
Hello, I have a Thinkpad T41 laptop with 3.7 stable and the original Intel 2100 Mini-PCI card which connects fine to a ZyXEL Prestige 600HW ADSL/wireless-Router with a ZyAir 100 card. I can't reconigure ZyXEL (no password is given to me by my employer) and have to use WEP with a static key,

Re: Slightly OT, but chroot related: Security with mini_sendmail

2005-09-16 Thread Alexander Farber
Hi, dunno about your problem, but you shouldn't make your web pages or programs writtable by the www user. Make them belong to root.bin or root.daemon Regards Alex On 9/16/05, L. V. Lammert [EMAIL PROTECTED] wrote: I have perms on mini_sendmail set to www,www (same as Apache), .. it's

Re: OpenBSD website Design.

2005-09-15 Thread Alexander Farber
The current design is recognizable and nice. And I read it just fine in lynx

Cisco VPN client (using .pcf and RSA SecurId card)

2005-09-14 Thread Alexander Farber
Hello, I login at work using a Cisco VPN client on Windows or Linux and entering a passcode generated by an RSA SecurId card. The connection information seems to be contained in a .pcf file: [main] Description=XXX XXX Host=XXX.XXX.XX.XXX AuthType=1 GroupName=XXX EnableISPConnect=0

Longest IP address

2005-09-07 Thread Alexander Farber
Hi, MAXHOSTNAMELEN in /usr/include/sys/param.h is the longest host name length, right? Is there a similar constant for IP addresses (also for IPv6)? Also, why is char b[18] used in /usr/src/lib/libc/net/inet_ntoa.c? The length of XXX.XXX.XXX.XXX + 0 is two bytes less. Regards Alex

Re: New device sporting OpenBSD

2005-08-30 Thread Alexander Farber
Don't they use ZynOS? 2005/8/30, Johan P. Lindstrvm [EMAIL PROTECTED]: While making friends with my ZyXEL ZyWALL P1 adapters, using tcpdump -novelf (pf.os as of 3.7-release), I noticed that they are identified as running OpenBSD.

Using write(fd[1], NULL, 0) to detect if pipe's reading end is not closed

2005-08-29 Thread Alexander Farber
Hi, is calling write(fd[1], NULL, 0) a good way to check if a pipe's reading end is still not closed without writing any data to it? Or should I better use poll() or anything else for that? I have tried it and it seems to work (returns -1 and EPIPE if the reading end is closed), but I've

Re: after remote upgrade to -current, can't log in with ssh

2005-08-26 Thread Alexander Farber
Maybe you did miss the p in tar pxvfz? You could try unpacking the sets again 2005/8/26, -f [EMAIL PROTECTED]: 1. yesterday downloaded -current 2. new kernel to / 3. reboot 4. tar pxvzf *38.tgz (except x* and etc) 5. manually merged /etc 6. reboot integer ssh [EMAIL PROTECTED] [EMAIL

Re: A question to lib/libc/gen/daemon.c

2005-08-22 Thread Alexander Farber
Thanks. I've also read the chapter about dup's from the Stevens book and realized, that you always have to check the fd number you're going to close() after a dup2() But how can the argc be less than 1? When is it the case? After an exec()? 2005/8/22, Todd C. Miller [EMAIL PROTECTED]: Nope.

A question to lib/libc/gen/daemon.c

2005-08-21 Thread Alexander Farber
In the file /usr/src/lib/libc/gen/daemon.c if (!noclose (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) { (void)dup2(fd, STDIN_FILENO); (void)dup2(fd, STDOUT_FILENO); (void)dup2(fd, STDERR_FILENO); if (fd 2)

Re: PVM 3.4.5 on 3.6-release: compilation/library problem

2005-08-20 Thread Alexander Farber
Hi, I actually use PVM on Linux... 2005/8/20, [EMAIL PROTECTED] [EMAIL PROTECTED]: cc -DIMA_BSD386 -I../../include -I../../tracer -I../../src -DSOCKADHASLEN -DNOREXEC -DRSHCOMMAND=\/usr/bin/rsh\ -DHASSTDLIB -DNEEDMENDIAN -DHASERRORVA S -o pvm cons.o cmds.o job.o trc.o -L../../tracer/BSD386

Re: How to patch a physically weak system recommended use of sudo?

2005-08-20 Thread Alexander Farber
Or maybe put SUDO=sudo -c staff into /etc/mk.conf and also put yourself (the non-root user) into the wsrc group 2005/8/20, viq [EMAIL PROTECTED]: hmm, 'sudo -c builders make build', nice. But... I am already member of class 'staff', which in login.conf is described:

Re: ipcheck.py

2005-08-19 Thread Alexander Farber
Have you run --makedat ? 2005/8/19, Blake Darche [EMAIL PROTECTED]: Traceback (most recent call last): File /usr/local/bin/ipcheck.py, line 5025, in ? _main(sys.argv) File /usr/local/bin/ipcheck.py, line 4386, in _main (fileip, filehosts) = datfile.read() File

Re: Installing a library rpm: what is the last step please?

2005-08-17 Thread Alexander Farber
sudo /usr/local/emul/redhat/sbin/ldconfig -r /usr/local/emul/redhat -v has worked, nevermind

Re: ppp does not update resolv.conf

2005-08-16 Thread Alexander Farber
Are any DNS servers sent at all? You could try putting shell echo DNS0 DNS1 /tmp/dns.txt or similar... And what are the /etc/resolv.conf permissions? 2005/8/16, Vladislav Belogrudov [EMAIL PROTECTED]: with enable dns ppp does not write anything, with added resolv rewrite file gets

Re: pf stops URLs without a trailing slash

2005-08-16 Thread Alexander Farber
Or maybe it is one of those? http://httpd.apache.org/docs/1.3/mod/core.html#usecanonicalname http://httpd.apache.org/docs/1.3/dns-caveats.html 2005/8/15, Zoong PHAM [EMAIL PROTECTED]: Since I use a reverse proxy server in front of Apache, it redirects the requests to different ports that were

Re: Should sockaddr_storage always be used for accept?

2005-08-11 Thread Alexander Farber
2005/8/11, Henning Brauer [EMAIL PROTECTED]: sockaddr_in would suffice, but it is bad style. with sockaddr_storage, you ar eon the safe side, even when you add v6 support later, or v8, or whatever the future brings, so play safe and use sockaddr_storage, that's what it is for. Thanks. Yes, I

pwd looks strange with amd

2005-08-10 Thread Alexander Farber
Hi, I'm trying to setup an OpenBSD PC in a mostly RH Linux environment, where files are served by several NetApps. There's no NIS, but LDAP. login_ldap works already, thanks to this mailing list for the help. But the automounting not quite: I have my home dir /home/afarber mounted, but a pwd

Re: skey with apache?

2005-08-10 Thread Alexander Farber
Or you could try to use a ticket - then you wouldn't need SSL: login once using OTP, get a cookie (or hidden form field, or URL) protected by MD5 and send that cookie around in the next requests http://www.modperl.com/book/chapters/ch6.html#Cookie_Based_Access_Control 2005/8/10, Dirk-Willem van

Suggestion for queue.h

2005-08-09 Thread Alexander Farber
Hi, what I dislike about OpenBSD's queue.h is that you can't take an element from a SLIST and put it into a SIMPLEQ and vice versa. For example in an iterative server I'm programming: For each client I have a SIMPLEQ for outgoing messages (coming from the server and the other clients) which I

Re: Suggestion for queue.h

2005-08-09 Thread Alexander Farber
2005/8/9, Claudio Jeker [EMAIL PROTECTED]: On Tue, Aug 09, 2005 at 11:38:38AM +0200, Alexander Farber wrote: what I dislike about OpenBSD's queue.h is that you can't take an element from a SLIST and put it into a SIMPLEQ and vice versa. Why? SIMPLEQ is a superset of SLIST. Just use

Re: Suggestion for queue.h

2005-08-09 Thread Alexander Farber
09 Aug 2005 12:56:01 +0200, Artur Grabowski [EMAIL PROTECTED]: Show me the timing results of a real-world application where you measured a difference in performance. Show me an example how will this change result in corrupted queues and strange bugs which are difficult to spot. Also if there

The SLIST_REMOVE_NEXT macro

2005-08-08 Thread Alexander Farber
- why does it need its first argument (the head), is it just for some historical reasons? The only file which seems to use it seems to be /sys/kern/sysv_sem.c Also I wonder about the grudgingly ok here, why grudgingly? http://archives.neohapsis.com/archives/openbsd/cvs/2003-12/0398.html Just

Re: login_ldap

2005-08-08 Thread Alexander Farber
and one workaround mentioned is to make kcheckpass setuid. But this is actually the case with the stock 3.7 KDE-package, so this doesn't help 24 -rwsr-xr-x 1 root bin 11108 Mar 18 10:55 /usr/local/bin/kcheckpass Regards Alex 2005/8/4, Alexander Farber [EMAIL PROTECTED]: blowfish

Re: Negotiating a license for Sun Java on OpenBSD?

2005-08-08 Thread Alexander Farber
That is what you do for /ports/devel/jdk/ . So what is your problem? ;-) 2005/8/8, Edd Barrett [EMAIL PROTECTED]: I think it would be a good idea. Even if you had to download an openbsd package from sun's site.

Re: 3.7 Kernel pppoe not accepting incoming connections, userland works 100%

2005-08-06 Thread Alexander Farber
Is it really ok to enable nat both on ppp and pf? 2005/8/1, Steve Williams [EMAIL PROTECTED]: /etc/pf.conf ( for kernel pppoe) : ext_if=pppoe0 nat on $ext_if inet - ($ext_if) pass all /etc/rc.local /usr/sbin/ppp -nat -ddial dsl

Will read/write eventually block on POLLIN/POLLOUT?

2005-08-05 Thread Alexander Farber
Hi, I'm trying to move an iterative server (a small multiplayer card game) from using select() to poll() (BTW is it a good idea at all?) I have to use iterative design instead of a forking one, because it is easier to move players between tables and the chatroom this way. So it is important

Re: login_ldap

2005-08-04 Thread Alexander Farber
2005/8/4, John Wright [EMAIL PROTECTED]: /usr/libexec/auth/login_-ldap -d afarber should be more verbose. Thank you, now I get: blowfish# /usr/local/libexec/auth/login_-ldap -d afarber Password: couldn't get x-ldap-server reject Aug 4 10:11:43

Re: login_ldap

2005-08-04 Thread Alexander Farber
) # requesting: ALL # # afarber, People, bonmp.XXX.com dn: uid=afarber,ou=People,o=bonmp.XXX.com shadowLastChange: 12947 userPassword:: e2NyeXB0fXXkMW1xaDkxSUo2OEE= gidNumber: 5525 mail: [EMAIL PROTECTED] loginShell: /bin/tcsh employeeNumber: 20164153 shadowFlag: 0 uid: afarber cn: Alexander Farber

Re: login_ldap

2005-08-04 Thread Alexander Farber
2005/8/4, John Wright [EMAIL PROTECTED]: On Thu, Aug 04, 2005 at 10:47:00AM +0200, Alexander Farber wrote: # base o=bonmp.XXX.com with scope sub Maybe the scope? If I'm reading the code correctly the default is onelevel (or -s one on the ldapsearch command line) but the default

Re: Ammunition needed to defend OpenBSD/pf

2005-08-03 Thread Alexander Farber
Hi, I have 1 argument for D-Link and against OpenBSD: D-Link can DSL. OpenBSD can not. So you have to buy at least a DSL modem for OpenBSD. And since you are buying a DSL modem, why not add 20 Euros and buy a DSL-router? At least for a small home network. Regards Alex

Sniffing pppoe

2005-08-01 Thread Alexander Farber
Hi, probably a common situation to some people here: I have an ADSL-router, a box locked down by my ISP. I could reset it, but then I'll lose the connection data. Is there a way to connect my OpenBSD PC to it and to sniff the data (esp. username, password) it sends? The pppoe man page

Re: Sniffing pppoe

2005-08-01 Thread Alexander Farber
I already asked. This won't happen 2005/8/1, Yanko Karkalichev [EMAIL PROTECTED]: If you only need to redirect port 22 to internal IP, phone your ISP and ask them for this redirect. I have made it on every ADS that I have and thay never reject my request.

Re: make /dev/pf world readable?

2005-07-27 Thread Alexander Farber
I dunno if it's safe or not, but you could use sudo or su username -c there. 2005/7/27, Jan Sepp [EMAIL PROTECTED]: This script should not run as root. If I run it as a non-privileged user, I get an error. Basically, the problem is in the mode bits for /dev/pf, which are crw---, owner

Re: make /dev/pf world readable?

2005-07-27 Thread Alexander Farber
And/or you run su username -c command as root from its crontab, /etc/ppp/ppp.linkup, /etc/rc.local or wherever 2005/7/27, Lars Hansson [EMAIL PROTECTED]: On Wed, 27 Jul 2005 10:26:46 +0200 Jan Sepp [EMAIL PROTECTED] wrote: Thanks, but that would require me to hard-code the password in my

Re: Create my own shell? SOLVED

2005-07-27 Thread Alexander Farber
:-) What about ctrl-Z, does that secure gateway menu script ignore that too? 2005/7/27, Abel Talaversn Estevez [EMAIL PROTECTED]: Many thanks to all people of this mailing list for all the replies. Finally, I have edited the files I've downloaded from http://mongers.org/gw_menu and make

Re: Create my own shell? SOLVED

2005-07-27 Thread Alexander Farber
Or if a user presses ctrl-C before the trap command is executed? 2005/7/27, Alexander Farber [EMAIL PROTECTED]: :-) What about ctrl-Z, does that secure gateway menu script ignore that too? 2005/7/27, Abel Talaversn Estevez [EMAIL PROTECTED]: http://mongers.org/gw_menu

Re: Create my own shell? SOLVED

2005-07-27 Thread Alexander Farber
a buildhost ) and echo Unknown command or host: $line. ( tried \characters ) But didn't manage to break it :-) Yet!! Regards Alex 2005/7/27, chaton [EMAIL PROTECTED]: On Wed, 27 Jul 2005 15:46:00 +0200 Alexander Farber [EMAIL PROTECTED] wrote: Or if a user presses ctrl-C before

Re: '.' in username

2005-07-20 Thread Alexander Farber
Maybe because of chown foo.bar filename ? 2005/7/20, Thanos Tsouanas [EMAIL PROTECTED]: I just found out that chsh complains if a username has a '.' in it: % sudo chsh foo.bar [ ... ] chsh: '.' is dangerous in a login name I'm sure there's a reason (why? regexps involved?) but I

Re: Where to get a good seed for srandom()

2005-07-19 Thread Alexander Farber
Hi, that is an interesting (off-)topic :-) May I ask the very last question? If % is not good enough for getting random values in a range, then what is? I see a lot of arc4random() % ... when grepping the /usr/src on OpenBSD. And my (probably too naive) approach to shuffling 32 cards has been:

Where to get a good seed for srandom()

2005-07-18 Thread Alexander Farber
Hi, I'm developing a small multiplayer card game on OpenBSD (but also try to keep it at least compilable on Linux). After 32 cards have been shuffled, each of 3 players gets 10 cards. At the moment I use the sum of time()s when any data has been received from a player as the seed value:

Re: get bittorrent to work via pf

2005-07-18 Thread Alexander Farber
Hi, I use a different approach and instead of hardcoding port numbers for mldonkey and BitTorrent run those as a separate user on my lil' firewall: altq on $ext_if priq bandwidth 100Kb queue \ {tcp_ack, ssh_login, other, p2p} queue tcp_ackpriority 7 priq queue ssh_login priority 5

Re: Where to get a good seed for srandom()

2005-07-18 Thread Alexander Farber
Thank you for both good advices. Until I have money to pay an expert and my card game isn't using real money... Would arc4random() % 32 be the usual way to get random integers from 0 to 31, or are some bits of the returned value more random than the others? And what is the highest number

<    7   8   9   10   11   12   13   14   >