Re: boot sector f*ed
Hi PJ, On Thu, Aug 13, 2009 at 09:53:06AM -0400, PJ typed: I apologize for the lengthy explanation below, but perhaps it will give some insight on what is see from this end: You probably won't get much helpfull response. When troubleshooting, it's allways best to try to break down the problem in tiny bits and solve them one by one, asking specific questions when you get stuck. snip to be in a position to do what is required. For one thing, I do not know how I can save testing output to an external file when I am working on a temporary shell on the problem machine. Perhaps you could indicate what I should be doing or where to look for information. What kind of temporary shell? You mean the fixit console or livecd? You can allways redirect the output to some file in /tmp for example and then scp it to another computer. Or mount_nfs or even mount_smbfs a windows share and save the output there. And in checking the disks with fdisk, fsck, and even running that weird regenerate progam... I wasn't able to come up with anything significant... that is, the configuration of the disks seemed to be ok, the boot sector was ok as it was able to boot but the when the system was being mounted something went wrong... and looking back, I vaguely recall something about a soft update or something like that which seems to indicate some stumbling block in the software and not hardware. soft updates inconsistencies perhaps? They can be caused by faulty hardware. Or by power failure. What did you do about them? In such a situation the system will drop you into single user mode where you can do an fsck. All that I am seeing is that there is either a problem with the bios (which I even reinstalled and that changed nothing in the functioning) or something is going on with the OS. How exactly did you see this? And you reinstalled the BIOS ??? I now have set up another instance of 7.2 on a different disk on the 2.4ghz machine and I already find something strange... after installing the minimum configuration, I installed the packages - samba3.3.3, cvsup-without-gui, and smartmontools. I tried to run smartctl and cvsup but nothing worked. The path variable was correct but the shell just would not pick up on it. I had to start the programs from their directories. That just doesn't make sense. It does if your shell is csh (the default shell for root). You must issue the rehash command to re-read everything in your path after installing new software. Ruben ___ 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: boot sector f*ed
On Thu, Aug 13, 2009 at 03:12:27PM -0400, PJ typed: Ruben de Groot wrote: Hi PJ, On Thu, Aug 13, 2009 at 09:53:06AM -0400, PJ typed: I apologize for the lengthy explanation below, but perhaps it will give some insight on what is see from this end: You probably won't get much helpfull response. When troubleshooting, it's allways best to try to break down the problem in tiny bits and solve them one by one, asking specific questions when you get stuck. snip to be in a position to do what is required. For one thing, I do not know how I can save testing output to an external file when I am working on a temporary shell on the problem machine. Perhaps you could indicate what I should be doing or where to look for information. What kind of temporary shell? You mean the fixit console or livecd? You can allways redirect the output to some file in /tmp for example and then scp it to another computer. Or mount_nfs or even mount_smbfs a windows share and save the output there. And in checking the disks with fdisk, fsck, and even running that weird regenerate progam... I wasn't able to come up with anything significant... that is, the configuration of the disks seemed to be ok, the boot sector was ok as it was able to boot but the when the system was being mounted something went wrong... and looking back, I vaguely recall something about a soft update or something like that which seems to indicate some stumbling block in the software and not hardware. soft updates inconsistencies perhaps? They can be caused by faulty hardware. Or by power failure. What did you do about them? In such a situation the system will drop you into single user mode where you can do an fsck. All that I am seeing is that there is either a problem with the bios (which I even reinstalled and that changed nothing in the functioning) or something is going on with the OS. How exactly did you see this? And you reinstalled the BIOS ??? I now have set up another instance of 7.2 on a different disk on the 2.4ghz machine and I already find something strange... after installing the minimum configuration, I installed the packages - samba3.3.3, cvsup-without-gui, and smartmontools. I tried to run smartctl and cvsup but nothing worked. The path variable was correct but the shell just would not pick up on it. I had to start the programs from their directories. That just doesn't make sense. It does if your shell is csh (the default shell for root). You must issue the rehash command to re-read everything in your path after installing new software. Ruben Thanks Ruben, Frankly, I don't know an;ymore what I'm doing nor what is going on... it used to be so easy to set up FBSD even if it took a lot of time to compile... but it seems to be getting less and less intuitive and user friendly. How can I break thinkgs up into little bits and pieces without just smashing the whole show to bits and pieces ;-) There are so many problems, I have not idea where to begin. I did a little bit of that for you. You could start by answering the specific questions I asked you above right below where I asked them instead of trying to answer all in just one paragraph and failing that. Oh, yes, csh ? I always set up bash and it never gave me such problems. Did the same just now and again, no problems with the shell. Right now I'm just fixing up a new set up of 7.2 on another disk and we'll see what that does. Then I will re-setup the files I had recoverd, see if they work and then do a last and final install of everything and see if that works. And if there is a problem then, then I will know for sure that it is not a hardware problem. In using computers, in general, over the past 20 plus years I have only had maybe 6 crashes... mostly Winbloz and about 3 with FBSD - and only 1 was because of defective hardware (a disk)... the rest was power outs and 1 erroneous shutdown... not bad ... and I never lost irreplaceable files. :-) Took some time to recover them, but recover did as recover should. Oh, well, before I give it all up, I'm giving it one final shot. PJ ___ 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: please help to uninstall FreeBSD!!!
On Mon, Aug 10, 2009 at 01:00:31PM -0700, Raisa Brokhshtut typed: Hello, ? My old desktop has FreeBSD that I have never used. One of the friends of my son installed it long ago, but no one used that PC since then. Now I want to get rid of this program and to install Windows.?Every time when I boot this PC it prompts?for a user login which I don't know. This guy who intalled FreeBSD is not around anymore. ? Anyway, I would greatly appreciate if you would guide me how to uninstall that program. I don't have windows reskue cd. So I want to completly remove that FreeBSD from my PC and to install?the Windows operating system from CD. The FreeBSD program can not be uninstalled. Live with it. ___ 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: location of user crontab files?
On Tue, Aug 11, 2009 at 07:21:08PM -0400, Karl Vogel typed: On Tue, 11 Aug 2009 10:50:54 -0400, Identry iden...@gmail.com said: I Where are user crontab files stored in the file system? I want to make I sure this info is backed up. They're in /var/cron/tabs. If you're using individual crontab files, be sure to rename /etc/crontab or you might have duplicated cronjobs running simultaneously. I don't think this is sound advise. Leaving /etc/crontab (the system crontab) to do the system maintenance jobs it is supposed to do and putting additional scripts and jobs in user tabs is normal practice and won't cause any problems. Ruben ___ 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: Some problems with Marvell Yukon NIC
On Wed, Aug 05, 2009 at 06:44:15PM +0300, Anton typed: Hello freebsd-questions, Found the solution here: [1]http ://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2008-10/msg01065 .html But do not know how to apply patch :-( The URL you posted says it all: Save attached patch to /path/to/patch #cd /usr/src/sys/dev/msk #patch -p0 /path/to/patch/msk.watchdog.diff And rebuild your kernel. What else is there to know? ___ 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: ftps ?(off-topic)
On Tue, Aug 04, 2009 at 10:14:39AM +0200, Mark Stapper typed: It would be nice to hear more she-calling on these lists though... So maybe mailing list etiquette should state anyone posting to a mailing list should be referred to as she like we do with boats and institutions like the court... (well in dutch we do...) However, Frederique should imply the person who started this thread is female. Either that or cette person has cruel parents... Bollocks! ___ 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: Building FreeBSD Current on Debian Squeeze AMD64
On Wed, Jul 22, 2009 at 12:12:14PM +0200, Oliver Pinter typed: debian not only linux based: http://www.debian.org/ports/kfreebsd-gnu/ http://www.debian.org/ports/#nonlinux That's not the point. FreeBSD is a complete OS. Not just a kernel and some tools Why would you want to replace all the userland programs with GNU ones? Anyway, having a FreeBSD kernel does not give you the tools to compile the OS. good playing with this ports, but this port have not FreeBSD feeling... and stability and support, and etc... So, install FreeBSD. (redirected to -questions) On 7/22/09, Justin Hibbits jr...@alumni.cwru.edu wrote: On Wed, Jul 22, 2009 at 1:58 AM, Yuriy Kolesniokovyuriko...@gmail.com wrote: I wish to build Current system (for the athlon64-sse3) and to install it in /sda1. I already checked-out svn sources in /sda1/src. What the next step? ___ freebsd-curr...@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org You can't compile FreeBSD on debian (I was able to compile many of the tools from BSD a while back, against glibc, but that's a different story). Your only way to install FreeBSD is to do a binary install from the CDs. - Justin ___ freebsd-curr...@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org ___ freebsd-curr...@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-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
Re: Bruteblock
On Wed, Jul 22, 2009 at 10:06:35PM -0400, Grant Peel typed: Hi all, I am trying to get Bruteblock working on FreeBSD 6.2 and hav e run into a snag. It appears that Proftpd is not sending log detail to the auth or authpriv facility. I have a simple Proftpd setup, with the SysLog directive completely removed, and according to the man, it is supposed to be sending to authpriv. Do I get this straight? You have the syslog directive removed and still expect it to use syslog? One of us needs coffee ;) Also, I have the bruteblock syslog.conf setup as per the manual as well. Proftpd and Bruteblock were both setup from ports. Has anyone ran into a similar issue? If so, how did you get around it? -Grant ___ 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 ___ 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: Sendmail to duplicate messages
On Tue, Jul 21, 2009 at 11:58:55AM +0700, Olivier Nicole typed: Hi, What rule, in what file should I set-up to have my mail sendmail mail server duplicate all messages to another mail server? I am in the proces sof setting-up a new mail server; in the meantime I want all messages arriving to my current mail server under sendmail to be duplicated to the new mail server (under postfix, for all it matters); so the mailboxes are keept in sync. How can I do that with sendmail? maybe milter-bcc ? Ruben ___ 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: Samba PDC with LDAP backend
On Mon, Jul 20, 2009 at 06:22:50PM +0800, Ruel Luchavez typed: But to some one out their who has an idea to this you are very much WELCOME:-) I think this was mentioned before, but did you have to edit /usr/local/etc/smbldap-tools/smbldap.conf and /usr/local/etc/smbldap-tools/smbldap_bind.conf Ruben ___ 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: Samba PDC with LDAP backend
On Sat, Jul 18, 2009 at 12:53:40PM +0800, Ruel Luchavez typed: On Sat, Jul 18, 2009 at 11:43 AM, Olivier Nicole o...@cs.ait.ac.th wrote: Still it does not start the LDAP, hers my /etc/rc.conf: slapd_flags='-h ldapi://%2fvar%2frun%2fopenldap%2fldapi/ ldaps:// 192.168.5.0/ ldap://127.0.0.1/;' You try to start slapd with ssl/tls support (ldaps), but I didn't see any TLS parameters in the slapd.conf file you posted. Ruben ___ 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: Should DNS be on same server as webserver?
On Tue, Jul 14, 2009 at 12:46:43AM -0400, Steve Bertrand typed: John Almberg wrote: On Jul 13, 2009, at 6:27 PM, Karl Vogel wrote: You can fix the security problems by dumping Bind and using djbdns. What security problems? This one ? :) http://blogs.zdnet.com/security/?p=2812 I actually do use djbdns. Super easy to use, once you figure it out. ...to run a DNS cache with djbdns, it doesn't take much figuring out: (snipped rather long installation instructions) To enable DNS cache with bind: echo named_enable=YES /etc/rc.conf /etc/rc.d/named start Ruben ___ 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: Make a FreeBSD instance within FreeBSD with Jail...
On Sun, Jul 12, 2009 at 06:20:55AM -0700, Diego Montalvo typed: I had a hosting company which allowed me to run my own apps in an instance of a jail what if I wanted to make a dynamic jail that has its predefined softwares installed? How does one go about duplicating this dynamically? Like on demand? Try the ezjail port. ___ 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: jail/system crash with mount_unionfs
On Thu, Jul 09, 2009 at 10:37:40AM -0400, Jim typed: As you can see, there is a work around, so I'm not that /bothered/ by this, but it'd be nice to know what's up. Am I doing something wrong? If not, can anyone replicate this? Should I file a bug report? according to the manpage, unionfs is still buggy in 7.2: BUGS THIS FILE SYSTEM TYPE IS NOT YET FULLY SUPPORTED (READ: IT DOESN'T WORK) AND USING IT MAY, IN FACT, DESTROY DATA ON YOUR SYSTEM. USE AT YOUR OWN RISK. BEWARE OF DOG. SLIPPERY WHEN WET. I'm using nullfs to do what you're trying and it just works. regards, Ruben ___ 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: FTP Server for individual client spaces
On Fri, Jul 10, 2009 at 03:10:24PM +0100, RS Wood typed: I run a small engineering company* that exchanges large files (CAD, etc.) with clients, and I want to keep the docs off my email server by setting up a stand alone FTP server where each client can upload and download its relevant files. As such, my own users/employees should be able to reach every client???s FTP space but each client should only be able to reach his own. As my users finish a doc, they place it in that client???s FTP directory and the client can log in and get it. As such, I don???t want any form of unauthenticated FTP. Do your employees need access through the same ftp server? You could serve them any other way (e.g. internally export the entire ftp tree as an NFS or CIFS share). ___ 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: FTP
On Tue, Jul 07, 2009 at 11:06:12AM -0500, Kevin Kinsey typed: Jos Chrispijn wrote: Ruben de Groot wrote: On Tue, Jul 07, 2009 at 11:27:53AM +0200, Jos Chrispijn typed: - use truss on the server process Thanks for your reply; can you explain what you mean with this? Jos Chrispijn He's assuming you have control of the FTP server ... I wasn't assuming. It's what he said. Ruben ___ 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 HA file cluster possibilities
On Tue, Jul 07, 2009 at 03:54:23PM -0500, Adam Vande More typed: On Tue, Jul 7, 2009 at 7:17 AM, RIck van der Zwet rvdz...@transip.nlwrote: d) drbd: http://www.drbd.org/ - Does anyone has a working (alternative) setup on FreeBSD? Any other solution/setup I am missing? Using external hardware/software is all-right as long I am able to connect to FreeBSD with it and it leaves no single point of failure. Thanks in advance! /Rick freebsd-questions@freebsd.org Is there a problem with the DRBD and Heartbeat config? Ehm... It doesn't exist in FreeBSD? regards, Ruben ___ 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 HA file cluster possibilities
Hi Rick, On Tue, Jul 07, 2009 at 02:17:46PM +0200, RIck van der Zwet typed: I been (re)searching and reading what the options are with regards to H(igh) A(vailablility) file storage using FreeBSD, but cannot yet find a proper working solution. Any advice welcome! I've sought for proper working solutions as well, and unfortunately found much the same obstacles as you have. a DRBD port to FreeBSD would be great, but I think it would be a lot of work. The way it can recover from a broken mirror makes it a killer app IMO. This is what I ended up doing: - Use application level mirroring where possible - Use rsync where (small) data loss is acceptable - buy dedicated hardware where HA storage is mandatory regards, Ruben ___ 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: FTP
On Tue, Jul 07, 2009 at 11:27:53AM +0200, Jos Chrispijn typed: FreeBSD 6.4-STABLE I do an upload to this server (plain ftp, not thru a php script) and every time the upload gets stuck at approx. 1,2 Gb. There is no shortage on capacity on that slice and I don't get a log report on ftp failure. Could you tell me what I can do to, at least, get an idea why these uploads get stuck? Thanks Standard debugging? - increase logging level on the ftp daemon - sniff network traffic - use truss on the server process Ruben ___ 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: how to do a live migration of a freebsd box to another box with rsync
On Sun, Jul 05, 2009 at 06:18:03PM +0200, insrc typed: Hi, I'm used to migrate GNU/Linux system from one box to another by booting the second box with a liveCD (like systemrescueCD for example) and by copying the / filesystem (using the ssh transport) with rsync. I would like to do the same for BSD system but i have two issues: - as the UFS write support is still experimental in the Linux kernel, it seems that i've to use a BSD liveCD but i can't find one :-/ I heard about frenzy ( http://frenzy.org.ua/en/ ) but the homepage says that the project is no longer maintained ! - i'm wondering how to restore the bootloader after copying the files on the second box. On linux, i can use the grub-install script to do the job but i'm a bit lost on FreeBSD :-) Assuming you install on the first slice of the first disk (ad0s1), to install the bootloader and bootstrap code: fdisk -B ad0 bsdlabel -B ad0s1 Ruben ___ 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: IPFW: Need some help
On Sun, Jun 28, 2009 at 02:14:00PM +0300, Anton typed: Hello all, I'm new to *nix and now, while configuring IPFW Firewall on FreeBSD 7.2 = has stuck in a problem: After packet from my network is passed to natd demon - it is returning t= o firewall (it is normal, as I think ;-) ), but I see another abnormal thin= g: when it is returned to firewall, it does not come under rule which state= s to allow packet from some host in my network, and goes under rule which a= llows packets from FreeBSD box. This is normal. That's because the source address has allready been rewritten by natd, so your rule about a specific host in your network doesn't apply anymore. Try moving this rule before the divert rule in your ipfw config. Ruben ___ 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: The question of moving vi to /bin
On Thu, Jun 25, 2009 at 01:36:31AM -0400, John L. Templer typed: ed is an interactive program, and it has always been considered as such, at least since BSD 4.2. Way back then there were three main editors, ex, vi, and ed. If you had a nice video terminal then you used vi. But if you were stuck using a hard copy terminal like a Decwriter, then you used ex. And ed was the simplified (dumbed down) editor for newbies. ed is an interactive program because the user interacts with it. You give it command, it does something, you give it some more commands, it does more stuff, etc. Interactive does not mean screen based. ed can be used very well non-interactively. e.g. a script made by diff -e can be piped to it. Ruben ___ 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: slowloris, accf_http and POST requests
On Mon, Jun 22, 2009 at 05:35:56PM -0500, Dan Nelson typed: In the last episode (Jun 22), Ruben de Groot said: My main concern here is if applying the trivial patch I posted would break anything in the http protocol layer. And if not, why isn't the POST method included in the http accept filter in the first place? The filter wasn't designed to be an anti-DOS tool; it was an optimization to save some context switches at the beginning of every request. POSTs are I know this. But in this particular case, it *works* as an anti-DOS tool. And a pretty good one too. infrequent, always include extra trailing data after the headers, and end up doing more processing at the server end than plain GET or HEADs, so buffering the first line of the request doesn't really help much. Well, it helps against this slowloris script. And I don't see it costing much. You're better off adding a request-max-time limit to your webserver, or doing random-drops of existing connections if you get close to your fd or thread limit. I'm exploring these options as well, but they have their own drawbacks. Anyway, since it doesn't look like I'm breaking anything by buffering the POST headers, I'm gonna maintain this as a local patch until something better comes along. Thanks for your input, Ruben ___ 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: slowloris, accf_http and POST requests
On Tue, Jun 23, 2009 at 05:23:19PM +0200, Fabian Keil typed: Ruben de Groot mai...@bzerk.org wrote: On Mon, Jun 22, 2009 at 05:35:56PM -0500, Dan Nelson typed: In the last episode (Jun 22), Ruben de Groot said: My main concern here is if applying the trivial patch I posted would break anything in the http protocol layer. And if not, why isn't the POST method included in the http accept filter in the first place? The filter wasn't designed to be an anti-DOS tool; it was an optimization to save some context switches at the beginning of every request. POSTs are I know this. But in this particular case, it *works* as an anti-DOS tool. And a pretty good one too. How did you verify this? By using the slowloris script against my own servers. Running the script from a single client pc: ./slowloris.pl -dns myserver.domain.tld -port 80 -timeout 2000 -num 500 -tcpto 5 -httpready brings apache to its knees. No more connections are accepted as there are allready MaxClients processes running (150) and they're all just sitting there waiting. With accf_http just slightly adjusted as posted, nothing happens at all. Apache just doesn't see the connections, even with multiple clients running the DOS. (Off course, there'll be memory buffers in the kernel filling, but from that I haven't seen any negative side effects yet) accf_http doesn't require a complete request but will also pass the connection to the userland if its buffer is full. Haven't seen that, but it sounds sane. If you continue to send headers that will happen eventually and if you're impatient, you simply have to send a bit more headers at the beginning to reach the application faster. Yes. A real and prolonged DDOS is hard to counter. And the accept filter was not designed for that. It was just an observation about this particular script. cheers, Ruben ___ 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: Changing my login directory
On Fri, Jun 19, 2009 at 03:05:55PM -0400, Karl Vogel typed: On Wed, 17 Jun 2009 21:13:32 -0400, Steve Bertrand st...@ibctech.ca said: S I've got a couple of jails now that I use exclusively for Perl S development. As soon as I log into the box via SSH, my first command is S _always_ cd devel/something. I'd like to make it so that '~' remains S /home/steve, but when I log in, I would prefer to be dropped immediately S into /home/steve/devel. This reminded me of how I deal with lots of directories. If you have a project with files spread all over the place, here's a way to navigate between 20-25 directories with no more than 3-4 keystrokes. First, install the grabchars program: http://examples.oreilly.com/upt3/split/grabchars/grabchars/ It's very useful for capturing and validating keystrokes from within a shell script. For example: ans=`grabchars -q'Answer y or n: '` will print Answer y or n: , and it will store your reply after pressing just one key, no need to hit return. Combine this with a function to change your current directory and you're in business; it has to be done in a shell function rather than a separate script because it modifies your current shell working directory. No need for any external programs. The following shell script does the same: more readkey.sh echo -n Press any key: stty cbreak -echo KEY=$(dd bs=1 count=1 2/dev/null) stty -cbreak echo echo echo You pressed the \$KEY\ key. Ruben ___ 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
slowloris, accf_http and POST requests
Hi, Can enybody explain why the http accept filter only works on GET/HEAD requests? The reason I ask is I was checking up on the slowloris DOS tool (http://ha.ckers.org/slowloris/slowloris.pl) and, like others before me, found that the -httpready switch (which uses POST instead of GET) renders the accf_http module useless as a protection against this kind of attack. Recompiling the module for caching POST requests as well (see small patch below) seems to work. At least the slowloris tool can no longer be used to DOS apache. Also, I've checked that CGI script using POST still work. But I hesitate to go and use this in production. There must have been a reason why POST was not implemented in the http accept filter and doing this might break things? Ruben # cd /usr/src/sys/netinet # diff -u accf_http.c.orig accf_http.c --- accf_http.c.orig2007-11-11 13:32:12.0 + +++ accf_http.c 2009-06-22 10:42:35.0 + @@ -38,7 +38,7 @@ #include sys/sysctl.h #include sys/socketvar.h -/* check for GET/HEAD */ +/* check for GET/HEAD/POST */ static void sohashttpget(struct socket *so, void *arg, int waitflag); /* check for HTTP/1.0 or HTTP/1.1 */ static void soparsehttpvers(struct socket *so, void *arg, int waitflag); @@ -178,6 +178,9 @@ case 'H': STRSETUP(cmp, cmplen, EAD ); break; + case 'P': + STRSETUP(cmp, cmplen, OST ); + break; default: goto fallout; } # cd /usr/src/sys/modules/accf_http/ # make make install # kldload accf_http ___ 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: slowloris, accf_http and POST requests
On Mon, Jun 22, 2009 at 08:45:23AM -0700, Norbert Papke typed: On June 22, 2009, Ruben de Groot wrote: Can enybody explain why the http accept filter only works on GET/HEAD requests? The reason I ask is I was checking up on the slowloris DOS tool (http://ha.ckers.org/slowloris/slowloris.pl) and, like others before me, found that the -httpready switch (which uses POST instead of GET) renders the accf_http module useless as a protection against this kind of attack. With the POST request, the client sends additional data after the header. This additonal data is the form data (the x-www-form-urlencoded encoded name-value pairs). The filter will allow the request to proceed to the application after the header as been received but before the form data has been received. A slowloris attack could exploit this fact by sending a complete header but then slowing doling out the form data. Apparently, the current incarnation of the slowloris script doesn't do that, so adding POST to the methods handled by the http accept filter would protect me from script kiddies who want to attack my servers by this method. My main concern here is if applying the trivial patch I posted would break anything in the http protocol layer. And if not, why isn't the POST method included in the http accept filter in the first place? To protect against this scenario, the filter would need to be modified to collect the form data as well. Of course, it doesn't stop there. The filter would also have to deal with multi-part forms. Yes. It's an ongoing struggle. And the filter would probably soon become too complex to maintain in a kernel module :( Disclaimer: This is based on cursory reading of the code. Thank you for you input. Ruben ___ 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 mass deployment
On Fri, Jun 19, 2009 at 11:01:42AM +, Martin Thomas typed: Hello list, I'd like to install FreeBSD on a number of machines, automatically and unattended over Ethernet via PXE. I'm quite familiar with FAI, which does a great job for Debian, and I'd like to know whether there is something similar for FreeBSD too. So far I only found a guide for jumpstart. Does anybody has experience with that matter and can provide some tools. Read the sysinstall manpage. You can automate allmost everything using an install.cfg file. Ruben ___ 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: The 'uname' output
On Fri, Jun 19, 2009 at 02:40:47PM +0200, Harry Matthiesen Jensen typed: I have wondered why my build number in the 'uname' output not is incrementet for each build I make of the system, it shows '#0' all the time. Example output of 'uname -a': FreeBSD mugin-LAN.localhost 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Thu Jun 18 12:41:05 CEST 2009 r...@mugin-lan.localhost:/usr/obj/usr/src/sys/MUGIN i386 I had same issue on the system when I ran -STABLE. Just a little hint from someone will be appreciatet;-) Do you remove /usr/obj between builds? Ruben ___ 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: Cannot login as root, exited on signal 11
On Mon, Jun 15, 2009 at 02:37:54PM -0400, Glen Barber typed: On Mon, Jun 15, 2009 at 9:27 AM, Ruben de Grootmai...@bzerk.org wrote: If so, reboot into single-user mode, and change it back. Why reboot? You can su -s /bin/tcsh How can you change the shell if you cannot log in? That's why I suggested single-user mode. He said he could log in as a normal user. ___ 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: Cannot login as root, exited on signal 11
On Sun, Jun 14, 2009 at 04:11:12PM -0400, Glen Barber typed: On Sun, Jun 14, 2009 at 9:06 AM, Ungaunga...@yahoo.com wrote: Hi all This is FreeBSD 7.2 on i386. After a custom compiled from sources installation, root cannot log in but normal users can log in. Here are the messages in /var/log/messages: Jun 14 00:44:58 xxx login: ROOT LOGIN (root) ON ttyv0 Jun 14 00:44:58 xxx kernel: pid 757 (login), uid 0: exited on signal 11 Jun 14 00:45:00 xxx kernel: pid 760 (cron), uid 0: exited on signal 11 (core dumped) Note, cron also fails. When try to log in, it checks the password correctly, ie. if I type a wrong password for root, it says Incorrect ..., but when type the correct password, it simply come out and prompts the login prompt. It looks like something is missing required for the root to log in. I'm using bash shell. Any ideas? I'll make the (probably correct) assumption that you've changed root's default shell to bash. If so, reboot into single-user mode, and change it back. Why reboot? You can su -s /bin/tcsh This is one of the best reasons not to screw around with the root account. Agree. I should bookmark this thread for when (not if) this discussion comes up again. Ruben ___ 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: Compiling in sound driver in kernel
On Fri, Jun 12, 2009 at 04:39:19PM +0200, Bernt Hansson typed: Polytropon said the following on 2009-06-12 12:54: On Fri, 12 Jun 2009 04:45:59 +0200, Bernt Hansson be...@bah.homeip.net wrote: Mel Flynn said the following on 2009-06-12 01:23: FreeBSD 7.2-STABLE #0: Thu Jun 11 21:56:24 CEST 2009 r...@fqdn:/usr/obj/usr/src/sys/GENERIC ^^^ Did you edit GENERIC Yes. Added sound and snd_hda Polite note: This is NOT the way to create a custom kernel. The handbook mentions that it's advised to create a copy of GENERIC and work with that. The handbook, IMO, is wrong. The copy of GENERIC will in the course of upgrades deviate from the original one. You won't pick up improvements, like the scheduler change from 4BSD - ULE What I do is include the GENERIC file and override things with nooption/nodevice directives. Ruben ___ 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 7.2 Installation Manual
On Fri, Jun 12, 2009 at 06:25:07PM +, Paul Schmehl typed: Is there a right way to do things in Unix? Yes there is. But the burden is on the developer/packager. The right way to do things is to leave the choice to the end-user. ___ 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: Program update(s)
On Fri, Jun 12, 2009 at 09:47:39PM +0200, Jos Chrispijn typed: Can someone tell me why I have to recompile all related programs when I upgrade to a newer version of Perl? How easy it would be that all these 'to be recompiled' programs only were linked to just Perl instead of Perl.x.x.x. Or is that a complete wrong way of approach? Can you guarantee that all these programs will work with perl.y.y.y ? ___ 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: kernel compiling questions
On Tue, Jun 09, 2009 at 05:19:01PM -0700, Jason Helfman typed: Hi. I am trying to figure out how when making the kernel that the number is incremented. For example my system reads: FreeBSD 7.2-RELEASE #4 I have my own kernel that works, however I would like to have it read this: FreeBSD 7.2-RELEASE #0 Is there a way to resolve this? If you build your kernel (#4) using make buildkernel: cd /usr/obj/usr/src/sys/${KERNCONF} vi vers.c // edit SCCSSTR and VERSTR make cp kernel /boot/kernel cheers, Ruben ___ 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: What server hardware are you buying from the big companies these days?
On Tue, Jun 09, 2009 at 08:43:08AM +0200, Wojciech Puchar typed: Buy second hand branded hardware from ebay (allegro in poland). It's usually hardware that was used in offices and replaced by more modern ones. It's already tested!!! You could get high-end PIII with 512MB RAM for $30 at most, the only thing you may need to add is larger drives, but 20GB isn't uncommon. P4 with 1GB RAM and 40GB drive is for 60-70$ here. All this branded second-hand hardware have nice and small desktop cases, are usually quite silent and just works out of the box. For good software like FreeBSD, PIII/1000 is already lightning-fast. And from what i read on that list, 90% of your servers run quite simple task that even Pentium 100 will do. I'm hosting websites on 5-10 years old SUN hardware. V100/120 with ultrasparc II 400-650 Mhz. Just put in some new disks and memory, no sweat. They allmost never break down. And I like the openboot and LOM facilities. A simple serial connection is all you need. What do you use for remote management of those desktop cases? Ruben ___ 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: General and specific make questions
On Mon, Jun 08, 2009 at 01:58:57PM -0400, Chuck Robey typed: Lars Eighner wrote: I have some sources which may or may not exist. My target should be rebuilt if a source exists that is younger than the target. But sources that do not exist should be ignored and make should not be perplexed over how to create them. How do I express that kind of relationship? Have a look at /etc/mail/Makefile. I think that does what you want, e.g. it will rebuild the genericstable.db, but only if the genericstable file exists and is newer. Ruben ___ 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: Date representation as YY/DDD or YYYY/DDD
On Sat, Jun 06, 2009 at 02:05:39PM +0200, Wojciech Puchar typed: rsync isn't bloated and it's well written IMO. It still does only one job, and it does it well. As you say, most common tasks can still be done with only short options. This would change if some developer decided to add other, unrelated functionality. But that's harder if you want to maintain short options for the common tasks. Having only long options would place no such restrictions on bloating. what program you mean about having only long options? Wasn't referring to any particular program's. mplayer is an example though. But that's not my point. ___ 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: Date representation as YY/DDD or YYYY/DDD
On Fri, Jun 05, 2009 at 11:08:23PM -0500, Kirk Strauser typed: Chris Rees wrote: Traditional: % tar xzvf bluurgh.tgz GNU recommended: $ tar --extract --verbose --gunzip --file bluurgh.tgz Seriously, why are long options encouraged? Scripting. I almost always use long options when writing scripts I might use again later so that 6 months later I don't have to remember what some single-letter option meant. I pretty much never use them on the command line, though. Agreed, the long options *as an alternative* can be descriptive in scripts, tutorials, howto's etc. The other reason often mentioned, there being not enough letters in the alphabet to cover all possible options, in my opinion advocates bloated software (one program can do it all), which goes against the Unix paradigm of making small programs that do one task exceptionally well and just chaining these together. Ruben ___ 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: Date representation as YY/DDD or YYYY/DDD
On Sat, Jun 06, 2009 at 11:49:51AM +0200, Wojciech Puchar typed: what some single-letter option meant. I pretty much never use them on the command line, though. Agreed, the long options *as an alternative* can be descriptive in scripts, tutorials, howto's etc. The other reason often mentioned, there being not enough letters in the alphabet to cover all possible options, in my opinion advocates bloated software (one program can do it all), which goes against the Unix paradigm of making small programs that do one task exceptionally well and just chaining these together. you exaggerate a bit. Maybe :) for example rsync does have 26 options but most make sense for program that is dedicated to one task, and it isn't against Unix paradigm. rsync isn't bloated and it's well written IMO. It still does only one job, and it does it well. As you say, most common tasks can still be done with only short options. This would change if some developer decided to add other, unrelated functionality. But that's harder if you want to maintain short options for the common tasks. Having only long options would place no such restrictions on bloating. Ruben ___ 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: Sponsoring FreeBSD
On Mon, Jun 01, 2009 at 05:48:29PM +0200, Wojciech Puchar typed: every donation is highly welcome. Please have a look at http://www.freebsdfoundation.org/donate/sponsors.shtml As you can see, every donor is mentioned, no matter how small the amount. They'll display a link for donations of $5,000 or more, and a logo for donations of $10,000 or more. finally clear rules! Exactly what i said in the beginning - add two zeroes to 50-100$ to get good advert. Do you suffer from memory loss? This is exactly what Boris Samorodov said on may 27, and you responded to his message, so you didn't miss it. The rules were clear from then on. And again, they don't offer 50-100$ one time, they offer it PER MONTH. I agree with a lot of your statements on this list, but here I think your still trying to cover up for a too fast response. let it go. even better: say you're sorry. Ruben ___ 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: Flamewar ( was: Sponsoring FreeBSD)
On Thu, May 28, 2009 at 01:08:30AM +0200, Wojciech Puchar typed: I still cannot understand why you - an active, experienced and knowledgeable FBSD user - would want to scare off potential donors for the once again please reread that post. it wasn't even potential donor, but potential advert buyer. But if i'm really wrong, i will mail him and say that he can buy advert on FreeBSD webpage for 100$. I just re-read it. 1. Monthly sponsoring of around 50 to 100 USD That's *monthly*. It's not insubstantial as you keep implying, and it even shows commitment, not a one-time shot. Hardly spam in my book. What we ask for in return for our sponsorships is a short mentioning on the site somewhere with a link to our website. They don't want an advert but a link. That's what you get for 5000 USD/year on http://www.freebsdfoundation.org/donate/sponsors.shtml So, instead of being pissed on, they might have been persuaded to pay a little more, get their link and help the project as a whole. Missed opportunity. ___ 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: USB-to-serial adapter configuration
On Mon, May 18, 2009 at 04:07:09PM +, Saifi Khan typed: Hi all: How does one configure settings for USB-to-serial adapter in FreeBSD ? The one i have purchased is http://www.usbgear.com/computer_cable_details.cfm?sku=CHEAP-SERIALcats=199catid=482%2C1303%2C199%2C461%2C106%2C1009%2C601 On the Gentoo box, 'lsusb' displays it as: Bus 002 Device 003: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port Your adapter should be recognised by the uplcom driver. put uplcom_load=YES in loader.conf or load manually. Check dmesg for the device name. Also, I think cu is good enough ;) Ruben i have to access a headless AMD64X2 box running FreeBSD 7.2-STABLE, from a FreeBSD 8.0 laptop. So far, i've used 'cu' and '/dev/cu0a', but thats because both the systems had a serial port interface. The key info i'm looking for is: . what is the driver to load . what is the device entry to look for . is 'cu' good enough or i need to install some other tool thanks Saifi. ___ 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 ___ 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: Wake-on-LAN support in FreeBSD?
On Tue, May 12, 2009 at 06:36:31AM -0700, Peter Steele typed: FUD, read ifconfig(8) There is no mention of wake-on-LAN in the man page for ifconfig in 7.0. I'd be interested in seeing if the 8.0 man page has added anything. It has: wol, wol_ucast, wol_mcast, wol_magic Enable Wake On Lan (WOL) support, if available. WOL is a facil- ity whereby a machine in a low power state may be woken in response to a received packet. There are three types of packets that may wake a system: ucast (directed solely to the machine's mac address), mcast (directed to a broadcast or multicast address), or magic (unicast or multicast frames with a ``magic contents''). Not all devices support WOL, those that do indicate the mechanisms they support in their capabilities. wol is a syn- onym for enabling all available WOL mechanisms. To disable WOL use -wol. Ruben ___ 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: does the DRBD can running on freebsd ?
On Wed, May 13, 2009 at 10:32:17AM +0800, yibin.ji...@gmail.com typed: hello I hava a question, can the DRBD run on freebsd ? And does the FreeBSD have DRBD-likes the soft on freeBSD? Unfortunately not. Allthough you can mirror a filesystem over the network using a combination of ggate and gmirror, the automatic resynchronisation in the right direction and failover features of drbd are missing. Ruben ___ 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: lost+found
On Sat, May 02, 2009 at 11:06:27PM +0200, Polytropon typed: On Sat, 02 May 2009 15:45:13 -0400, PJ af.gour...@videotron.ca wrote: [~]# cd /tmp/lost+found/#123456 [/tmp/lost+found/#123456]# ls Okay, it's empty. [/tmp/lost+found/#123456]# cd .. Strange, why does .. lead you from /tmp/lost+found/#123456 to /tmp/lost+found/#123456, just as if cd wasn't executed? [/tmp/lost+found/#123456]# cd #123456 this returns and empty directory) Does /tmp/lost+found/#123456 contain another #123456? And why does this cd lead you to your (root's) home directory? Probably because the # is interpreted as comment. I can reproduce this in a bourne shell; not in (t)csh. Ruben ___ 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: how to deceive programs as if I were a local user?
On Sat, Apr 25, 2009 at 05:34:16PM +0900, Kouichiro Iwao typed: On Thu, Apr 23, 2009 at 11:17:11AM -0700, Chris Cowart wrote: This error means the program tried to look up some name information for your UID number and failed. You need to configure the data source in /etc/nsswitch.conf: group: files cache ldap passwd: files cache ldap I've already set like you showed. But, not for /compat/linux/etc/nsswitch.conf . Configuring nsswitch.conf in linux emulation environment, the program worked properly. I did't know I had to set /compat/linux/etc/nsswitch.conf for linux binary compatibility. That's interesting. Was there a /compat/linux/etc/nsswitch.conf before? I think that if it's not there, the linux emulation layer should take the system's /etc/nsswitch.conf as default. But I might be wrong(TM). ___ 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: OpenLDAP/SSH : sshd[1414]: fatal: login_get_lastlog: Cannot find account for uid 1000
On Fri, Apr 24, 2009 at 12:34:01PM +0200, Ivan Voras typed: O. Hartmann wrote: Since several months after a upgrade from OpenLDAP 2.4.11 to the most recent one I have trouble login in on machines which authenticate users via OpenLDAP. I've just installed a fresh machine with FreeBSD 7.2 amd64 and OpenLDAP 2.4.latest and it works. The only difference might be that I'm using nscd. Have you modified /etc/pam.d files? I had a problem with nss_ldap and openldap over ssl. This patch fixed it: http://www.freebsd.org/cgi/query-pr.cgi?pr=133501cat=ports Ruben ___ 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: how to deceive programs as if I were a local user?
On Thu, Apr 23, 2009 at 04:32:29PM +0900, Kouichiro Iwao typed: Hi. I'm going to connect to the remote server with nxclient. But, net/linux-nx-client does't work with non-local (NIS or LDAP) account. Connecting the remote server, nxclient says connection error and I found out that it caused by nxssh. If nxssh was executed by a NIS account, nxssh says, [m...@trueno ~]$ nxssh You don't exist, go away! How to deceive programs as if I were a user in /etc/master.passwd? I don't know anything of nxssh, but it sounds like a pam issue. Ruben ___ 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: Sudden /libexec/ld-elf.so.1: Shared object libintl.so.8 not found, required by errors
On Fri, Apr 10, 2009 at 08:40:51PM -0300, Agus typed: Hi guys, Yesterday i suddenly start receiving this errors... first i noticed it cause i couldnt login and bash threw it.. then su... /libexec/ld-elf.so.1: Shared object libintl.so.8 not found, required by -su Then i remove bash and change to tcsh and was ok... but then again, this one when using sendmail.. /libexec/ld-elf.so.1: Shared object libsasl2.so.2 not found, required by send-mail I didnt update anything... and it was all running fine for months... what can it be? the files i have are.. -rwxr-xr-x 1 root wheel92K Mar 11 15:26 libsasl2.so.2 lrwxr-xr-x 1 root wheel13B Mar 11 15:26 libsasl2.so - libsasl2.so.2 -r--r--r-- 1 root wheel39K Aug 23 2008 libintl.so.8 lrwxr-xr-x 1 root wheel12B Aug 23 2008 libintl.so - libintl.so.8 What is the output of ldconfig -r ? ___ 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: Can I resume the perl upgrade?
On Sun, Apr 12, 2009 at 12:05:50PM -0700, David Southwell typed: On Saturday 11 April 2009 17:20:56 Chris Rees wrote: I hope it is not too far off topic but: Can anyone tell me how to fix this one: Stale dependency: bsdpan-Pod-Perldoc-3.15 - perl-5.8.9_2 (lang/perl5.8): can't convert nil into string My update to 10 seems to be OK except for this.. I cannot find its origin so do not know what to deinstall and reinstall It would also be great to get all bsdpan into the pkgdb with their origins.. is there any way to do that? Thanks in advance David Perhaps you should start a new thread. Chris Tried that last week to no avail So asmy question was vaguely on topic I had hoped someone might be able to contribute something useful!! If you can send a reply-all to the list, you certainly can send a new question, can't you? Hijacking threads *is* considered rude/ignorant/dumb by some. That said, Pod::Perldoc seems to be part of perl-5.8.[8-9] on my systems, so unless you're doing some nonstandard things with this package, I suggest you just pkg_delete the bsdpan package and get on with it. Ruben No such luck!! Thank you for your contribution most helpful David ___ 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 ___ 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: cannot kill process with kill -9
On Thu, Apr 09, 2009 at 01:26:51PM -0600, Joshua Gimer typed: You might also find a little bit information about what the process is waiting on by attaching to it with strace (in ports under devel) (strace -p PID). why would you install strace from ports? truss does the same job. Ruben On Thu, Apr 9, 2009 at 5:47 AM, Eray Aslan eray.as...@caf.com.tr wrote: On Thu, Apr 09, 2009 at 09:41:31AM +0200, Pieter Donche wrote: I have a mount_nfs process that refuses to get killed : # ps -jaxw | grep mount root ? 60342 ? ? 1 60289 60289 ? ?0 D ? ? ?? ? ?0:00.00 mount_nfs [...] How to I get this process killed? reboot. ?You can't kill a process with a D flag. ?Google for uninterruptible sleep. -- Eray ___ 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 -- Thx Joshua Gimer ___ 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 ___ 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 freebsd on windows
On Wed, Mar 25, 2009 at 11:30:31AM +0530, Mehul Ved typed: On Wed, Mar 25, 2009 at 10:59 AM, Leslie Jensen les...@eskk.nu wrote: For testing purposes I've used Suns VirtualBox under Windows, it runs under Linux as well. (Free)BSD installs well and it can give you a first impression on how it works. There are some settings that you must keep in mind, disk size can't be dynamic. You can use the VirtualBox forums for more information. /Leslie VirtualBox is really great for no-hassles virtualisation for newbies. I rely on it too. But, I haven't had a good experience with FreeBSD 7.0 on VirtualBox, too many kernel panics. And it's not just me there are lots of people who have had the same problem with no evident solution. I am not discouraging this solution but informing of a problem that I have faced. If there's a work around for that, I'd be happy to try it myself. What worked for me was enabling VT-x/AMD-V in Virtualbox. No more panics since. Ruben ___ 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: mod_php5 and apache22
On Tue, Mar 24, 2009 at 03:20:26PM +0100, Mel Flynn typed: On Tuesday 24 March 2009 15:13:33 Christoph Kukulies wrote: I moved a site from some FreeBSD 5.2 or something (with apache2 and mod_php5 at that time, about 3 years old) to 7.1 (Beta though) and apache22. Now I don't find something that looks like mod_php5 in /usr/ports/www. Has that changed somehow? lang/php5 with APACHE_MODULE ticked in options dialog. The apache module compile is off by default since somewhere in 2006 and I keep forgetting that occasionally :( So people using pkg_add -r php5 will not get mod_php5. This is probably not what they expected. Would it not be a good idea to (re)introduce www/mod_php5? Ruben ___ 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: Locked myself out.. AGAIN!!
On Sun, Dec 07, 2008 at 06:02:26AM -0500, Michael Powell typed: Redd Vinylene wrote: Thanks guys. But I guess I'm all outta luck: $ sudo -s /libexec/ld-elf.so.1: Shared object libutil.so.5 not found, required by sudo [snip] Don't know if this would help but you might try creating a file called libmap.conf in /etc and place in it: libutil.so.5 libutil.so.7 This advise is only helpful if you have root allready =) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Mass find/replace...
On Thu, Dec 04, 2008 at 12:52:02PM +, Vincent Hoffman typed: Marc Coyles wrote: I need to do a find / replace throughout the entire of the /home/horbury/public_html directory... I've tried 'find /home/Horbury/ -type f | xargs grep -l base64_decode' to get a list of the files that require the operation performing, but it comes up with an error (xargs: unterminated quote) after a few results... try using find /home/Horbury/ -type f -print0| xargs -0 grep -l base64_decode (not certain it'll fix it but good practice anyway) Or just: grep -r base64_decode /home/Horbury Ruben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Anybody familiar with publib??
On Sat, Nov 29, 2008 at 02:51:23PM -0800, Gary Kline typed: People, I found a neat function in publib that should do what I want, but adding either #imclude publib.h // as per man publib OR #include /usr/local/include/publib.h fails. Yes, I am adding -lpub to the enc of gcc. Still bombs. Anybody know why? Prev'ly when I've used the publib functions, I've had to move/copy a slew of them into my private build. Be nice if this just-worked! Fails/bombs how? We're not all psychics here ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD and hardware??
On Tue, Nov 18, 2008 at 12:23:24PM +0100, Wojciech Puchar typed: once again i repeat - FreeBSD is not windows replacement. it's unix. All nice GUI for unices turned to be bad idea, every windows user will say it's poor compared to windows. and they are right. I totally disagree. Please note that your *opinion* doesn't become truth, even when you keep repeating it over and over. there's a whole spectrum of window/desktop environments to choose from for every conceivable usage or need. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD and hardware??
On Tue, Nov 18, 2008 at 02:16:37PM +0100, Wojciech Puchar typed: All nice GUI for unices turned to be bad idea, every windows user will say it's poor compared to windows. and they are right. I totally disagree. Please note that your *opinion* doesn't become truth, i exactly repeat opinion of LOTS of windoze users that tried any unix GUI. And you fail miserably at noticing a single opinion of any unix user here who works happily in a (mostly) GUI environment. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: root /etc/csh
On Fri, Nov 14, 2008 at 10:20:26PM +0100, Polytropon typed: On Fri, 14 Nov 2008 11:49:35 -0800 (PST), GESBBB [EMAIL PROTECTED] wrote: By the way, this also works with Perl as you no doubt know. I cannot count how many times I have installed a Perl script and then had to modify the 'shebang' in order to get it to work in FBSD. I know that I could probably make some symbolic links or whatever; however, I feel that, that is the wrong way to get things to work properly. That's correct. Adding symlinks to structures controlled by the package management system or the OS itself can lead into problems. Well, the link is created automatically by the port, so you should never have had to modify any 'shebang' # ls -l `which perl` lrwxr-xr-x 1 root wheel 24 Nov 27 2007 /usr/bin/perl - /usr/local/bin/perl5.8.8 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Recover Deleted File FreeBSD 7.0
Restore from your backups (you DO have backups, don't you?) ;) Otherwise, there's no easy way to do this. If the data you deleted is very valuable, first thing to do is umount the filesystem, preventing the data of the deleted files from being overwritten by any new filesystem writes. There might be some companies specializing in recovering your data, but it'll cost you money. Ik the files are in ascii, you might get some of the data back by using strings, grep, dd and other tools on the disk device. G'luck, Ruben On Thu, Aug 14, 2008 at 04:55:37PM +0800, Ruel Luchavez typed: Hi List, Do you have an idea how to recover a deleted directory or files in freebsd 7.0? I'm very sad that one of the important directory in my server was deleted accidentally. the command is use to delete the directory is: rm -r folder Any idea guys how to recover it? Thanks in advance FreeBSD rocks:D ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Group Limits
On Thu, Jul 31, 2008 at 01:24:02AM +0200, Roland Smith typed: On Thu, Jul 31, 2008 at 07:32:23AM +1000, Michael Christie wrote: Can any one advise me how to expand the number of groups allow on freebsd I think my default it is 16, I need to make it 50 to 100 The number 16 is from /usr/include/sys/syslimits.h. But my /etc/group has 37 groups without problems. That's not the point. The limit is not on the total number of groups, but on the number of groups a user can be a member of. Ruben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: filesystem information
On Mon, Jun 30, 2008 at 03:12:59PM -0400, Jim typed: I'm aware of nothing but a UPS can completely protect me from an outage. I was just wondering why that ONE file system was misbehaving, and the rest are prefectly fine - which seemed odd. Additionally, why were files that are read, but not written, being lost? I can understand losing files that are being written, but if there's a file that has bene written several restarts ago, not written to thereafter, and has been fine ever since, why is it being lost now? Just a thought, but in normal circumstances files *are* written to, even when they are just being read: the access time is updated (unless you mount the fs with the noatime flag). Ruben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Vsftpd rotate logs with newsyslog...
On Wed, Jun 18, 2008 at 11:29:13AM -0400, David Robillard typed: Well, i take this opportunity also to ask about Apache toowhich signal should i send? A HUP signal should work for apache. Actually, the Apache documentation says that one must use USR1 instead of HUP to send a gracefull restart instead of a hangup. This is to let the children httpd processes some time to finish their transactions before the master restarts. It is also for this reason that the logs should not be compressed by newsyslogd. Well yes, this is precisely the reason why we use a SIGHUP (equivalent to apachectl restart) instead of a SIGUSR1 (apachectl graceful). We don't really care about a few broken client connections since the logs are rotated at a quiet time. Of course, YMMV. regards, Ruben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Vsftpd rotate logs with newsyslog...
Hi Agustin, On Tue, Jun 17, 2008 at 03:52:55PM -0300, Agus typed: Hi fellows... I am wanting to rotate logs for vsftpd using newsyslog...My question is, does vsftpd needs to get the HUP or any signal after rotation? I run it from inetd so i guess the HUP should be sent to inetd.pid right? No, when run from inetd, no HUP is needed. New instances of vsftpd spawned by inetd will automatically log to the new logfile. Well, i take this opportunity also to ask about Apache toowhich signal should i send? A HUP signal should work for apache. regards, Ruben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: cutecom requires sudo to work, but minicom works without - permissions?
On Tue, Apr 15, 2008 at 09:11:33AM -0500, Derek Ragona typed: At 07:39 PM 4/14/2008, Steve Franks wrote: I have two terminal programs - cutecom and minicom, both built from ports with no tweaks. Minicom will fire up and hit the serial port just fine, but cutecom can't open it except with sudo. I tried tweaking devfs.conf (as well as a straight chmod on /dev/cuad0), and it doesn't seem to rectify the problem. I've also got several linux ports that hit usb devices via libusb that won't connect without sudo - obviously, I'd like not to have to run user-type apps with sudo on my system Thanks, Steve You may want to try chown the device as well as chmod'ing it. If this works you will likely need a script to reset these settings on reboot. You can add a cron job under root to do this @reboot. A more convenient option is putting the user who starts whateven terminal program into the dialers group Ruben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: DNS /etc/namedb owner hell
On Wed, Feb 20, 2008 at 10:09:53AM +0200, Deian Popov typed: Hello, I have the following problem with bind: it is configured to run as bind:bind and after every reboot of the system all files and directories under /etc/namedb become owned by root:wheel so bind is unable is unable to update it's zone files after dhcpd leases IP to any given client. How to fix either owner, or set somewhere that the owner of this folder, subfolder and files is my DNS server? Try setting named_chroot_autoupdate to NO in your rc.conf Ruben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CVSup update or upgrade
On Thu, Jan 31, 2008 at 07:57:49PM -0600, Chris typed: NOTE: I don't use mergemaster unless I go from say 6.3 to 7.0 Not wise. New features and fixes are applied to configuration files and rc scripts regu;arly. You'll probably miss them. STABLE is the security fix branch. Wrong. According to the handbook: 23.2.2.1 What Is FreeBSD-STABLE? FreeBSD-STABLE is our development branch from which major releases are made. Changes go into this branch at a different pace, and with the general assumption that they have first gone into FreeBSD-CURRENT for testing. This is still a development branch, however, and this means that at any given time, the sources for FreeBSD-STABLE may or may not be suitable for any particular purpose. It is simply another engineering development track, not a resource for end-users. RELENG_6 is STABLE RELENG_6_3 is for security fixes regards, Ruben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Spamassassin: Fill /var/log/maillog
On Thu, Jan 31, 2008 at 09:45:10PM +0100, Martin Schweizer typed: Hello I get allways the following message in /var/log/maillog: Jan 31 17:21:36 acsvfbsd02 spamd[53289]: spamd: connection from localhost.sample.ch [127.0.0.1] at port 64026 Jan 31 17:21:36 acsvfbsd02 spamd[53289]: spamd: setuid to root succeeded Jan 31 17:21:36 acsvfbsd02 spamd[53289]: spamd: still running as root: user not specified with -u, not found, or set to root,falling back to nobody Jan 31 17:21:36 acsvfbsd02 spamd[53289]: spamd: processing message [EMAIL PROTECTED] for root:65534 Jan 31 17:21:42 acsvfbsd02 spamd[53289]: auto-whitelist: open of auto-whitelist file failed: locker: safe_lock: cannot create tmp lockfile /nonexistent/.spamassassin/auto-whitelist.lock.acsvfbsd02.acutronic.ch.53289 for /nonexistent//.spamassassin/auto-whitelist.lock: No such file or directory Jan 31 17:21:42 acsvfbsd02 spamd[53289]: spamd: clean message (0.0/7.0) for root:65534 in 6.2 seconds, 19091 bytes. Jan 31 17:21:42 acsvfbsd02 spamd[53289]: spamd: result: . 0 - HTML_MESSAGE scantime=6.2,size=19091,user=root,uid=65534,required_score=7.0,rhost=localhost.acutronic.ch,raddr=127.0.0.1,rport=64026,mid=[EMAIL PROTECTED],autolearn=failed There was a pr years ago: http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2005-March/054262.html Is there an other solution today? See the audit trail of this PR, it was allready implemented in 2005. http://www.FreeBSD.org/cgi/query-pr.cgi?pr=78700cat=ports regards, Ruben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to install FreeBSD remotely from Debian Linux Environment?
On Tue, Dec 11, 2007 at 07:11:01PM +0100, Yves Vogl typed: Hi, I tried to install FreeBSD from an existing Debian 4.0 Linux installation with Depenguinator 1.1. Depenguinator failed due to a wide range of incompatibilities caused by gcc-4.0 and the beta code used in Depenguinator. Next I built an image under my local Mac OS X 10.5 with QEMU - but the next step would have been to copy the image via dd to harddisk of the remote server. The problem is that Linux doesn't support ufs and the additional ufs- tools either won't compile because of gcc-4.0, current Linux kernel etc. . I don't have the possibility to use KVM-over-Ethernet - but I can ask a technician to boot from a CD-ROM. The problem here is that the neither the bootonly.iso or one of the others automatically start SSH and connect via DHCP? don't they? So... is there another way to start a remote installation? Hi Yves, Best way would be to create your own custom bootable cd. This is quite easy. Maybe you can get some ideas from this (now outdated) script I used for this purpose years ago: http://www.bzerk.org/files/mk-livecd good luck, Ruben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Remove ports dependencies
On Fri, Aug 10, 2007 at 12:53:39PM +0100, Christopher Key typed: Hello, I recently tried to install vim from the ports collections, however I didn't do it with 'WITHOUT_X11', and accordingly it went off and installed X + presumably a whole load of dependencies which I really don't want. Is there any way to get a list of exactly what it added so that I can go and remove it cleanly? the command pkg_deinstall -nR vim (this command is port of the portupgrade package) will give you a list of all packages vim depends on. Removing the 'n' switch will actually upward-recursively deinstall these packages, excluding the ones that are needed by other packages. Then rebuild vim WITHOUT_X11 ;) cheers, Ruben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Can cron e-mail HTML?
On Sat, Jul 14, 2007 at 06:21:16PM -0400, Mikhail Teterin typed: = To accomplish this I have my cron job run a script like this Sorry, I missed the most important part. Your script just uses /usr/bin/mail, the same way cron does. You are not adding anything, not already present in cron -- your script should simply produce output to stdout. Cron will mail all that to the address specified in MAILTO=... part of your crontab automatically. AFAIK, to make the e-mail message treated as a MIME one, the MIME-Version: 1.0 and Content-Type: ... have to be among _headers_. I'm afraid, it is not possible to directly manipulate the message's headers using mail(1), which is why I asked my question in the first place... Just for the record, cron seems to be using /usr/lib/sendmail, not mail(1): malenfant# grep -r _PATH_SENDMAIL /usr/src/usr.sbin/cron/cron/config.h #if !defined(_PATH_SENDMAIL) # define _PATH_SENDMAIL /usr/lib/sendmail #define MAILCMD _PATH_SENDMAIL /*-*/ malenfant# grep _PATH_SENDMAIL /usr/include/paths.h #define_PATH_SENDMAIL /usr/sbin/sendmail cheers, Ruben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: mknod, devfs and FreeBSD
On Tue, Jan 30, 2007 at 09:25:24AM +, Freminlins typed: Kris, On 29/01/07, Kris Kennaway [EMAIL PROTECTED] wrote: To put it bluntly, it's something you're just going to have to get over :-) That's unhelpful. It is, in my opinion, a bad idea to have to mount up 1400 instances of devfs just to get a few device nodes. It just doesn't seem right. It's a kludge. What I will do instread is migrate the box to Solaris where I can do what I want to do. Not exactly. Solaris, especially Solaris 10 is relying more and more on pseudo filesystems. # uname -srpi SunOS 5.10 sparc SUNW,Sun-Fire-V210 # mount | grep '^/devices' /devices on /devices read/write/setuid/devices/dev=47c on Thu Nov 2 16:14:25 2006 Everything in /dev is just a symlink to /devices. -- Ruben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [PATCH] Re: FreeBSD 6.0 on Sony Laptop
On Thu, Nov 17, 2005 at 12:36:50PM -0800, Ted Mittelstaedt typed: Can you submit this via send-pr? Done, thanks http://www.freebsd.org/cgi/query-pr.cgi?pr=89227 Ruben Otherwise it's unlikely that it will get committed. Ted -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ruben de Groot Sent: Wednesday, November 16, 2005 12:37 AM To: Peter Clutton; Derek Tracy; freebsd-questions@freebsd.org Subject: [PATCH] Re: FreeBSD 6.0 on Sony Laptop Following up on myself; the patch below (relative to 5.4-RELEASE) makes my vaio VGN-S5M/S recognise the SATA controller for what it is. Before: atapci1: GENERIC ATA controller port 0x18a0-0x18af,0x1894-0x1897,0x18b0-0x18b7,0x18b8-0x18bb,0x18c0-0 x18c7 irq 18 at device 31.2 on pci0 ad4: 76319MB FUJITSU MHV2080BH/0025 [155061/16/63] at ata2-master UDMA33 After: atapci1: Intel ICH6-M SATA150 controller port 0x18a0-0x18af,0x1894-0x1897,0x18b0-0x18b7,0x18b8-0x18bb,0x18c0-0 x18c7 irq 18 at device 31.2 on pci0 ad4: 76319MB FUJITSU MHV2080BH/0025 [155061/16/63] at ata2-master SATA150 Patch: diff -u sys/dev/ata.orig/ata-chipset.c sys/dev/ata/ata-chipset.c --- sys/dev/ata.orig/ata-chipset.c Wed Mar 23 06:14:11 2005 +++ sys/dev/ata/ata-chipset.c Tue Nov 15 21:39:17 2005 @@ -838,6 +838,7 @@ { ATA_I82801FB, 0, 0, 0x00, ATA_UDMA5, Intel ICH6 }, { ATA_I82801FB_S1,0, 0, 0x00, ATA_SA150, Intel ICH6 }, { ATA_I82801FB_R1,0, 0, 0x00, ATA_SA150, Intel ICH6 }, + { ATA_I82801FBM, 0, 0, 0x00, ATA_SA150, Intel ICH6-M }, { 0, 0, 0, 0, 0, 0}}; char buffer[64]; diff -u sys/dev/ata.orig/ata-pci.h sys/dev/ata/ata-pci.h --- sys/dev/ata.orig/ata-pci.h Wed Mar 23 06:14:11 2005 +++ sys/dev/ata/ata-pci.h Tue Nov 15 21:41:07 2005 @@ -127,6 +127,7 @@ #define ATA_I82801FB0x266f8086 #define ATA_I82801FB_S1 0x26518086 #define ATA_I82801FB_R1 0x26528086 +#define ATA_I82801FBM 0x26538086 #define ATA_ITE_ID 0x1283 #define ATA_IT8212F 0x82121283 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.13.3/173 - Release Date: 11/16/2005 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
[PATCH] Re: FreeBSD 6.0 on Sony Laptop
Following up on myself; the patch below (relative to 5.4-RELEASE) makes my vaio VGN-S5M/S recognise the SATA controller for what it is. Before: atapci1: GENERIC ATA controller port 0x18a0-0x18af,0x1894-0x1897,0x18b0-0x18b7,0x18b8-0x18bb,0x18c0-0x18c7 irq 18 at device 31.2 on pci0 ad4: 76319MB FUJITSU MHV2080BH/0025 [155061/16/63] at ata2-master UDMA33 After: atapci1: Intel ICH6-M SATA150 controller port 0x18a0-0x18af,0x1894-0x1897,0x18b0-0x18b7,0x18b8-0x18bb,0x18c0-0x18c7 irq 18 at device 31.2 on pci0 ad4: 76319MB FUJITSU MHV2080BH/0025 [155061/16/63] at ata2-master SATA150 Patch: diff -u sys/dev/ata.orig/ata-chipset.c sys/dev/ata/ata-chipset.c --- sys/dev/ata.orig/ata-chipset.c Wed Mar 23 06:14:11 2005 +++ sys/dev/ata/ata-chipset.c Tue Nov 15 21:39:17 2005 @@ -838,6 +838,7 @@ { ATA_I82801FB, 0, 0, 0x00, ATA_UDMA5, Intel ICH6 }, { ATA_I82801FB_S1,0, 0, 0x00, ATA_SA150, Intel ICH6 }, { ATA_I82801FB_R1,0, 0, 0x00, ATA_SA150, Intel ICH6 }, + { ATA_I82801FBM, 0, 0, 0x00, ATA_SA150, Intel ICH6-M }, { 0, 0, 0, 0, 0, 0}}; char buffer[64]; diff -u sys/dev/ata.orig/ata-pci.h sys/dev/ata/ata-pci.h --- sys/dev/ata.orig/ata-pci.h Wed Mar 23 06:14:11 2005 +++ sys/dev/ata/ata-pci.h Tue Nov 15 21:41:07 2005 @@ -127,6 +127,7 @@ #define ATA_I82801FB 0x266f8086 #define ATA_I82801FB_S10x26518086 #define ATA_I82801FB_R10x26528086 +#define ATA_I82801FBM 0x26538086 #define ATA_ITE_ID 0x1283 #define ATA_IT8212F0x82121283 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD 6.0 on Sony Laptop
On Tue, Nov 15, 2005 at 08:59:52AM +1100, Peter Clutton typed: On 11/15/05, Ruben de Groot [EMAIL PROTECTED] wrote: My quess from the below snippet of dmesg is that there's something fishy about the second controller (where the disk is attached) that is tolerated by 5.4's ata driver, but not by 6.0's ad4: 76319MB FUJITSU MHV2080BH/0025 [155061/16/63] at ata2-master UDMA33 Why is it connected to the secondary slave? It's also only achieving UDMA33. Unless it's an old laptop, that should be at least 66 or 100. Did you move the drive and change the cable? I would have guessed that putting it there behind your DVD would be enough to cause a couple of problems in itself. Although order and such doesn't matter too much, that will cause a slow down. This is the out-of-the-box configuration of a brand-new vaio laptop. But it's not connected to the secondary slave as you say. Rather, it's connected as a primary master to the second (S)ATA controller, which shouldn't be a problem. The real problem here is that this second controller isn't being recongnized for what it is, namely a '82801FBM ICH6M SATA Controller'. The ata driver therefore falls back to GENERIC ATA controller. Hence the UDMA33. atapci0: Intel ICH6 UDMA100 controller port 0x1880-0x188f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0 atapci1: GENERIC ATA controller port 0x18a0-0x18af,0x1894-0x1897,0x18b0-0x18b7,0x18b8-0x18bb,0x18c0-0x18c7 irq 18 at device 31.2 on pci0 [EMAIL PROTECTED]:31:1: class=0x01018a card=0x81b9104d chip=0x266f8086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = '82801FB ICH6 Ultra ATA Storage Controller' class= mass storage subclass = ATA [EMAIL PROTECTED]:31:2: class=0x01018f card=0x81ba104d chip=0x26538086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = '82801FBM ICH6M SATA Controller' class= mass storage subclass = ATA Ruben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD 6.0 on Sony Laptop
On Mon, Nov 14, 2005 at 09:02:52AM +1100, Peter Clutton typed: On 11/14/05, Derek Tracy [EMAIL PROTECTED] wrote: I have finally decided to ditch Gentoo for FreeBSD especially since the new release is out now, but I have ran into a huge problem. Upon trying to boot the install CD (I have tried both the bootonly and official cd1) I get to sysinstall but when I try and partition the disks it tells me it can not find any of the disks. I have been doing some research on this and a few people were able to install the 5.4 release (I have not Well I'm afraid I can only make a similar comment. I have FreeBSD 5.4 release running smoothly on my Vaio. I wouldn't imagine the device.hints can help you, it sounds like the hardware isn't compatible or something and it can't see it. Exactly what is the laptop - make/model/specs. What hard drive, and what bus is it attached to? Are there any error messages on the emergency holographic shell, i think you can check with alt-F4. /me too. I finally settled for 5.4-RELEASE on my Vaio VGN-S5M/S. My quess from the below snippet of dmesg is that there's something fishy about the second controller (where the disk is attached) that is tolerated by 5.4's ata driver, but not by 6.0's atapci0: Intel ICH6 UDMA100 controller port 0x1880-0x188f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0 ata0: channel #0 on atapci0 ata1: channel #1 on atapci0 atapci1: GENERIC ATA controller port 0x18a0-0x18af,0x1894-0x1897,0x18b0-0x18b7,0x18b8-0x18bb,0x18c0-0x18c7 irq 18 at device 31.2 on pci0 ata2: channel #0 on atapci1 ata3: channel #1 on atapci1 acd0: DVDR MATSHITAUJ-832D/1.02 at ata0-master PIO4 Interrupt storm detected on irq18: atapci1; throttling interrupt source ad4: 76319MB FUJITSU MHV2080BH/0025 [155061/16/63] at ata2-master UDMA33 I'm planning to file a PR on this, but need to do some more research first. Ruben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: LDAP/nss_ldap adduser script
On Wed, Jul 27, 2005 at 10:39:14AM +0100, [EMAIL PROTECTED] typed: Hi all, I've been using an ldap directory for quite a while now for my network logins, and love it. Problem is, it can be quite cumbersome to work with, any ldap clients I have looked at are either very sketchy or overly cumbersome for simple tasks (adding/removing users etc.), and ldif file format is a major pain to work with. My first question is - is anyone aware of a good light and stable ldap client that is easy to setup and use. My own research suggests no, which leads onto my proposal - I'm planning on writing a few basic scripts for working with the system - a 'ldap_adduser', 'ldap_rmuser' etc. Nothing major, not a full suite of utilities, just the basics to make life a little easier. I've had a look at the adduser script and it should be straight forward enough to tailer to this purpose, and I can't see any difficulties in writing them - check /etc/ldap.conf for the location of the users groups, pops the details into an ldif and runs it through the ldap client. The one thing I am not sure about is getting the next available uid number, but I'm sure the answer will become apparent. So before I get into the meat of this, I wanted to check if anyone has any suggestions or comments. Well, how would you go about determining the default user's set of objectclasses and attributes? e.g. we have in our ldap users with different combinations of sambaSamAccount, posixAccount and courierMailAccount. If you want your script to be flexible enough to provide all possible options, you'll end up writing a very complex script. But good luck anyway ;-) Ruben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problem with isc-dhcp3-server and etherboot
On Wed, Jul 27, 2005 at 04:53:51PM +0200, Heinrich Rebehn typed: - I noticed that portupgrade stops dhcp before upgrading, but does not start it again afterwards. Is this expected behaviour? Well, I certainly wasn't expecting this last time I upgraded dhcpd. Found out only days later when clients started dropping of the lan :-0 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Suggestions for post rm -rf /etc/*
On Sun, Apr 17, 2005 at 02:52:41AM -0500, Glen Smith typed: Anyone have a suggestion for fixing a machine three states away after you rm -rf * dir/* inside of /etc or am I just screwed. I even had zsh ask me if that's what I really want to do. ::sob:: Well, asuming you don't have any backups (shame on you!) and you have the sources installed, you could do cd /usr/src/etc make distribution this will give you back all default files in /etc. Copies of your original master.passwd, aliases and group files can be found in /var/backups Ruben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Who is using ACLs in production?
On Sun, Mar 13, 2005 at 01:20:06PM +0100, Anthony Atkielski typed: Anyone using ACLs in production on FreeBSD 5.x? If so, how do you use them, and what are your impressions? How do they affect performance, how reliable is the code, does it really help security, etc.? I installed many samba servers in small-to-medium sized offices. All have ACL's enabled and there have been no complaints about performance or stability. Which is understandable, regarding the fact these samba servers where mostly replacing NT or w2k fileservers on the same or equivalant hardware. Improved security I don't know. It does emulate windows' file permission quite nicely though. Ruben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: dir ~
On Mon, Feb 28, 2005 at 04:58:45PM -, Rob typed: Hi, I typed mv file dir/~ and I now have dir/~ but when I go to that it takes me to my home which happened to be root, I tried to delete the directory and it started deleting roots home. Is there a way to delete this ~ dir? How about rm dir/~ ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Why can't I access my floppy disk?
On Fri, Feb 25, 2005 at 06:41:10PM +0100, Anthony Atkielski typed: Loren M. Lang writes: I don't know why this is, it should still be possible, especially since you can mount cdroms. /dev/fd0 is read/write by root right? And the disk already had a formatted filesystem on it before you tried mounting it? Yes to both questions. But it must be securelevel, because it works on the test machine. The man page doesn't say anything about this restriction, though, nor is it obvious from what the page does say. From the securelevel manpage (which is symlinked to init(8) ): 1 Secure mode - the system immutable and system append-only flags may not be turned off; disks for mounted file systems, /dev/mem, /dev/kmem and /dev/io (if your platform has it) may not be opened for writing; kernel modules (see kld(4)) may not be loaded or unloaded. 2 Highly secure mode - same as secure mode, plus disks may not be opened for writing (except by mount(2)) whether mounted or not. This level precludes tampering with file systems by unmounting them, but also inhibits running newfs(8) while the system is multi- user. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: tap interface, bridging and freebsd 5.3
On Mon, Feb 28, 2005 at 12:18:55PM +0100, Andrea Venturoli typed: Andrea Riela wrote: but I don't see a tap interface in /dev or with ifconfig ... You won't see any network interface in /dev; just run ifconfig -a and check: you won't find any of the listed devices in /dev. That's right; they live in /dev/net/ : ifconfig -l rl0 plip0 lo0 tun0 ppp0 ls -l /dev/net total 0 crw--- 1 root wheel 253, 3 Feb 12 07:23 lo0 crw--- 1 root wheel 253, 2 Feb 12 07:23 plip0 crw--- 1 root wheel 253, 5 Feb 12 07:23 ppp0 crw--- 1 root wheel 253, 1 Feb 12 07:23 rl0 crw--- 1 root wheel 253, 4 Feb 12 07:23 tun0 Ruben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: remote dump via ssh
On Mon, Feb 28, 2005 at 03:41:51PM +, John typed: Hi folks I want to level 0 dump a remote partition onto a large local disk. There's not enough space on the remote machine to dump to a file then sftp over. It needs to dump via ssh. any ideas? lokking for an elegant one-line solution dump 0aLf - /partition | ssh otherhost dd of=/parh/to/dumpfile Ruben thanks! -- [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SCO file system mounting
On Fri, Feb 25, 2005 at 01:13:06AM -0600, Aftab Jahan Subedar typed: Hauan David A wrote: -Original Message- From: Aftab Jahan Subedar [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 23, 2005 2:45 AM To: [EMAIL PROTECTED] Subject: SCO file system mounting Hello to all. Would 'mount' mount the SCO file system ? Does any body know ? I presume the SCO system as partition type 2 or partition type 3 or partition type 0x63. If SCO is running... How about mount -t nfs? I used to do this all the time six/seven years ago with 3.2-RELEASE, I think that's what it was. dave Good idea . but the bad thing is its only running the serial terminals. no nic ! No problem. Use SLIP or PPP. Ruben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: talk command help
On Wed, Feb 16, 2005 at 10:07:43PM -0800, monchis typed: I Am new to unix so I am learning how to use it, but i want to know how to talk to someone. I already used the man pages but i just don't get it. can you show me an example of how to talk to someone hat is logged in. thanks You'll have to enable the talk daemon in /etc/inetd.conf like so: $ grep ntalk /etc/inetd.conf # ntalk is required for the 'talk' utility to work correctly ntalk dgram udp wait tty:tty /usr/libexec/ntalkd ntalkd $ Ruben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Sendmail masquerading configuration
On Tue, Feb 08, 2005 at 03:05:21AM -0800, Ted Mittelstaedt typed: -Original Message- From: Ruben de Groot [mailto:[EMAIL PROTECTED] Sent: Monday, February 07, 2005 6:55 AM To: Ted Mittelstaedt Cc: Ian Moore; freebsd-questions@freebsd.org Subject: Re: Sendmail masquerading configuration On Sun, Feb 06, 2005 at 02:28:17AM -0800, Ted Mittelstaedt typed: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ian Moore Sent: Sunday, February 06, 2005 2:07 AM To: freebsd-questions@freebsd.org Subject: Sendmail masquerading configuration Hi, I'm hoping someone can help me with this. I want to make sendmail (on a 5.3-Release server) leave the host name out of the sender address when sending mail from that machine. I.E. mail from root currently has a sender address of [EMAIL PROTECTED], I want it to be [EMAIL PROTECTED] instead. Not possible, I think, as I recall masquerading only works on users not in the T macro. (ie: Trusted Users) root is most definitely in this macro. Actually, I believe it's the EXPOSED_USERS macro, and it can be adjusted; e.g. in sendmail.cf: C{E}root just remove the root user from this line. In conjunction with a MASQUERADE_AS macro, this will allow root to send email coming from your domain without your hostname. If you do this then lots of messages generated by the system will suddenly start generating (at best): X-Authentication-Warning: myhost.foo.bar: root set sender to someuser using -f Sorry, but this simply isn't true. I have just tested this. Warnings like this might get generated when you remove root from the TRUSTED_USERS macro; *NOT* when you remove it from EXPOSED_USERS. It also makes it harder to troubleshoot when someone external to your system is sending bogus junk to you. I agree. As I said in the part of my message you snipped: BTW, I agree that masquerading is NOT the proper way to do these things. And while it's not applicable now, with older versions of sendmail this would definitely break all your scripts that used e-mail. Use of the -f flag is what he needs to do. Fine. But the OP's problem concerned mail send by cron. How would you instruct cron to use the -f flag? (There's a MAILTO environment variable in cron, but no MAILFROM) Ruben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: favor
On Mon, Feb 07, 2005 at 05:16:22PM +0100, Anthony Atkielski typed: DG So it helps the copyright situation, but breaks the usefulness of DG any archive. The copyright situation is an unavoidable legal mandate, not an option. You cannot defend against an infringement action by saying that respecting copyright would have been inconvenient for you. Can we please stop the legal mumbo-jumbo? This is supposed to be a technical mailing list. And a global one at that. Copyright laws in the US or any other country are irrelevant at best, a nuisance at the worse. But certainly not worth waisting this much bandwidth on. Ruben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ktrace as a replacement for strace
On Tue, Feb 08, 2005 at 03:59:28AM -0800, Loren M. Lang typed: I'm looking for a replacement for the strace program I used to use on linux; freebsd has a port of strace, but it just hangs everytime I use it. It looks like the bsd version of strace would be ktrace/kdump. I was able to get these to print a trace of the program I ran, but it doesn't do all the nice substatuting that strace was able to do. Mainly, I just want the first argument of open to look like a string instead of a 32 bit pointer that I can't read. I'm trying to figure out what files this program is trying to read so I can edit it's configuration file. I think truss(8) will suit your needs better. Ruben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Sendmail masquerading configuration
On Sun, Feb 06, 2005 at 02:28:17AM -0800, Ted Mittelstaedt typed: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ian Moore Sent: Sunday, February 06, 2005 2:07 AM To: freebsd-questions@freebsd.org Subject: Sendmail masquerading configuration Hi, I'm hoping someone can help me with this. I want to make sendmail (on a 5.3-Release server) leave the host name out of the sender address when sending mail from that machine. I.E. mail from root currently has a sender address of [EMAIL PROTECTED], I want it to be [EMAIL PROTECTED] instead. Not possible, I think, as I recall masquerading only works on users not in the T macro. (ie: Trusted Users) root is most definitely in this macro. Actually, I believe it's the EXPOSED_USERS macro, and it can be adjusted; e.g. in sendmail.cf: C{E}root just remove the root user from this line. In conjunction with a MASQUERADE_AS macro, this will allow root to send email coming from your domain without your hostname. You might want to use the MASQUERADE_ENVELOPE macro as well, 'cause that's probably what your isp is filtering on (the envelope_from address). Read all about it in /usr/share/sendmail/cf/README. BTW, I agree that masquerading is NOT the proper way to do these things. Ruben Masquerading is a bullshit way of doing this kind of thing anyhow. Use the -f switch if your calling the sendmail binary directly from programs. If your using /bin/mail as a MUA, then get a better one like Elm or Pine that lets you do this. Ted ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Strange foreign connections
On Wed, Feb 02, 2005 at 11:01:42AM -0600, Gene typed: While running netstat I found these entries: Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address(state) tcp4 0 0 localhost.52730undernet1.blueyo.ircd ESTABLISHED tcp4 0 0 localhost.52398minotor.spale.co.ircd ESTABLISHED tcp4 0 0 localhost.60635bagan2.srce.hr.ircd ESTABLISHED The foreign addresses all show ircd at the end, but there is no irc clients or servers running and irc ports are blocked at the firewall. Does anyone have any idea what might be going on here? I would assume your system is compromised, unless proven otherwise. Ruben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ee editor rules :)
On Wed, Feb 02, 2005 at 08:23:12PM +, Xian typed: Does anyone have an Idiots guide to VI? There isn't. vi was never meant to be used by idiots ;-) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Compiling/installing ports via NFS - any gotcha's? (while building linux_base-8-8.0_6, /usr/bin/build-locale-archive: cannot lock new archive: Operation not supported)
On Mon, Jan 31, 2005 at 05:15:19PM -0600, John typed: I don't have enough storage on my laptop for the entire ports tree (surprise, surprise), so I'm trying to make install acroread and jdk14 via NFS mounts from a bigger server. I'm down to trying to get the specific version of linux_base that it wants(and I already have the linux kld loaded and linprocfs mounted). I have rpc.statd and rpc.lockd running on both systems. What version of FreeBSD are you running? AFAIK, rpc.lockd in 4.x only handles serverside locking, not from the client. Ruben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Perl modules
On Tue, Feb 01, 2005 at 11:06:57AM +0100, [EMAIL PROTECTED] typed: Hello, I have to do thise things: A) if Perl is installed from pkg_add and not the ports, uninstall it. pkg_delete -f perl5.8 B) add ENABLE_SUIDPERL=true to /etc/make.conf C) cd to /usr/ports/lang/perl5.8 D) make -DENABLE_SUIDPERLTRUE install clean E) re-install all the perl modules from the ports. F) Follow the QMR manual to the T!!! The Re-install of the perl modules from ports part How do I do that? How do I id all my perl modules and is there a way to re-install them all together? To check which modules are installed (packages/ports and CPAN) I use the following script: #!/usr/bin/perl # list installed modules use ExtUtils::Installed; my $instmod = ExtUtils::Installed-new(); foreach my $module ($instmod-modules()) { my $version = $instmod-version($module) || ???; print $module -- $version\n; } I know of no way to automatically reinstall them though... Ruben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: library call for directory path creation?
On Tue, Feb 01, 2005 at 04:39:21PM -0500, Louis LeBlanc typed: On 02/01/05 12:58 PM, Michael C. Shultz sat at the `puter and typed: On Tuesday 01 February 2005 11:35 am, Louis LeBlanc wrote: I know there might be a better place for this question, but here goes. I'm working on a utility that has to, among many other things, create directory paths, often with a series of parent directories that may not already exist. Solaris has mkdirp(3GEN) in the libgen library, but I can't find a library call that will do this in FreeBSD. Kind of like `mkdir -p` would. I know it would be pretty trivial to roll my own, and if I can't find it I will. I'm just curious if anyone knows of an *existing* library call that would do this. TIA Lou Assuming your working in C what is wrong with: char command[] = mkdir -p /path/to/whatever; system( command ); Nothing, except that calling a system command from C when you can roll your own method in about 18 lines of code is usually not ideal. Particularly when speed is important. And yes, it is definitely important - disk access can be an insurmountable bottleneck for high volume systems if it is neglected at the implemenation stage. I only wanted a system lib call because I trust FreeBSDs implementation to be faster than my quick throw together. I've already written it. It's not pretty, and probably not as fast as a system lib would be (it has to make 1 system call per directory in the path, rather than just one system call for the whole path). It is, however, much faster than a call to system() would be. Actually, the mkdirp(3GEN) library routine in Solaris probably makes the same amount of system calls as your implementation: uname -sr SunOS 5.9 cat mkdirp.c #include libgen.h #include sys/stat.h #define path /tmp/a/b/c/d int main(void) { mkdirp(path,S_IRWXU); } gcc -lgen -o mkdirp mkdirp.c truss ./mkdirp | tail -10 mkdir(/tmp/a/b/c/d, 0700) Err#2 ENOENT access(/tmp/a/b/c, 0) Err#2 ENOENT access(/tmp/a/b, 0) Err#2 ENOENT access(/tmp/a, 0) Err#2 ENOENT access(/tmp, 0) = 0 mkdir(/tmp/a, 0700) = 0 mkdir(/tmp/a/b, 0700) = 0 mkdir(/tmp/a/b/c, 0700) = 0 mkdir(/tmp/a/b/c/d, 0700) = 0 _exit(-13163152) cheers, Ruben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [lorenl@alzatex.com: Re: Mounting a samba share on boot?]
On Mon, Jan 31, 2005 at 05:47:53AM -0800, Loren M. Lang typed: On Mon, Jan 31, 2005 at 12:38:53PM +, Mark Ovens wrote: Loren M. Lang wrote: replacing MYWORKGROUP, SERVER, USER, secret as neccessary. Make sure nsmb.conf is only readable by root. Add the following line to fstab: //[EMAIL PROTECTED]/share /mnt/share smbfs rw 0 0 PMJI, but do you know if it's possible to handle a share name containing a space when mounting smb filesystems using fstab? I tried //[EMAIL PROTECTED]/Drive C '//[EMAIL PROTECTED]/Drive C' //[EMAIL PROTECTED]/Drive\ C None of these worked. I know that using spaces in filenames is a Bad Idea, but this is Windows we're talking about here ;-) A random guess might be to try: //[EMAIL PROTECTED]/Driver%20C %20 refers to the ascii character with hex value 20 which is space. It's what webservers use for getting around spaces, samba might too.` I'd be really curious to see if this works. The following seems to work for me: [EMAIL PROTECTED]:/root mount_smbfs //odo/Temp Dir /mnt Password: [EMAIL PROTECTED]:/root mount | grep smbfs //[EMAIL PROTECTED]/TEMP DIR on /mnt (smbfs) [EMAIL PROTECTED]:/root Ruben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Mounting a samba share on boot?
On Mon, Jan 31, 2005 at 12:42:29AM -0800, Mac Mason typed: Can anybody point me at some documenation for mounting a samba share at boot time? I'm used to the linux-style trick of adding it to fstab and pointing it at a credentials file, but am pretty sure that won't work in FreeBSD. See nsmb.conf(5) Ruben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [Repost] Logging to custom file via syslog [was]: php log to own syslog file
On Tue, Jan 25, 2005 at 11:28:06AM -0500, Gerard Samuel typed: ... This will only log user.info messages coming from the ppp program to /var/log/php.log. Either move the user.=info line up or finish the !ppp block with a !* line (see manpage). I went over the man page, and I dont see any references about finishing program blocks. So Im taking your word for it. From syslog.conf(5): A program or hostname specification may be reset by giving the program or hostname as `*'. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [Repost] Logging to custom file via syslog [was]: php log to own syslog file
On Mon, Jan 24, 2005 at 12:18:46PM -0500, Gerard Samuel typed: I think this is a FreeBSD problem. It's not. Here is what I have. 1. I removed my initial modification of /etc/syslog.conf, and added - user.=info /var/log/php.log According to syslog.conf man page, that should mean, any syslog events that come is as LOG_USER, and only LOG_INFO, should be appended to /var/log/php.log 2. I HUPped syslogd. 3. Im using logger to try to add a message to the log file like - gladiator# logger -s -p user.info test gsam: test But unfortunately, the message test doesn't appear in /var/log/php.log OR /var/log/messages. I currently have the file /var/log/php.log chmodded to 777. Im including my syslog.conf file. Can anyone tell me, as to why, Im unable to log these tests? Thanks /etc/syslog.conf # $FreeBSD: src/etc/syslog.conf,v 1.26 2003/04/23 13:08:31 des Exp $ # # Spaces ARE valid field separators in this file. However, # other *nix-like systems still insist on using tabs as field # separators. If you are sharing this file between systems, you # may want to use only tabs as field separators here. # Consult the syslog.conf(5) manpage. *.err;kern.debug;auth.notice;mail.crit /dev/console *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/messages security.* /var/log/security auth.info;authpriv.info /var/log/auth.log mail.info /var/log/maillog lpr.info/var/log/lpd-errs ftp.info/var/log/xferlog cron.* /var/log/cron *.=debug/var/log/debug.log *.emerg * # uncomment this to log all writes to /dev/console to /var/log/console.log #console.info /var/log/console.log # uncomment this to enable logging of all log messages to /var/log/all.log # touch /var/log/all.log and chmod it to mode 600 before it will work #*.*/var/log/all.log # uncomment this to enable logging to a remote loghost named loghost #*.*@loghost # uncomment these if you're running inn # news.crit /var/log/news/news.crit # news.err /var/log/news/news.err # news.notice /var/log/news/news.notice !startslip *.* /var/log/slip.log !ppp *.* /var/log/ppp.log user.=info /var/log/php.log This will only log user.info messages coming from the ppp program to /var/log/php.log. Either move the user.=info line up or finish the !ppp block with a !* line (see manpage). Ruben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]