Re: Write only directory.
On Mon, May 7, 2012 at 3:49 PM, Randal L. Schwartz wrote: >>>>>> "Paul" == Paul Halliday writes: > > Paul> Is it possible to let a user write to a directory but not access the > Paul> file after they write it? > > Paul> The file is being transferred via scp and after the transfer I don't > Paul> want them to be able to re-fetch or even get a directory listing. > > scp is via ssh. with ssh, they get a complete command line. how are > you going to prevent *that*? The users shell is /bin/false and sshd is setup like: Match User a_user ChrootDirectory %h ForceCommand internal-sftp AllowTcpForwarding no ___ 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"
Write only directory.
Is it possible to let a user write to a directory but not access the file after they write it? The file is being transferred via scp and after the transfer I don't want them to be able to re-fetch or even get a directory listing. Thanks. -- Paul Halliday http://www.squertproject.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"
Apache with LDAP from ports failing.
I am trying to build apache22 on a fresh 8.1 box from ports. It is dying right about here: mod_authnz_ldap.c:41:2: error: #error mod_authnz_ldap requires APR-util to have LDAP support built in. To fix add --with-ldap to ./configure. Help! :) -- Paul Halliday http://www.pintumbler.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"
Force reboot after kernel panic.
How can I enforce this? Presently the system just hangs. Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: panic: sleeping thread
On Mon, Mar 22, 2010 at 9:28 AM, Paul Halliday wrote: > I have a couple VM's that randomly halt with this error: > > Sleeping thread (tid 10018, pid 1058) owns a non-sleepable lock > panic: sleeping thread > cpuid = 0 > Uptime 11h14m31s > Cannot dump. Device not defined or unavailable. > > FreeBSD 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:02:08 UTC > 2009 r...@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC > amd64 > > These systems run nightly Nessus scans and these halts are very > sporadic; I can go a week w/o seeing one. > > What should I do to start to troubleshoot this? > > Thanks. > There was another panic this morning, different message this time though: panic: vm_fault_copy_wired: page missing cpuid = 1 Uptime: 9d16h58m29s Cannot dump. Device not defined or unavailable. ___ 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"
panic: sleeping thread
I have a couple VM's that randomly halt with this error: Sleeping thread (tid 10018, pid 1058) owns a non-sleepable lock panic: sleeping thread cpuid = 0 Uptime 11h14m31s Cannot dump. Device not defined or unavailable. FreeBSD 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:02:08 UTC 2009 r...@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 These systems run nightly Nessus scans and these halts are very sporadic; I can go a week w/o seeing one. What should I do to start to troubleshoot this? Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Will this work with AMD64?
http://processorfinder.intel.com/details.aspx?sSpec=SLANP CPU: Intel(R) Xeon(R) CPU X5460 @ 3.16GHz (3158.77-MHz 686-class CPU) I am just reading this (the "marked as 5xx numbers" has me confused): # Intel 64-bit Xeon™ (“Nacona”). This processor is fabricated on 90nm process technology, and operates with 2.80 to 3.60 GHz (FSB 800MHz) and Intel E7520/E7525/E7320 chipsets. # Intel Pentium® 4 Processor supporting Intel EM64T (“Prescott”). This is fabricated on 90nm process technology, uses FC-LGA775 package, and operates with 3.20F/3.40F/3.60F GHz and Intel 925X Express chipsets. The corresponding S-Spec numbers are SL7L9, SL7L8, SL7LA, SL7NZ, SL7PZ, and SL7PX. Note that processors marked as 5xx numbers do not support EM64T. Thanks! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
FreeBSD 8.0, HyperV and non-uniform processors.
Is this warning as harmful as it sounds: WARNING: Non-uniform processors. WARNING: Using suboptimal topology. More info: CPU: Intel(R) Xeon(R) CPU E7330 @ 2.40GHz (2304.83-MHz 686-class CPU) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD/SMP: 0 package(s) x 4 core(s) cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 WARNING: Non-uniform processors. WARNING: Using suboptimal topology. Unfortunately I am forced to use this setup. Is there anything I can do? Should I even be worried? Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Which interface to firewall when using lacp.
If I have em0 and em1 comprising lagg0 which interface would I apply PF inbound rules on? Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Looking for troubleshooting tips.
I shift deleted my inbox and lost all of the original replies :( anyway... I have another sensor that just started to exhibit this same behavior. This time though, I have some more info: swap_pager_getswapspace(4): failed swap_pager_getswapspace(16): failed swap_pager_getswapspace(16): failed swap_pager_getswapspace(2): failed pid 75157 (flow-report), uid 1001, was killed: out of swap space What made me notice this time was the zabbix (http://www.zabbix.com/) agent on this host kept bumping online/offline. So it looks like we are loaded enough to affect other processes as well. Is this just a matter of adding more ram? Or do I increase the swap space? Or is there another issue here; I have never ran out of swap space before? Thanks. On Wed, Oct 21, 2009 at 9:58 AM, Paul Halliday wrote: > I use Freebsd as the base for my network monitoring sensors. These > machines run a netflow probe, act as a netflow collector and spool > full content data from a snort process FIFO that is bound to a span > port. During peak hours this can be 100MB saturated, its connected to > a GB intel NIC on the box (there is a separate uplink). > > In the background numerous little scripts run to produce summary data. > The basic template for these systems has been the same for the past 4 > years and things have worked great. Recently, one of these machines > started to become a little laggy and I can't seem to identify the > issue. > > This system has always seen a lot of packet loss, I expect this though > as it is a busy site but this has never affected its performance. Can > an overloaded NIC cause serious performance issues like those I am > seeing? > > This is a recent top: > > last pid: 98870; load averages: 1.54, 1.41, 1.31 up 1+01:57:10 > 11:50:24 > 142 processes: 2 running, 139 sleeping, 1 zombie > CPU states: 30.9% user, 0.0% nice, 15.0% system, 1.7% interrupt, 52.4% > idle > Mem: 450M Active, 328M Inact, 168M Wired, 33M Cache, 110M Buf, 3700K Free > Swap: 2048M Total, 5112K Used, 2043M Free > > 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 > > To be honest, I don't know which counters are important. Is there > anything specific I should be concentrating on to determine the cause? > > Thanks. > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Looking for troubleshooting tips.
I use Freebsd as the base for my network monitoring sensors. These machines run a netflow probe, act as a netflow collector and spool full content data from a snort process FIFO that is bound to a span port. During peak hours this can be 100MB saturated, its connected to a GB intel NIC on the box (there is a separate uplink). In the background numerous little scripts run to produce summary data. The basic template for these systems has been the same for the past 4 years and things have worked great. Recently, one of these machines started to become a little laggy and I can't seem to identify the issue. This system has always seen a lot of packet loss, I expect this though as it is a busy site but this has never affected its performance. Can an overloaded NIC cause serious performance issues like those I am seeing? This is a recent top: last pid: 98870; load averages: 1.54, 1.41, 1.31 up 1+01:57:10 11:50:24 142 processes: 2 running, 139 sleeping, 1 zombie CPU states: 30.9% user, 0.0% nice, 15.0% system, 1.7% interrupt, 52.4% idle Mem: 450M Active, 328M Inact, 168M Wired, 33M Cache, 110M Buf, 3700K Free Swap: 2048M Total, 5112K Used, 2043M Free 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 To be honest, I don't know which counters are important. Is there anything specific I should be concentrating on to determine the cause? Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
export PATH in script called via Cron.
I have a script that I call via Cron. It wont work unless I include a path: #!/usr/local/bin/bash PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin" export $PATH which is fine and works. Out of curiosity though, why is it that if I call it from the cl like ./test.sh I get this error: ./test.sh: line 3: export: `/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin': not a valid identifier The script still works but it does drop that error. What does it mean? Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Problem: PPOE and a Static IP.
I am following the instructions on this page: http://www.freebsd.org/doc/en/books/handbook/pppoe.html I had initially thought it was a problem with the modem so I had a technician come in to take a look; when hooked up to his windows laptop: 1) He had to assign the interface the static address 2) no uname/pass were required. What needs to change in my ppp.conf to accommodate a static address? Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
OT: Ping (DUP!).
I couldn't think of a better place to throw this out, so I will try here. Is this situation always indicative of a network problem or can you get a DUP from a machine that is multihomed and doing load balancing? Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Can stock syslog do hostA -> fileA?
I am collecting syslogs from a PIX and a couple of Barracudas. It would be a lot easier for each to have their own logfile. I have been poking around a bit; I saw this one: +host1 /var/log/host1 but it doesn't appear to work. Is it being trumped by something else in the config file? Is the syntax wrong? Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
rc: not working as expected?
Or maybe an interpretation issue. I have a few startup scripts in rc.d and I am experiencing timing issues. i.e. I need xyz to start before abc. Within xyz I tried: ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
rc: not working as expected? (round 2)
(I mistakenly sent the last msg before finishing..) Or maybe an interpretation issue. I have a few startup scripts in rc.d and I am experiencing timing issues. i.e. I need xyz to start before abc. Within xyz I tried: # REQUIRE: abc This didn't work so I tried: 100.xyz 900.abc which doesn't appear to work either. What am I missing? Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Dual boot.
I just installed 6.2 on a 90GB drive. During the installation I created the usual partitions and left 50GB untouched. I then rebooted ran partition magic to put a DOS FS on the remainder then ghosted XP pro onto it. What is the process now to dual boot this? I have tried booting then: sysinstall -> configure -> fdisk then install the bootmanager but when I try to write out the changes it errors and says: ERROR: Unable to write data to disk ad0! Do I need to start over or can I fix this? Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Install from hard disk.
I have two drives in my pc164. What do i need to put on the second drive in order to use it as the installation media? I have tried dd'ing the floppy images to the second hard drive but this doesnt work. Any pointers? Thanks. Paul Halliday. http://dp.penix.org --- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Printing.
Hi. After finally converting my wife from the dark side and installing FreeBSD on her laptop I have run into a few problems. Before I ran all print services on one of my free boxes and ran samba so that she could print to it. Which works out quite well because you use the original windows drivers so maintanence/quality are a snap. Now that the box is running free I had to play around with apsfilter to try and achieve the same performance. Apsfilter is a great package but just isnt producing as I had hoped ie. slow, quality isnt 100% etc. So much to my chagrin I installed a win2000 box and hooked the printer up to that. I am just now trying to figure out how to do the reverse of b4, printing from all my nix boxes to this 2000 box using the windows drivers. I still have samba running but I am unsure how to approach this. I would love to hear anyone elses experiences with this sort of situation, even other solutions. Thanks. Paul Halliday. http://dp.penix.org --- To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Hard drive woes.. (itronix)
I am trying to install free on this machine, as I have no floppy/cdrom for this box I am restricted to installing via another laptop then swapping the drive back. Boot goes fine until: ata0-master: no status, reselecting device ata0-master: timeout sending command=ec s=ff e=00 ata0-master: ata identify failed For fun I tried NetBSD and the machine boots fine. For reference under FreeBSD the drive appears as: wdc0 at isa0 port 0x1f0-0x1f7 irq14 wd0 at wdc0 channel 0 drive 0:(IBM-DDLA-21620) wd0: drive supports 16 sector PIO transfers, LBA addressing wd0: 1551MB, 3152 cyl, 16 heads, 63 sec, 512 bytes/sect x 3177216 sectors wd0: drive supports PIO mode 4, DMA mode 2 NetBSD sees it as: wdc0 at isa0 port 0x1f0-0x1f7 irq 14 wd0 at wdc0 channel 0 drive 0: wd0: drive supports 16-sector PIO transfers, LBA addressing wd0: 4645 MB, 10068 cyl, 15 head, 63 sec, 512 bytes/sect x 9514260 sectors wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33) (i have installed it on a bigger drive recently, the errors were still the same when i tried FreeBSD on both drives) What is it that is restricting Free from booting while allowing netbsd and openbsd to boot properly? As much as I love NetBSD (shudder), I would really prefer to have Free running on this machine. Any ideas would be greatly appreciated. Note: the bios on this machine, although updated is very limited to drive specific configuration options so anything I do modify must be on the OS end. Paul Halliday. http://dp.penix.org --- "And so your god bungled his work deliberately, in order to tempt or test his creature - did he then not know, did he then not doubt what the result would be?" To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Itronix 6250. (fwd)
I am trying to install free on this machine, as I have no floppy/cdrom for this box I am restricted to installing via another laptop then swapping the drive back. Boot goes fine until: ata0-master: no status, reselecting device ata0-master: timeout sending command=ec s=ff e=00 ata0-master: ata identify failed I put the drive back into the other laptop and added hw.ata.ata_dma="0" and retried, again recieving the same errors. For fun I tried NetBSD and the machine boots fine. For reference the drive appears as: wdc0 at isa0 port 0x1f0-0x1f7 irq14 wd0 at wdc0 channel 0 drive 0:(IBM-DDLA-21620) wd0: drive supports 16 sector PIO transfers, LBA addressing wd0: 1551MB, 3152 cyl, 16 heads, 63 sec, 512 bytes/sect x 3177216 sectors wd0: drive supports PIO mode 4, DMA mode 2 What is it that is restricting Free from booting while allowing netbsd to boot properly? Any ideas would be greatly appreciated. Note: the bios on this machine, although updated is very limited to drive specific configuration options so anything I do modify must be on the OS end. Thanks. Paul Halliday. http://dp.penix.org --- "And so your god bungled his work deliberately, in order to tempt or test his creature - did he then not know, did he then not doubt what the result would be?" To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message