sudo doesn't log anything
Hello, In my FreeBSD 6.2, I use sudo for a user. However, I want know who has used sudo in my machine. But, sudo doesn't log anything. I have nothing about sudo in /var/log... Syslog log auth.* in /var/log/auth, but nothing about sudo... What's the problem ? Any ideas ? Thanks ! Nicolas -- Nicolas Letellier, administrateur systèmes Site personnel : http://nicoelro.net Curriculum-vitae : http://nletellier.info ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sudo doesn't log anything
Hello, Thanks for your response. No, there is nothing about sudo in /var/log/messages (in anyone else file in /var/log). But i modified my /etc/syslog.conf. The problem could is this file ? I pastebin my file : http://pastebin.com/m35ceae32 What's the problem to log sudo informations ? Thanks ! Nicolas Pieter de Goeje a écrit : On Tuesday 09 October 2007, Nicolas Letellier wrote: Hello, In my FreeBSD 6.2, I use sudo for a user. However, I want know who has used sudo in my machine. But, sudo doesn't log anything. I have nothing about sudo in /var/log... Syslog log auth.* in /var/log/auth, but nothing about sudo... It logs it's messages in /var/log/messages. What's the problem ? Any ideas ? Thanks ! No Problemo :) Nicolas Pieter de Goeje -- Nicolas Letellier, administrateur systèmes Site personnel : http://nicoelro.net Curriculum-vitae : http://nletellier.info ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sudo doesn't log anything
Pieter de Goeje a écrit : Sudo by default logs with facility 'local2' and priority 'notice'. Neither one is specified in your syslog.conf. Yes, it fix my problem ! Thanks very much ! Nicolas -- Nicolas Letellier, administrateur systèmes Site personnel : http://nicoelro.net Curriculum-vitae : http://nletellier.info ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
FreeBSD 6.2-release and azalia sound chipset
Hello, I installed 6.2 -release. I have the sound chipset azalia (Intel 82801H HD Audio). However, I don't find a module for this chipset. Where I can found it ? How install it ? Thanks you, Nicolas ___ 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.2-release and azalia sound chipset
Hello, Two questions : it's a "binary" module ? I don't find the module for azalia. Where is it ? Thanks Nicolas Oliver Herold a écrit : Hi, http://people.freebsd.org/~ariff/BINARY_MODULES/ just follow the README. Cheers, Oliver On Mon, Nov 05, 2007 at 10:51:37PM +0100, Nicolas Letellier wrote: Hello, I installed 6.2 -release. I have the sound chipset azalia (Intel 82801H HD Audio). However, I don't find a module for this chipset. Where I can found it ? How install it ? Thanks you, Nicolas ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- Nicolas Letellier, administrateur systèmes Site personnel : http://nicoelro.net Curriculum-vitae : http://nletellier.info OpenBSD - free, functional and secure ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Very bad performances with wpi driver and 7.0-RC1
Hello, I use FreeBSD 7.0-RC1 with my laptop (Asustek A6000 Series). Performances with wpi are very very bad: in my LAN, I download a file at 4 k/s. In Internet, I would believe I use a 56 k connection :-) In this laptop, I have a NIC (chipset re), and I don't have any problem with. The connection is very very stable. The problem is juste with wpi and my Wireless NIC. I test OpenBSD-current, and I didn't have any problem with wpi. The problem is juste with FreeBSD 7.0-RC1. I have any firewalls, nothing. All is perfect with my NIC re. I test with GENERIC, and I build my own kernel (with wpi support build into kernel). The problem is the same. See more informations here: numenor# cat /boot/loader.conf nvidia_load="YES" wpifw_load="YES" legal.intel_wpi.license_ack=1 numenor# cat /etc/rc.conf defaultrouter="192.168.1.249" hostname="numenor." ifconfig_wpi0="inet 192.168.1.4 ssid Nicoelro_Wifi" numenor# ifconfig wpi0 wpi0: flags=8843 metric 0 mtu 1500 ether 00:13:02:dd:05:5f inet 192.168.1.4 netmask 0xff00 broadcast 192.168.1.255 media: IEEE 802.11 Wireless Ethernet autoselect (OFDM/36Mbps) status: associated ssid Nicoelro_Wifi channel 10 (2457 Mhz 11g) bssid 00:0f:b5:b9:9f:cc authmode OPEN privacy OFF txpower 50 bmiss 7 scanvalid 60 protmode CTS Sometimes, I see this message: wpi0: discard frame w/o packet header numenor# sysctl -a | grep wpi net.wlan.0.%parent: wpi0 debug.wpi: 0 dev.wpi.0.%desc: Intel(R) PRO/Wireless 3945ABG dev.wpi.0.%driver: wpi dev.wpi.0.%location: slot=0 function=0 handle=\_SB_.PCI0.P0P7.WLAN dev.wpi.0.%pnpinfo: vendor=0x8086 device=0x4222 subvendor=0x8086 subdevice=0x1001 class=0x028000 dev.wpi.0.%parent: pci3 numenor# dmesg *Copyright (c) 1992-2008 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.0-RC1 #1: Mon Jan 14 18:12:58 CET 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/NUMENOR Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Genuine Intel(R) CPU T2300 @ 1.66GHz (1662.52-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x6e8 Stepping = 8 Features=0xbfe9fbff Features2=0xc189 AMD Features=0x10 Cores per package: 2 real memory = 1073545216 (1023 MB) avail memory = 1032773632 (984 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 hptrr: HPT RocketRAID controller driver v1.1 (Jan 14 2008 18:12:38) acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of 0, a (3) failed acpi0: reservation of 10, 3ff0 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 acpi_ec0: port 0x62,0x66 on acpi0 cpu0: on acpi0 est0: on cpu0 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 6130a2c06000613 device_attach: est0 attach returned 6 p4tcc0: on cpu0 cpu1: on acpi0 ACPI Warning (tbutils-0243): Incorrect checksum in table [SSDT] - D6, should be 9C [20070320] est1: on cpu1 p4tcc1: on cpu1 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: irq 16 at device 1.0 on pci0 pci1: on pcib1 nvidia0: mem 0xfd00-0xfdff,0xc000-0xcfff,0xfc00-0xfcff irq 16 at device 0.0 on pci1 nvidia0: [GIANT-LOCKED] nvidia0: [ITHREAD] pcm0: mem 0xfebfc000-0xfebf irq 21 at device 27.0 on pci0 pcm0: [ITHREAD] pcib2: irq 16 at device 28.0 on pci0 pci2: on pcib2 re0: port 0xc800-0xc8ff mem 0xfe0ff000-0xfe0f irq 16 at device 0.0 on pci2 re0: Using 2 MSI messages miibus0: on re0 rgephy0: PHY 1 on miibus0 rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto re0: Ethernet address: 00:18:f3:5b:f6:31 re0: [FILTER] re0: [FILTER] pcib3: irq 19 at device 28.3 on pci0 pci3: on pcib3 wpi0: mem 0xfe1ff000-0xfe1f irq 19 at device 0.0 on pci3 bus_dmamem_alloc failed to align memory properly. bus_dmamem_alloc failed to align memory properly. bus_dmamem_alloc failed to align memory properly. bus_dmamem_alloc failed to align memory properly. bus_dmamem_alloc failed to align memory properly. bus_dmamem_alloc failed to align memory properly. bus_dmamem_alloc failed to align memory properly. bus_dmamem_alloc failed to align memory properly. bus_dmamem_alloc failed to align memory properly. bus_dmamem_alloc failed to align memory properly. bus_dmamem_alloc failed to align memory properly. bus_dmamem_alloc failed to align memory properly. bus_dmamem_alloc failed to align memory properly. bus_dmamem_alloc failed to align memory properly. bus_dmamem_alloc failed to align memory properly. bus_dmamem_alloc failed to align memory properly. bus_dmamem_alloc failed to align memory properly. bus_dmamem_a
Question about syslog.conf
Hello, I have a question with syslog.conf. I don't find informations about this on man. What the utility of : !startslip *.* /var/log/slip.log !ppp *.* /var/log/ppp.log I don't understand how it works, because I think we must use a \ to return on a new line ! For example, startslip includes ALL (.*.) except !startslip ? I don't think... Because I read that. Could you explain me ? Thanks :-) -- Nicolas Letellier, administrateur systèmes Site personnel : http://nicoelro.net Curriculum-vitae : http://nletellier.info ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Setting an environment var at boot
Hello, I have an env var to set for mysqld (UMASK_DIR). Today, I set it in /usr/local/etc/rc.d/mysql-server, but it's a bad idea. When I want to upgrade my mysql5-server port, the file will be overwritten. I want to set it in a file loaded a machine boot. This var must be exported and accessible for my services runned in /etc/rc.d and /usr/local/etc/rc.d What file do you advice? Thanks. Regards, -- - Nicolas. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Secure apache with php
Hello. I want to secure my Apache/PHP environment without : - safe_mode - suphp / suexec So, I found this : http://mpm-itk.sesse.net/ In this page, we can see that a FreeBSD port exists, but I can't find it. What do you thinh about it? This tool seems to be good. Which Apache version do you advice? apache13 apache20 apache22 apache22-peruser-mp Best regards, -- Nicolas ___ 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: Secure apache with php
Le Thu, 9 Jul 2009 13:18:39 +0300, "Reko Turja" a écrit : > > I want to secure my Apache/PHP environment... > > Full suhosin, both patch and mod for the PHP. IIRC suhosin patch is > optional in PHP port and the mod can be installed via ports. > (http://www.hardened-php.net/suhosin/index.html) > > Apache environment and binaries set up in a jail. > > > Which Apache version do you advice? > > I reckon these days 2.2 would be the best in regards of future > upgrades and development. > > -Reko > Thanks. I already use suhosin patch in mod_php. I have few users on this machine, each use a separate directory (/var/www/user). I do not want to make a jail for each one. That's why mpm-itk seems to be good (instead of safe_mode / open_basedir). Best regards, -- Nicolas ___ 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: Secure apache with php
Le Thu, 09 Jul 2009 12:49:57 +0200, Julien Cigar a écrit : > What I do is running PHP in FastCGI mode (with something like x-cache) > with a dedicated user for each webapp for which I have a dedicated > script, for example : > > = > jci...@bccm-it ~ % ls -l /usr/local/www/apache22/cgi-bin > (...) > -rwxr-xr-x 1 www-scarwww-scar202 Oct 27 2008 > scar-php-wrapper.fcgi* > -rwxr-xr-x 1 www-lwatch www-lwatch 202 Apr 24 12:05 > sfa-php-wrapper.fcgi* > -rwxr-xr-x 1 www-tapir www-tapir 202 Oct 27 2008 > tapir-php-wrapper.fcgi* > (...) > = > > each .fcgi contain something like : > > = > jci...@bccm-it ~ % > cat /usr/local/www/apache22/cgi-bin/scar-php-wrapper.fcgi > #!/bin/sh > > #PHPRC="/path/to/php.ini" > #export PHPRC > > PHP_FCGI_CHILDREN=3 > export PHP_FCGI_CHILDREN > > PHP_FCGI_MAX_REQUESTS=1 > export PHP_FCGI_MAX_REQUESTS > > exec /usr/local/bin/php-cgi -b 127.0.0.1:5009 > = > > you can control how much children have to be fork(), the number of > maximum requests per process before it gets killed and re-launched > (usefull if a webapp leaks memory), etc > > Then in your Apache config you put something like : > > = > FastCgiExternalServer /usr/local/www/apache22/cgi-bin/scar-php-wrapper.fcgi > -host 127.0.0.1:5009 -idle-timeout 1800 > > > SetHandler fastcgi-script > > > > Order allow,deny > Allow from all > > AddHandler php-fastcgi .php > Action php-fastcgi /cgi-bin/scar-php-wrapper.fcgi > > = > > hope it helps, > > best regards, > Julien > > > On Thu, 2009-07-09 at 12:22 +0200, Nicolas Letellier wrote: > > Le Thu, 9 Jul 2009 13:18:39 +0300, > > "Reko Turja" a écrit : > > > > > > I want to secure my Apache/PHP environment... > > > > > > Full suhosin, both patch and mod for the PHP. IIRC suhosin patch > > > is optional in PHP port and the mod can be installed via ports. > > > (http://www.hardened-php.net/suhosin/index.html) > > > > > > Apache environment and binaries set up in a jail. > > > > > > > Which Apache version do you advice? > > > > > > I reckon these days 2.2 would be the best in regards of future > > > upgrades and development. > > > > > > -Reko > > > > > Thanks. I already use suhosin patch in mod_php. > > > > I have few users on this machine, each use a separate directory > > (/var/www/user). I do not want to make a jail for each one. > > > > That's why mpm-itk seems to be good (instead of safe_mode / > > open_basedir). > > > > Best regards, > > > > > > When I tested php in cgi, performances were bad. That's why, php_mod is better (in my case != -- Nicolas ___ 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: Secure apache with php
Le Thu, 09 Jul 2009 14:36:11 +0200, Julien Cigar a écrit : > > When I tested php in cgi, performances were bad. That's why, > > php_mod is better (in my case != > > > > It's not CGI, it's FastCGI. > There is no performance loss if you use an opcode cacher (like > x-cache). > And is anyboy use mpm-itk ? I'm interested more with this solution than another php fix (like safe_mode, open_basedir or cgi/fastcie). -- Nicolas ___ 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"
Eclipse and FreeBSD7
Hello, I have a problem with FreeBSD7 and the last Eclipse. It doesn't work. I have this error when I launch : JVM terminated. Exit code=1 /usr/local/bin/java -Xms40m -Xmx256m -jar /usr/local/eclipse/startup.jar -os freebsd -ws gtk -arch x86 -launcher /usr/local/eclipse/eclipse -name Eclipse -showsplash 600 -exitdata 1000b -vm /usr/local/bin/java -vmargs -Xms40m -Xmx256m -jar /usr/local/eclipse/startup.jar I saw this page (http://www.freebsd.org/cgi/query-pr.cgi?pr=118115) which says that the last version has corrected the problem (3.2.2_1). But the problem is the same. The new version doesn't install jdk*. I just installed diablo. What must I do ? Nicolas ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
How use helvetica font?
Hello, How use Helvetica font with FreeBSD 6.3-Release ? I follow this page (http://www.freebsd.org/doc/fr_FR.ISO8859-1/books/handbook/x-fonts.html) and installed urwfont but I can't see Helvetica font on OpenOffice or Abiword. see my `pkg_info | grep font` : bdftopcf-1.0.1 bitstream-vera-1.10_4 encodings-1.0.2,1 font-adobe-100dpi-1.0.0_1 font-adobe-75dpi-1.0.0 font-adobe-utopia-100dpi-1.0.1 font-adobe-utopia-75dpi-1.0.1 font-adobe-utopia-type1-1.0.1 font-alias-1.0.1 font-arabic-misc-1.0.0 font-bh-100dpi-1.0.0 font-bh-75dpi-1.0.0 font-bh-lucidatypewriter-100dpi-1.0.0 font-bh-lucidatypewriter-75dpi-1.0.0 font-bh-ttf-1.0.0 font-bh-type1-1.0.0 font-bitstream-100dpi-1.0.0 font-bitstream-75dpi-1.0.0 font-bitstream-type1-1.0.0 font-cursor-misc-1.0.0 font-daewoo-misc-1.0.0 font-dec-misc-1.0.0 font-ibm-type1-1.0.0 font-isas-misc-1.0.0 font-jis-misc-1.0.0 font-micro-misc-1.0.0 font-misc-ethiopic-1.0.0 font-misc-meltho-1.0.0_1 font-misc-misc-1.0.0 font-mutt-misc-1.0.0 font-schumacher-misc-1.0.0 font-sony-misc-1.0.0 font-sun-misc-1.0.0 font-util-1.0.1 font-xfree86-type1-1.0.0 fontcacheproto-0.1.2 fontconfig-2.4.2_2,1 fontsproto-2.0.2 fonttosfnt-1.0.3 freefonts-0.10_3 freetype2-2.3.5 fslsfonts-1.0.1 fstobdf-1.0.2 libXfont-1.3.1_1,1 libXfontcache-1.0.4 libXft-2.1.12 libfontenc-1.0.4 mkfontdir-1.0.3 mkfontscale-1.0.3 p5-type1inst-0.6.1_5 showfont-1.0.1 urwfonts-1.0_2 webfonts-0.30_2 xf86bigfontproto-1.1.2 xfd-1.0.1 xfontsel-1.0.2 xfs-1.0.5,1 xfsinfo-1.0.1 xlsfonts-1.0.2 xorg-fonts-100dpi-7.3 xorg-fonts-75dpi-7.3 xorg-fonts-miscbitmaps-7.3 xorg-fonts-truetype-7.3 xorg-fonts-type1-7.3 However, I can see Helvetica in `fc-list | grep Helvetica` : Helvetica:style=Oblique Helvetica:style=Bold Helvetica:style=Regular Helvetica:style=Bold Oblique Here is my font config in xorg.conf : FontPath"/usr/X11R6/lib/X11/fonts/freefont/" FontPath"/usr/local/lib/X11/fonts/misc/" FontPath"/usr/local/lib/X11/fonts/TTF/" FontPath"/usr/local/lib/X11/fonts/OTF" FontPath"/usr/local/lib/X11/fonts/Type1/" FontPath"/usr/local/lib/X11/fonts/100dpi/" FontPath"/usr/local/lib/X11/fonts/75dpi/" FontPath"/usr/local/lib/X11/fonts/webfonts/" FontPath"/usr/local/lib/X11/fonts/bitstream-vera/" FontPath"/usr/local/lib/X11/fonts/cyrillic/" FontPath"/usr/local/lib/X11/fonts/dejavu/" FontPath"/usr/local/lib/X11/fonts/util/" FontPath"/usr/local/lib/X11/fonts/encodings/" FontPath"/usr/local/lib/X11/fonts/URW/" Thanks for your help Nicolas ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Conflit with apache13 when I use apache13-modssl
Hello, I use apache13-modssl. However, when I want to install a port like "php5", I have this error : ===> Installing for apache-1.3.41 ===> apache-1.3.41 conflicts with installed package(s): apache+mod_ssl-1.3.41+2.8.31 They install files into the same place. Please remove them first with pkg_delete(1). *** Error code 1 php5 port requires port apache13. How could I repair this problem? php5 port is already installed but I have this warning. How precise I want to use apache13-modssl and not apache13 ? Thanks. Nicolas ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Conflit with apache13 when I use apache13-modssl
Mel a écrit : On Monday 25 February 2008 11:32:50 Nicolas Letellier wrote: I use apache13-modssl. However, when I want to install a port like "php5", I have this error : ===> Installing for apache-1.3.41 ===> apache-1.3.41 conflicts with installed package(s): apache+mod_ssl-1.3.41+2.8.31 They install files into the same place. Please remove them first with pkg_delete(1). *** Error code 1 php5 port requires port apache13. How could I repair this problem? php5 port is already installed but I have this warning. How precise I want to use apache13-modssl and not apache13 ? echo APACHE_PORT=www/apache13-modssl >>/etc/make.conf It's perfect ! Thank you ! -Nicolas ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
problem with acpi and freebsd7
Hello, I upgraded my system to 7.0-RELEASE, and in the dmesg, I see this message: ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of 0, a (3) failed acpi0: reservation of 10, 3f6f (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 cpu0: on acpi0 ACPI Warning (tbutils-0243): Incorrect checksum in table [ üý] - 0, should be A5 [20070320] ACPI Error (tbinstal-0222): Table has invalid signature [ üý], must be SSDT or PSDT [20070320] ACPI Error (psparse-0626): Method parse/execution failed [\\_PR_.CPU1._PDC] (Node 0xc3ac1ba0), AE_BAD_SIGNATURE p4tcc0: on cpu0 cpu1: on acpi0 ACPI Warning (tbutils-0243): Incorrect checksum in table [ üý] - 0, should be A5 [20070320] ACPI Error (tbinstal-0222): Table has invalid signature [ üý], must be SSDT or PSDT [20070320] ACPI Error (psparse-0626): Method parse/execution failed [\\_PR_.CPU2._PDC] (Node 0xc3ac1aa0), AE_BAD_SIGNATURE Are the warning messages important? You can see the full dmesg here: http://zone.nicoelro.net/freebsd/dmesg-trinite Thanks for your advices. -Nicolas ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
problem with linuxthreads when installing mysql5
Hello, When I want to install mysql5-server (with portinstall and these options: WITH_CHARSET=latin1 WITH_COLLATION=latin1_swedish_ci WITH_OPENSSL=yes BUILD_OPTIMIZED=yes WITH_LINUXTHREADS=yes), I've got this error: ===> Installing for linuxthreads-2.2.3_23 ===> Generating temporary packing list ===> Checking if devel/linuxthreads already installed ===> linuxthreads-2.2.3_23 is already installed You may wish to ``make deinstall'' and install this port again by ``make reinstall'' to upgrade it properly. If you really wish to overwrite the old port of devel/linuxthreads without deleting it first, set the variable "FORCE_PKG_REGISTER" in your environment or the "make install" command line. *** Error code 1 Stop in /usr/ports/devel/linuxthreads. *** Error code 1 Stop in /usr/ports/databases/mysql50-client. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portinstall.26307.1 env make WITH_CHARSET=latin1 WITH_COLLATION=latin1_swedish_ci WITH_OPENSSL=yes BUILD_OPTIMIZED=yes WITH_LINUXTHREADS=yes ** Fix the problem and try again. [Updating the pkgdb in /var/db/pkg ... - 49 packages found (-0 +1) . done] ** Listing the failed packages (-:ignored / *:skipped / !:failed) ! databases/mysql50-client (unknown build error) So... I delete linuxthreads (with pkg_deinstall) and I retry... The error is the same. Installing mysql50-server with linuxthread option installes linuxthread port two times... The first time, it works, the second, I got this message. Why 'portinstall mysql5-server' installs two times linuxthreads? How solve this problem? Thanks, -Nicolas ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: PHP cli segfaults
Drew Sanford a écrit : Peter wrote: Drew Sanford wrote: | Command line programs for php seem to segfault on a 7.0RC1 box (yes, I | know, I should update to RC2) - for example: | | [EMAIL PROTECTED](~/bin)$ php -v | PHP 5.2.5 with Suhosin-Patch 0.9.6.2 (cli) (built: Feb 9 2008 13:03:20) | Copyright (c) 1997-2007 The PHP Group | Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies | zsh: segmentation fault (core dumped) php -v | | Any pointers? Just update and see if that fixes it? Thanks in advance. | | | uname output: | FreeBSD colossus.cotharyus.net 7.0-RC1 FreeBSD 7.0-RC1 #0: Sat Feb 9 | 11:43:37 CST 2008 Getting same thing, fresh install of 7.0 [cvsupped to rc2?], latest or not latest portsnap, I found it was the 'mhash.so' extension that was causing php to segfault - did portsnap update, and rebuilt all php stuff, still does same thing - have not tried it for last several weeks, so could be fixed by now...I did cvsup to latest sources... my emails were subjected "apache coredump with 'mhash' php extension enabled" - with mhash disabled, php works fine now. Will try and buildworld/reinstall php with the latest 7 sometime soon. ]Peter[ Good find Peter, I've got exactly the same system config at this point, and disabling mhash fixed it as well. Same problem with php5-mhash. I build it from the port, using FreeBSD7.0-RELEASE. I use PHP as apache module. Any ideas ? Thanks. -Nicolas ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Import bayes_* for SpamAssassin from Debian to FreeBSD
Hello, I must export a SpamAssassin configuration in a GNU/Linux Debian 4.0. See these files: [EMAIL PROTECTED] .spamassassin # file * auto-whitelist: Berkeley DB (Hash, version 7, native byte-order) auto-whitelist.mutex: ASCII text bayes_journal:ASCII text bayes.mutex: ASCII text bayes_seen: Berkeley DB (Hash, version 7, native byte-order) bayes_toks: Berkeley DB (Hash, version 8, native byte-order) bayes_toks.dump: ASCII text user_prefs: ASCII English text [EMAIL PROTECTED] .spamassassin # spamc -V SpamAssassin Client version 3.1.5 This is my SpamAssassin on FreeBSD (p5-Mail-SpamAssassin port) : [EMAIL PROTECTED] .spamassassin # spamc -V SpamAssassin Client version 3.2.4 compiled with SSL support (OpenSSL 0.9.8e 23 Feb 2007) However, when I use these files in my ~/.spamassassin, on my FreeBSD, I have errors: spamd[51854]: bayes: cannot open bayes databases /var/spool/spamd/.spamassassin/bayes_* R/O: tie failed: Inappropriate file type or format spamd[51854]: bayes: cannot open bayes databases /var/spool/spamd/.spamassassin/bayes_* R/O: tie failed: Inappropriate file type or format spamd[51854]: auto-whitelist: open of auto-whitelist file failed: auto-whitelist: cannot open auto_whitelist_path /var/spool/spamd/.spamassassin/auto-whitelist: Inappropriate file type or format I don't understand, because they're only Berkeley databases... See the command file on these files in FreeBSD: auto-whitelist: Berkeley DB (Hash, version 7, native byte-order) auto-whitelist.mutex: ASCII text bayes.mutex: ASCII text bayes_journal:ASCII text bayes_seen: Berkeley DB (Hash, version 7, native byte-order) bayes_toks: Berkeley DB (Hash, version 8, native byte-order) bayes_toks.dump: ASCII text user_prefs: ASCII English text I tried to just import a dump from Debian (with db4.1_dump) and rebuild the database in FreeBSD (with db41_load), the problem is the same. How could I re-use these files? They are very important. Thanks for your help. -Nicolas ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Import bayes_* for SpamAssassin from Debian to FreeBSD
Matthew Seaman a écrit : You'll need to install the same version of Berkeley DB on FreeBSD as you were using on Debian -- and you'll have to compile the perl modules SpamAssassin uses for BerkeleyDB access to use that version too. I use the same BerkeleyDB. I use db41 on FreeBSD (and db41* commands) and db41 on Debian (and db.41* commands). `file`commands returns the same headers of the file on Debian and the defaults ~/.spamassassin/tok*. When I try this: [EMAIL PROTECTED] .spamassassin # sa-learn --import --dbpath . bayes: cannot open bayes databases ./bayes_* R/O: tie failed: Inappropriate file type or format upgrading to DB_File, please be patient: ./old_bayes_seen DB_File: no database of that kind found, nothing copied GDBM_File: no database of that kind found, nothing copied NDBM_File: no database of that kind found, nothing copied SDBM_File: no database of that kind found, nothing copied upgrading to DB_File, please be patient: ./old_bayes_toks DB_File: no database of that kind found, nothing copied GDBM_File: no database of that kind found, nothing copied NDBM_File: no database of that kind found, nothing copied SDBM_File: no database of that kind found, nothing copied import failed, original files saved with "old" prefix What must I do? Do you think it's a Perl problem? -Nicolas ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
How specify an other mail directory for users?
Hello, In my FreeBSD 7.0 (with postfix), when a user receive an email, it is stocked in /var/mail$/USER. How change this? I would like mails be stocked in /var/mail/users/$USER. I don't find a file to change this. Is it a system conf, or a SMTP conf? Thanks. - Nicolas. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How specify an other mail directory for users?
Nicolas Letellier a écrit : > Hello, > > In my FreeBSD 7.0 (with postfix), when a user receive an email, it is stocked in /var/mail$/USER. > How change this? I would like mails be stocked in /var/mail/users/$USER. > > I don't find a file to change this. Is it a system conf, or a SMTP conf? > > Thanks. > > - Nicolas. > Hum... In main.cf: mail_spool_directory = /var/mail/users It works. -Nicolas. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
How use and manage a Berkeley DB 1.85?
Hello, I have a db Berkeley DB 1.85. I have softwares which use it. I would like to know how manage it? How show all datas contained? How delete a data? How insert a data? Is there a port to do this? Thanks. - Nicolas. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Process in lockf with apache/php
Hi. I use Apache 1.3 and PHP5 in module. I have a timeout of 30 seconds for my PHP scripts. When a process is out of this timeout, I have this message in my error.log: Maximum execution time of 30 seconds exceeded in /var/www/data/test.php on line 10 Ok, this is normal. In a "top", I see the process is in lockf state. The process is not killed. But when I do a "ps aux", I don't see the lockf state. How show lockf states in "ps" command? I don't find it in ps manpage. What's a lockf state precisely? Why Apache/PHP does not kill this process? I must kill them manually? Is a bug number of lockf processes is important? Thanks. - Nicolas. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Use CGI with suExec without vhost
Hello. I use FreeBSD 7 with apache13-modssl. I compiled apache with SuExec support. However, my CGI programs wirtual host are not wrapped by SuExec. I don't want to use a vhost (i have only one application on my apache: Nagios). If I install a CGI program in a vhost with User/Group directive, SuExec works. How could solve this problem? Thanks. - Nicolas ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
problem with RAID Hard (hptrr driver)
Hello. I have a machine, with a RAID Controller. In the dmesg, I see: hptrr: HPT RocketRAID controller driver v1.1 (Mar 28 2008 16:05:16) And after, I see: hptrr: no controller detected. Is it normal? Does my RAID 1 work correctly? I read the hptrr manpage, and no informations are given. I read too the handbook (section RAID HARD) and the command "atacontrol list" returns nothing. In /dev, I see my hdd and the labels: /dev/twed0/dev/twed0s1a /dev/twed0s1c /dev/twed0s1e /dev/twed0s1g /dev/twed0s1 /dev/twed0s1b /dev/twed0s1d /dev/twed0s1f /dev/twed0s1h Anybody could help me? How verify if the RAID HARD is working well? Thanks. - Nicolas. ___ 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 RAID Hard (hptrr driver)
Nicolas Letellier a écrit : Hello. I have a machine, with a RAID Controller. In the dmesg, I see: hptrr: HPT RocketRAID controller driver v1.1 (Mar 28 2008 16:05:16) And after, I see: hptrr: no controller detected. Is it normal? Does my RAID 1 work correctly? I read the hptrr manpage, and no informations are given. I read too the handbook (section RAID HARD) and the command "atacontrol list" returns nothing. In /dev, I see my hdd and the labels: /dev/twed0/dev/twed0s1a /dev/twed0s1c /dev/twed0s1e /dev/twed0s1g /dev/twed0s1 /dev/twed0s1b /dev/twed0s1d /dev/twed0s1f /dev/twed0s1h Anybody could help me? How verify if the RAID HARD is working well? Thanks. - Nicolas. I forgot to copy the full dmesg: Copyright (c) 1992-2008 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.0-RELEASE #1: Fri Mar 28 16:05:28 CET 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/COOK Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Core(TM)2 Duo CPU E6750 @ 2.66GHz (2666.63-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x6fb Stepping = 11 Features=0xbfebfbff Features2=0xe3fd AMD Features=0x2010 AMD Features2=0x1 Cores per package: 2 real memory = 2136997888 (2038 MB) avail memory = 2083860480 (1987 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 hptrr: HPT RocketRAID controller driver v1.1 (Mar 28 2008 16:05:16) acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 acpi_hpet0: iomem 0xfed0-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 900 cpu0: on acpi0 est0: on cpu0 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 82a082a0600082a device_attach: est0 attach returned 6 p4tcc0: on cpu0 cpu1: on acpi0 est1: on cpu1 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 82a082a0600082a device_attach: est1 attach returned 6 p4tcc1: on cpu1 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: irq 16 at device 1.0 on pci0 pci1: on pcib1 vgapci0: port 0xd0c0-0xd0c7 mem 0xfeb0-0xfeb7,0xc000-0xdfff,0xfe90-0xfe9f irq 16 at device 2.0 on pci0 pcib2: irq 16 at device 28.0 on pci0 pci2: on pcib2 pcib3: irq 17 at device 28.1 on pci0 pci3: on pcib3 re0: port 0xc000-0xc0ff mem 0xfea2-0xfea20fff irq 17 at device 0.0 on pci3 re0: Using 2 MSI messages miibus0: on re0 rgephy0: PHY 1 on miibus0 rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto re0: Ethernet address: 00:1c:c0:3d:a0:b8 re0: [FILTER] re0: [FILTER] pcib4: at device 30.0 on pci0 pci4: on pcib4 twe0: <3ware Storage Controller. Driver version 1.50.01.002> port 0xb000-0xb00f mem 0xfe81-0xfe81000f,0xfe00-0xfe7f irq 21 at device 6.0 on pci4 twe0: [GIANT-LOCKED] twe0: [ITHREAD] twe0: 2 ports, Firmware FE8S 1.05.00.068, BIOS BE7X 1.08.00.048 isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xd070-0xd07f irq 16 at device 31.1 on pci0 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 ata1: [ITHREAD] atapci1: port 0xd060-0xd067,0xd050-0xd053,0xd040-0xd047,0xd030-0xd033,0xd020-0xd02f irq 17 at device 31.2 on pci0 atapci1: [ITHREAD] ata2: on atapci1 ata2: [ITHREAD] ata3: on atapci1 ata3: [ITHREAD] pci0: at device 31.3 (no driver attached) acpi_button0: on acpi0 acpi_button1: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio0: [FILTER] pmtimer0 on isa0 orm0: at iomem 0xcb800-0xcc7ff,0xcc800-0xcd7ff pnpid ORM on isa0 ppc0: parallel port not found. sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa-0xb on isa0 Timecounters tick every 1.000 msec hptrr: no controller detected. twed0: on twe0 twed0: 238474MB (488395120 sectors) SMP: AP CPU #1 Launched! Trying to mount root from ufs:/dev/twed0s1a re0: link state changed to UP I use FreeBSD 7.0-RELEASE Thanks. - Nicolas. ___ 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 RAID Hard (hptrr driver)
Josh Paetzel a écrit : hptrr is the driver for a highpoint rocketraid, your controller is evidentally a 3ware, and is being picked up by twe. You can monitor the array by installing sysutils/3dm from ports. I monitor my array with tw_cli. I have this: /c0 show Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy -- u0RAID-1OK - - - 232.885 ON - Port Status Unit SizeBlocksSerial --- p0 OK u0 232.88 GB 488397168 VDS41LT8D97USH p1 OK u0 232.88 GB 488397168 VDS41LT8D7B8PH How know if my RAID is software or hardware? How know if data replication works? And, why this message "hptrr: no controller detected" in my dmesg? Thanks! - Nicolas. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Cannot build dovecot with bdb support
Hello. I use FreeBSD-6.3. I want to install dovecot port with dbd support. However, that's impossible. See my error: hecking for pam/pam_appl.h... no checking for pam_setcred in -lpam... yes checking for auth_userokay... no checking db_env_create in -ldb... no configure: error: Can't build with db support: libdb not found ===> Script "configure" failed unexpectedly. Please report the problem to y...@coolrat.org [maintainer] and attach the "/usr/ports/mail/dovecot/work/dovecot-1.1.8/config.log" including the output of the failure of your make command. Also, it might be a good idea to provide an overview of all packages installed on your system (e.g. an `ls /var/db/pkg`). *** Error code 1 Stop in /usr/ports/mail/dovecot. *** Error code 1 Stop in /usr/ports/mail/dovecot. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portinstall.60329.0 env make ** Fix the problem and try again. ** Listing the failed packages (-:ignored / *:skipped / !:failed) ! mail/dovecot (configure error) At the top of the "make", I see "dovecot-1.1.8 depends on shared library: db41.1 - found". So, I have some db files installed... When I remove dbd support, it works. I wrote to the maintainer. But, temporarly, I want to solve this problem and add bdb support to my dovecot. Do you have a solution? Why I havn't got libdb? Thanks. Best regards, -- -Nicolas. ___ 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 build dovecot with bdb support
On Wed, 28 Jan 2009 09:27:04 -0900 Mel wrote: > On Wednesday 28 January 2009 07:47:53 Nicolas Letellier wrote: > > Hello. > > > > I use FreeBSD-6.3. I want to install dovecot port with dbd support. > > However, that's impossible. See my error: > > > > hecking for pam/pam_appl.h... no > > checking for pam_setcred in -lpam... yes > > checking for auth_userokay... no > > checking db_env_create in -ldb... no > > configure: error: Can't build with db support: libdb not found > > ===> Script "configure" failed unexpectedly. > > Please report the problem to y...@coolrat.org [maintainer] and attach the > > "/usr/ports/mail/dovecot/work/dovecot-1.1.8/config.log" including the > > The answer is in there. Works for me with db46. Could you show the part of > config.log where it says it fails? > Search for "checking db_env_create in -ldb" and anything below that will be > helpful. I built db46 port, but I was the same error whel building dovecot... The log says: configure:27631: checking db_env_create in -ldb configure:27660: cc -o conftest -std=gnu99 -O2 -pipe -march=pentium4 -I/usr/local/include/db41 -L/usr/local/lib -fno-strict-aliasing -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -I/usr/local/include -L/usr/local/lib conftest.c -ldb >&5 /usr/bin/ld: cannot find -ldb Regards, -- -Nicolas. ___ 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 build dovecot with bdb support
On Wed, 28 Jan 2009 15:19:44 -0900 Mel wrote: > On Wednesday 28 January 2009 13:32:59 Nicolas Letellier wrote: > > On Wed, 28 Jan 2009 09:27:04 -0900 > > > > Mel wrote: > > > On Wednesday 28 January 2009 07:47:53 Nicolas Letellier wrote: > > > > Hello. > > > > > > > > I use FreeBSD-6.3. I want to install dovecot port with dbd support. > > > > However, that's impossible. See my error: > > > > > > > > hecking for pam/pam_appl.h... no > > > > checking for pam_setcred in -lpam... yes > > > > checking for auth_userokay... no > > > > checking db_env_create in -ldb... no > > > > configure: error: Can't build with db support: libdb not found > > > > ===> Script "configure" failed unexpectedly. > > > > Please report the problem to y...@coolrat.org [maintainer] and attach > > > > the "/usr/ports/mail/dovecot/work/dovecot-1.1.8/config.log" including > > > > the > > > > > > The answer is in there. Works for me with db46. Could you show the part > > > of config.log where it says it fails? > > > Search for "checking db_env_create in -ldb" and anything below that will > > > be helpful. > > > > I built db46 port, but I was the same error whel building dovecot... > > The log says: > > > > configure:27631: checking db_env_create in -ldb > > configure:27660: cc -o conftest -std=gnu99 -O2 -pipe -march=pentium4 > > -I/usr/local/include/db41 -L/usr/local/lib -fno-strict-aliasing -Wall -W > > -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith > > -Wchar-subscripts -Wformat=2 -Wbad-function-cast -I/usr/local/include > > -L/usr/local/lib conftest.c -ldb >&5 /usr/bin/ld: cannot find -ldb > > > -L/usr/local/lib/db41 is missing above. Not entirely sure why that is. I removed db41 package (and dependances) I installed db46. Now, it works. db41 does not install some files in /usr/local/lib (like libdb). Thanks for your advices. Regards. -- -Nicolas. ___ 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"
differences of disk usage between du and quota binaries
Hello. I use FreeBSD 6.3. I set quota to my fs. But, when I print disk usage with du -sh, I have: r...@domain sites $ du -sh folder 633Mfolder But, when I print disk usage with quota -u user, I have: isk quotas for user user (uid 2002): Filesystem usage quota limit grace files quota limit grace /var 648264 70 702963 0 0 Why this difference? (633M against 648264) Regards, -- -Nicolas. ___ 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"
edit users quota in a script
Hello. I use a script to create automatically my users (with pw, and mkdir, etc...). I use quota, and I have to excute 'edquota -u user', and enter quota informations. So, the process can not be automaticated. And cannot be part of my script. I don't find informations in edquota(8) manpages about editing user quota without open a file. Is an other solution exists? I'm looking for a solution in command line (for my script). Regards, -- -Nicolas. ___ 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: differences of disk usage between du and quota binaries
On Fri, 6 Feb 2009 20:12:56 + RW wrote: > On Fri, 6 Feb 2009 20:13:17 +0100 > Nicolas Letellier wrote: > > > Hello. > > > > I use FreeBSD 6.3. I set quota to my fs. > > But, when I print disk usage with du -sh, I have: > > > >.. > > > > Why this difference? (633M against 648264) > > > > Try dividing 648264 by 1024. Ok. Thanks a lot for your response. Regards. -- -Nicolas. ___ 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: edit users quota in a script
On Sat, 07 Feb 2009 14:09:13 +0200 Manolis Kiagias wrote: > Nicolas Letellier wrote: > > Hello. > > > > I use a script to create automatically my users (with pw, and mkdir, > > etc...). I use quota, and I have to excute 'edquota -u user', and enter > > quota informations. So, the process can not be automaticated. And cannot be > > part of my script. > > > > I don't find informations in edquota(8) manpages about editing user quota > > without open a file. > > > > Is an other solution exists? I'm looking for a solution in command line > > (for my script). > > > > Regards, > > > > > The edquota(8) command accepts a '-e' option that allows it to set > quotas non-interactively. Try man edquota again. Haaa... yes, I forgot -e option. Thanks a lot! Regards, -- -Nicolas. ___ 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 when uploading files with Apache
Hello. I use apache13 with FreeBSD 6.3. I have some websites, in : /var/www/sites/site1 /var/www/sites/site2 I use PHP 5 (compiled in apache module). The rights are: ls -ls /var/www/sites/site1: www:site1 All files are owned by www user. All files are grouped in site{1,2} group. I have a php script in /var/www/sites/site1. I call it with www.domain.com/test.php. If, in my php page, I create a folder (in /var/www/sites/site1/), it have www:site1 in rights. Ok, it's good. However, if I create a file, it have www:wheel in rights. What's the problem? Apache runs in www:www. I does not have folder grouped in wheel group. Why Apache set 'wheel' as group when I upload a file? Do you have advices, solutions... ? Thanks! -- -Nicolas. ___ 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: Problem when uploading files with Apache
On Sun, 8 Feb 2009 07:50:34 -0500 Glen Barber wrote: > On Sun, Feb 8, 2009 at 7:31 AM, Nicolas Letellier > wrote: > > Hello. > > > > I use apache13 with FreeBSD 6.3. > > I have some websites, in : > > /var/www/sites/site1 > > /var/www/sites/site2 > > > > I use PHP 5 (compiled in apache module). > > > > The rights are: > > > > ls -ls /var/www/sites/site1: www:site1 > > > > All files are owned by www user. All files are grouped in site{1,2} group. > > > > I have a php script in /var/www/sites/site1. I call it with > > www.domain.com/test.php. If, in my php page, I create a folder (in > > /var/www/sites/site1/), it have www:site1 in rights. Ok, it's good. > > However, if I create a file, it have www:wheel in rights. > > > > What's the problem? > > > > Apache runs in www:www. I does not have folder grouped in wheel group. > > > > Why Apache set 'wheel' as group when I upload a file? > > > > Do you have advices, solutions... ? > > > > I haven't used 1.3 in years... I don't think www:www is proper, but I > may be wrong. With 2.2.X, the permissions are root:wheel. What > happens when you execute the page? What is printed the error log? Thanks for your response. I have another FreeBSD (7.0) and Apache 1.3, and it works. On this machine (6.3) it does not work. When I upload a FILE, the rights are root:wheel ; when I create a folder, the rights are www:site1. www:site1 are rights of all files. The problem is... I don't understand the "wheel". Apache does not run in wheel. All my folders/files are not grouped by "wheel". I don't understand WHY apache set 'wheel' in group... I have nothing in log. Because there are no errors... All is ok... Just the rights.. -- -Nicolas. ___ 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: Problem when uploading files with Apache
On Sun, 8 Feb 2009 08:01:13 -0500 Glen Barber wrote: > On Sun, Feb 8, 2009 at 7:56 AM, Nicolas Letellier > wrote: > > I have another FreeBSD (7.0) and Apache 1.3, and it works. On this machine > > (6.3) it does not work. > > What do you mean it does not work. You state below there are no > errors. If it "does not work" there should be errors. It does not work because Apache don't set 'good rights'. Without error. So, for Apache, there are no errors. For me, yes. It is not normal that the rights are www:wheel. > > The problem is... I don't understand the "wheel". Apache does not run in > > wheel. All my folders/files are not grouped by "wheel". > > 'wheel' is root's default group. But it is not the www's default group. And Apache runs a www user. I *never* launch my scripts as root. So, that's why I don't understand. > > > > I have nothing in log. Because there are no errors... All is ok... Just the > > rights.. > > > > But you say above "it does not work." It does not work because apache set www:wheel on rights when I UPLOAD a file ; on the other hand, when I create file/folder, the rights are www:www. When I launch this very simple script: ./aaa file is created with www:www. So, anybody could explain me when I upload a file, rights are www:wheel? And WHY wheel group is used? This group may never be used for Apache. -- -Nicolas. ___ 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: Problem when uploading files with Apache
On Sun, 08 Feb 2009 08:53:59 -0500 Lowell Gilbert wrote: > Nicolas Letellier writes: > > > So, anybody could explain me when I upload a file, rights are www:wheel? > > I'm going to guess that it's just inheriting the group from the > directory. The normal default in BSD is for a file to get the gid > of the directory. The directory you are uploading into should be owned > by the group you want the files to have. That's I always learn. But in this case, it's not true. I upload into "testdir/" which has www:www rights. And I launch my upload script, and the file is www:wheel I don't understand. I'm on this problem for 4 hours, and I don't find the solution -- -Nicolas. ___ 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: Problem when uploading files with Apache
On Sun, 8 Feb 2009 06:11:27 -0800 (PST) Gabe wrote: > --- On Sun, 2/8/09, Nicolas Letellier wrote: > > > From: Nicolas Letellier > > Subject: Re: Problem when uploading files with Apache > > To: "FreeBSD Questions" > > Cc: "Glen Barber" , "Lowell Gilbert" > > > > Date: Sunday, February 8, 2009, 6:02 AM > > On Sun, 08 Feb 2009 08:53:59 -0500 > > Lowell Gilbert > > wrote: > > > > > Nicolas Letellier writes: > > > > > > > So, anybody could explain me when I upload a > > file, rights are www:wheel? > > > > > > I'm going to guess that it's just inheriting > > the group from the > > > directory. The normal default in BSD is for a file to > > get the gid > > > of the directory. The directory you are uploading > > into should be owned > > > by the group you want the files to have. > > > > That's I always learn. But in this case, it's not > > true. > > I upload into "testdir/" which has www:www > > rights. > > > > And I launch my upload script, and the file is www:wheel > > > > > > > > I don't understand. > > I'm on this problem for 4 hours, and I don't find > > the solution > > -- > > -Nicolas. > > 'www' wouldn't happen to be in the wheel group would it? No, www is not a member of wheel group. -- -Nicolas. ___ 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: Problem when uploading files with Apache
On Sun, 8 Feb 2009 09:09:45 -0500 Glen Barber wrote: > On Sun, Feb 8, 2009 at 9:02 AM, Nicolas Letellier > wrote: > > > > That's I always learn. But in this case, it's not true. > > I upload into "testdir/" which has www:www rights. > > > > And I launch my upload script, and the file is www:wheel > > > > What are the permissions on the file you are uploading? I'm uploading the file from a web client. This is a php script. I have another FreeBSD (7.0), with the SAME apache, and I don't have the problem on it. Files uploaded are www:www (normal). On my machine (6.3), with the SAME apache, files uploaded are www:wheel. I set the *same* php script, I send the same file. I'm looking for differences between them, but none. -- -Nicolas. ___ 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: Problem when uploading files with Apache
On Sun, 8 Feb 2009 06:11:27 -0800 (PST) Gabe wrote: > --- On Sun, 2/8/09, Nicolas Letellier wrote: > > > From: Nicolas Letellier > > Subject: Re: Problem when uploading files with Apache > > To: "FreeBSD Questions" > > Cc: "Glen Barber" , "Lowell Gilbert" > > > > Date: Sunday, February 8, 2009, 6:02 AM > > On Sun, 08 Feb 2009 08:53:59 -0500 > > Lowell Gilbert > > wrote: > > > > > Nicolas Letellier writes: > > > > > > > So, anybody could explain me when I upload a > > file, rights are www:wheel? > > > > > > I'm going to guess that it's just inheriting > > the group from the > > > directory. The normal default in BSD is for a file to > > get the gid > > > of the directory. The directory you are uploading > > into should be owned > > > by the group you want the files to have. > > > > That's I always learn. But in this case, it's not > > true. > > I upload into "testdir/" which has www:www > > rights. > > > > And I launch my upload script, and the file is www:wheel > > > > > > > > I don't understand. > > I'm on this problem for 4 hours, and I don't find > > the solution > > -- > > -Nicolas. > > 'www' wouldn't happen to be in the wheel group would it? Ok, I found! Yeah. We must set a upload_tmp_dir (instead the default upload_dir). And this folder must have your rights. By default, this folder has root:wheel (in 1777 mod). So, when Apache copies uploaded files from this folder, it keep the wheel group. Hope this tip could help others persons. Thanks for your time and your advices. Regards, -- -Nicolas. ___ 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 and Environment
Hello. I use apache13 and php5. When I do a phpinfo(), I can see in "Environment" sensibles datas when I launch apache in root. I see all my env variables (as MAIL, TERM, USER, PWD, LOGNAME, EDITOR, OSTYPE, LANG, etc, etc...). So, we see informations about user who launched apache. When apache is launched as boot (with apache_enable="YES"), I don't see these informations. I only see: HOME/ PATH/sbin:/bin:/usr/sbin:/usr/bin RC_PID 39 PWD / This is OK. There is no critical informations. How could I launch apache and mask these informations? I must reboot to have this default datas, else I see environment data about the user who lauch it. Thanks. -- - Nicolas. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
use a specific php.ini for php cli
Hello. I would like to know if it is possible to have another php.ini for php command line? I have a php.ini with many restrictions (open_basedir, disabled functions, etc...) used by apache (and mod_php). I would like to user another php.ini file for php command line (I don't want to have disabled functions or safe_mode for command line php). I use php5 in the port tree. Thanks for your informations. -- - Nicolas. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
problem with dovecot and mysql at boot
Hello. In my rc.conf, I have: dovecot_enable="YES" mysql_enable="YES" At boot, I have this error: Jun 16 12:34:16 trinite dovecot: auth-worker(default): mysql: Connect failed to localhost (panel): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) - waiting for 1 seconds before retry I think it's because mysql is started after dovecot. How resolve this, and specify to launch dovecot after mysql is running? Best regards, -- -Nicolas. ___ 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 dovecot and mysql at boot
On Mon, 16 Jun 2008 14:08:40 +0300 Manolis Kiagias <[EMAIL PROTECTED]> wrote: > Nicolas Letellier wrote: > > Hello. > > > > In my rc.conf, I have: > > dovecot_enable="YES" > > mysql_enable="YES" > > > > At boot, I have this error: > > Jun 16 12:34:16 trinite dovecot: auth-worker(default): mysql: Connect > > failed to localhost (panel): Can't connect to local MySQL server through > > socket '/tmp/mysql.sock' (2) - waiting for 1 seconds before retry > > > > I think it's because mysql is started after dovecot. How resolve this, and > > specify to launch dovecot after mysql is running? > > > > Best regards, > > > > > > Are you sure this is what's happening? I have mysql and dovecot, and > dovecot starts after mysql in my system. > Try something like > > rcorder /etc/rc.d/* /usr/local/etc/rc.d/* > > or > > dmesg -a |more > > to see the startup order. Do you actually have to start it by hand after > boot, or does it really start on the retry? Ok, the problem is due to my my.cnf. However, I cannot explain which value of this file causes this problem. I deleted it, and after reboot, the probleme has disapeared. I re-cp it, and reboot, and the problem was not here. I think sometimes, and with my.cnf options, mysql is too slow to be launched, and then, dovecot and others applications could have a problem. So, I cannot explain this problem. On the other hand, it was not -big- problem, just a warning. -- -Nicolas. ___ 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 dovecot and mysql at boot
On Mon, 16 Jun 2008 15:59:21 +0200 "Johan Hendriks" <[EMAIL PROTECTED]> wrote: > Does you're my.cnf file contains an entry that needs to be resolved by > dns and if so can it be resolved! > Maybe named is not started before mysql. > Try setting that entry in /etc/hosts. No, it does not contains any domains. It's just the my-medium.cnf. -- -Nicolas. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
restart named in a cron
Hi. I want to restart named in a script executed by a cron. My script is: #!/bin/sh # verify named conf and restart it /usr/sbin/named-checkconf if [ ! $? -eq 0 ]; then echo "Errors when verifying named configuration" exit 1 else /etc/rc.d/named restart > /dev/null fi # Ok, it's done exit 0 However, the cron returns some errors: umount: not found mtree: not found umount: not found mount: not found /etc/rc.d/named: WARNING: devfs_domount(): Unable to mount devfs on /var/named/dev devfs: not found devfs: not found I can restart named manually, but not with a cron. Do you have an idea to solve this problem? Why could I restart it manually and not with a cron? Thanks! -- -Nicolas. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: restart named in a cron
Le Tue, 24 Jun 2008 21:48:42 +0300, Manolis Kiagias <[EMAIL PROTECTED]> a écrit : > Nicolas Letellier wrote: > > Hi. > > > > I want to restart named in a script executed by a cron. My script > > is: > > > > #!/bin/sh > > # verify named conf and restart it > > /usr/sbin/named-checkconf > > if [ ! $? -eq 0 ]; then > > echo "Errors when verifying named configuration" > > exit 1 > > else > > /etc/rc.d/named restart > /dev/null > > fi > > > > # Ok, it's done > > exit 0 > > > > > > However, the cron returns some errors: > > umount: not found > > mtree: not found > > umount: not found > > mount: not found > > /etc/rc.d/named: WARNING: devfs_domount(): Unable to mount devfs > > on /var/named/dev devfs: not found > > devfs: not found > > > > I can restart named manually, but not with a cron. > > > > Do you have an idea to solve this problem? Why could I restart it > > manually and not with a cron? > > > > Thanks! > > > > > Well, probably cron does not share your environment, thus it does > not have your PATH. It simply cannot find the commands you see as > "not found". Try inserting something like: > > PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin > > at the top of your script. Alternatively, you could use full paths to > the commands in the script, but it seems the errors come from the > system scriprt, /etc/rc.d/named and you wouldn't want to touch that. > Thanks, it works when I define my PATH in the script. Indeed, I couldn't add full path in the script because the error was due to /etc/rc.d/named script. Thanks for the help! -- - Nicolas. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
problem when building dovecot-sieve with the new dovecot port
Hi. I'm upgrading my dovecot from 1.0.14 to 1.1. I pkg_deinstall my dovecot and my dovecot-sieve. dovecot installs correctly. However, dovecot-sieve does not want to be built: cc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/ports/mail/dovecot/work/dovecot-1.1.1 -I/usr/ports/mail/dovecot/work/dovecot-1.1.1/src/lib -I../../src -std=gnu99 -O2 -pipe -march=pentium4 -fno-strict-aliasing -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wstrict-aliasing=2 -DENABLE_REGEX -MT comparator.lo -MD -MP -MF .deps/comparator.Tpo -c comparator.c -fPIC -DPIC -o .libs/comparator.o comparator.c:150: error: expected ';', ',' or ')' before '__attr_unused__' comparator.c:217: error: expected ';', ',' or ')' before '__attr_unused__' comparator.c:225: error: expected ';', ',' or ')' before '__attr_unused__' comparator.c:239: error: expected ';', ',' or ')' before '__attr_unused__' comparator.c:259: error: expected ';', ',' or ')' before '__attr_unused__' comparator.c: In function 'lookup_comp': comparator.c:392: error: 'octet_contains' undeclared (first use in this function) comparator.c:392: error: (Each undeclared identifier is reported only once comparator.c:392: error: for each function it appears in.) comparator.c:395: error: 'octet_matches' undeclared (first use in this function) comparator.c:399: error: 'octet_regex' undeclared (first use in this function) comparator.c:415: error: 'ascii_casemap_contains' undeclared (first use in this function) comparator.c:418: error: 'ascii_casemap_matches' undeclared (first use in this function) *** Error code 1 Stop in /usr/ports/mail/dovecot-sieve/work/dovecot-sieve-1.0.2/src/libsieve. *** Error code 1 Stop in /usr/ports/mail/dovecot-sieve/work/dovecot-sieve-1.0.2/src. *** Error code 1 Stop in /usr/ports/mail/dovecot-sieve/work/dovecot-sieve-1.0.2. *** Error code 1 Stop in /usr/ports/mail/dovecot-sieve/work/dovecot-sieve-1.0.2. *** Error code 1 Stop in /usr/ports/mail/dovecot-sieve. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portinstall.24674.0 env make ** Fix the problem and try again. ** Listing the failed packages (-:ignored / *:skipped / !:failed) ! mail/dovecot-sieve(compiler error) So, my upgrade process to new dovecot failed I'm going to install my backups and go back to dovecot 1.0.14. I cannot upgrade my system to new dovecot if dovecot-sieve port is broken. Thanks. -- -Nicolas. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
mysql log and newsyslog
Hello. I have a problem with mysql logs and newsyslog. I archive mysql log with this in my my.cnf: log=/var/log/mysql My log works fine. However, when newsylog archives the log and create a new log file, mysql doesn't log anymore anything. See my newsyslog.conf: /var/log/mysql mysql:wheel 640 100 *@T23 Z And after 23:00: -rw-r- 1 mysql wheel 62 1 jul 23:00 mysql -rw-r- 1 mysql wheel 213993 1 jul 23:00 mysql.0.gz The old log is archived, the new is created, but mysql doestn't log anymore anything. Any idea to solve this problem? Thanks! -- - Nicolas. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
problem with sendmail and su
Hello. I use FreeBSD 7 with sendmail. I have a problem for sending email. More precisely, with the sender of the mail. When I'm logged to my machine in root, the mail is sent with "[EMAIL PROTECTED]" with sender. OK, no problems. When I'm logged to my machine in nicolas, the mail is sent with "[EMAIL PROTECTED]" with sender. OK, no problems. However, when I'm logged in nicolas to my machine, and if I do a "su root" or "su - root", and I send a mail, the sender will be "[EMAIL PROTECTED]" and not "[EMAIL PROTECTED]". It's a problem, because I done a "su" to be logged as root. I don't have this problem with a FreeBSD/Postfix. Thanks for your advices and helps. I don't understand this problem. Regards, -- - Nicolas. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"