fusefs-libs compile error
While trying to upgrade from 2.9.3 of fusefs-libs: root@squid:/usr/ports/sysutils/fusefs-libs# make install clean === Building package for fusefs-libs-2.9.3_1 Creating package /usr/ports/packages/All/fusefs-libs-2.9.3_1.tbz Registering depends: libiconv-1.14_1. Creating bzip'd tar ball in '/usr/ports/packages/All/fusefs-libs-2.9.3_1.tbz' tar: share/doc/fusefs/libs/how-fuse-works: Cannot stat: No such file or directory tar: share/doc/fusefs/libs/kernel.txt: Cannot stat: No such file or directory tar: Error exit delayed from previous errors. pkg_create: make_dist: tar command failed with code 256 *** [do-package] Error code 1 Stop in /usr/ports/sysutils/fusefs-libs. *** [install] Error code 1 Stop in /usr/ports/sysutils/fusefs-libs. root@squid:/usr/ports/sysutils/fusefs-libs# What's up with this? ~Doug ___ 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: Anyone using squid and pf?
[...] Rules from pf.conf # macros ext_if=xl0 int_if=bge0 tcp_services={ 22, 993, 5910:5917 } tcp_priv_services={ 389, 443 } proxy_services = { 21, 80 } icmp_types={ echoreq unreach squench timex } internal_net = 172.18.0.0/16 proxy = 172.18.0.1 proxyport=8021 ^ No whitespace here # tables table goodguys persist table sshguard persist # options set block-policy return # ports are closed but can be seen set loginterface $ext_if set skip on lo0 # scrub scrub in rdr pass proto tcp from any to any port ftp - 127.0.0.1 port 8021 # redirect www trafic to proxy rdr on $int_if inet proto tcp from $internal_net to any port $proxy_services - $proxy port 8080 ^ Whitespace here. Maybe that's the issue here? # ext_if IP address could be dynamic, hence ($ext_if) nat on $ext_if from !($ext_if) to any - ($ext_if) [...] ___ 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
apcupsd 3.4.10 fails to install
Hello- I'm having troubling installing apcupsd 3.4.10 on a FreeBSD 9.0 machine. This is what I get: aries# pwd /usr/ports/sysutils/apcupsd aries# make install clean === Building for apcupsd-3.14.10 src src/lib src/drivers src/drivers/apcsmart src/drivers/dumb src/drivers/net src/drivers/pcnet src/drivers/usb src/drivers/usb/generic src/libusbhid LDsrc/apcupsd /usr/ports/sysutils/apcupsd/work/apcupsd-3.14.10/src/lib/libapc.a(astring.o): In function `astring::assign(char const*, int)': astring.cpp:(.text+0xbb): undefined reference to `operator new[](unsigned int)' /usr/ports/sysutils/apcupsd/work/apcupsd-3.14.10/src/lib/libapc.a(astring.o): In function `astring::realloc(unsigned int)': astring.cpp:(.text+0x23c): undefined reference to `operator new[](unsigned int)' /usr/ports/sysutils/apcupsd/work/apcupsd-3.14.10/src/lib/libapc.a(astring.o): In function `astring::vformat(char const*, char*)': astring.cpp:(.text+0x4a5): undefined reference to `operator new[](unsigned int)' gmake[2]: *** [apcupsd] Error 1 gmake[1]: *** [all] Error 2 gmake: *** [src_DIR] Error 2 *** Error code 1 Stop in /usr/ports/sysutils/apcupsd. *** Error code 1 Stop in /usr/ports/sysutils/apcupsd. aries# This system was compiled from svn sources. The ARIES kernel conf is as follows: aries# less /usr/src/sys/i386/conf/ARIES # # GENERIC -- Generic kernel configuration file for FreeBSD/i386 # # For more information on this file, please read the config(5) manual page, # and/or the handbook section on Kernel Configuration Files: # # http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html # ..snip.. # # $FreeBSD: releng/9.0/sys/i386/conf/GENERIC 227305 2011-11-07 13:40:54Z marius $ include GENERIC nocpu I486_CPU nocpu I586_CPU ident ARIES options KVA_PAGES=512 # increase system memory usage from 1GB to 2GB for ZFS usage nodeviceeisa nodevicefdc Contents of make.conf: aries# less /etc/make.conf # added by DSS 2/23/09 #.if $(.CURDIR:M*/sysutils/bacula-client) || \ #$(.CURDIR:M*/sysutils/bacula-client) #CONFIGURE_ARGS+=--enable-static-fd #.endif WITHOUT_X11=yes # added by use.perl 2012-09-21 10:18:17 PERL_VERSION=5.14.2 ~Doug ___ 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: apcupsd 3.4.10 fails to install
I'm having troubling installing apcupsd 3.4.10 on a FreeBSD 9.0 machine. This is what I get: aries# pwd /usr/ports/sysutils/apcupsd aries# make install clean === Building for apcupsd-3.14.10 src src/lib src/drivers src/drivers/apcsmart src/drivers/dumb src/drivers/net src/drivers/pcnet src/drivers/usb src/drivers/usb/generic src/libusbhid LDsrc/apcupsd /usr/ports/sysutils/apcupsd/work/apcupsd- 3.14.10/src/lib/libapc.a(astring.o): In function `astring::assign(char const*, int)': astring.cpp:(.text+0xbb): undefined reference to `operator new[](unsigned int)' /usr/ports/sysutils/apcupsd/work/apcupsd- 3.14.10/src/lib/libapc.a(astring.o): In function `astring::realloc(unsigned int)': astring.cpp:(.text+0x23c): undefined reference to `operator new[](unsigned int)' /usr/ports/sysutils/apcupsd/work/apcupsd- 3.14.10/src/lib/libapc.a(astring.o): In function `astring::vformat(char const*, char*)': astring.cpp:(.text+0x4a5): undefined reference to `operator new[](unsigned int)' gmake[2]: *** [apcupsd] Error 1 gmake[1]: *** [all] Error 2 gmake: *** [src_DIR] Error 2 *** Error code 1 Stop in /usr/ports/sysutils/apcupsd. *** Error code 1 Stop in /usr/ports/sysutils/apcupsd. aries# This system was compiled from svn sources. The ARIES kernel conf is as follows: aries# less /usr/src/sys/i386/conf/ARIES # # GENERIC -- Generic kernel configuration file for FreeBSD/i386 # # For more information on this file, please read the config(5) manual page, # and/or the handbook section on Kernel Configuration Files: # #http://www.FreeBSD.org/doc/en_US.ISO8859- 1/books/handbook/kernelconfig-config.html # ..snip.. # # $FreeBSD: releng/9.0/sys/i386/conf/GENERIC 227305 2011-11-07 13:40:54Z marius $ include GENERIC nocpu I486_CPU nocpu I586_CPU ident ARIES options KVA_PAGES=512 # increase system memory usage from 1GB to 2GB for ZFS usage nodeviceeisa nodevicefdc Contents of make.conf: aries# less /etc/make.conf # added by DSS 2/23/09 #.if $(.CURDIR:M*/sysutils/bacula-client) || \ #$(.CURDIR:M*/sysutils/bacula-client) #CONFIGURE_ARGS+=--enable-static-fd #.endif WITHOUT_X11=yes # added by use.perl 2012-09-21 10:18:17 PERL_VERSION=5.14.2 I played around with the selecting/deselecting config options and got apcupsd to install. Previously I had the following options selected: aries# make showconfig === The following configuration options are available for apcupsd-3.14.10: APCSMART_DRV=on: Compile APC SmartUPS serial driver APCDUMB_DRV=on: Compile dumb UPS driver CLIENT_ONLY=off: Only NIS client (no network server or drivers) CGI=off: Compile with CGI programms to show status PCNET_DRV=on: Compile PowerChute Network Shutdown driver USB=on: Compile with USB Support driver SNMP_DRV=on: Compile with SNMP driver SNMP_DRV_OLD=off: Compile with old SNMP driver TCP_WRAPPERS=on: Compile with TCP_WRAPPERS support TEST_DRV=off: Compile TEST driver GAPCMON=off: Build GTK GUI front-end === Use 'make config' to modify these settings aries# The install with the above options failed. Next I ran make with the following options: aries# make showconfig === The following configuration options are available for apcupsd-3.14.10: APCSMART_DRV=on: Compile APC SmartUPS serial driver APCDUMB_DRV=off: Compile dumb UPS driver CLIENT_ONLY=off: Only NIS client (no network server or drivers) CGI=off: Compile with CGI programms to show status PCNET_DRV=on: Compile PowerChute Network Shutdown driver USB=off: Compile with USB Support driver SNMP_DRV=off: Compile with SNMP driver SNMP_DRV_OLD=off: Compile with old SNMP driver TCP_WRAPPERS=on: Compile with TCP_WRAPPERS support TEST_DRV=off: Compile TEST driver GAPCMON=off: Build GTK GUI front-end === Use 'make config' to modify these settings aries# This time make succeeded and I was able to install. What appears to be missing from my kernel file? Since the UPS is a SmartUPS 450SC, I really do not need the USB option. Nor do I need the APCDUMB_DRV option. This leaves the SNMP_DRV as a potential culprit. Does the kernel need to be compiled with SNMP? I was able to install apcupsd on other FreeBSD machines. The only difference is that these other machines are running the RELEASE version kernel instead of a compiled kernel. ~Doug ___ 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 replaces csup?
I also find portsnap slower than either csup or svn. That surprises me. Once the initial download and extract is done, I find portsnap fetch update to be miles faster than csup. However, each to his own, I suppose. +1 ___ 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: NFSv4 ACL permissions setting
Wiadomość napisana przez Doug Sampson w dniu 31 sie 2012, o godz. 01:42: [..] group:DSP-production:rwxpDdaARWcCos:fd:allow - group:DSP-production:rwxpDdaARWcCos:fd:allow - This itself looks like a bug in setfacl(1). I'll look into it. However... [..] #!/bin/sh # run this script where you wish to effect the changes # reset perms to default find . -type d -print0 | xargs -0 setfacl -b * Why the asterisk? Also, using -m with NFSv4 ACLs is not a very good idea - it's supposed to work, but with NFSv4 ACLs the ordering does matter, and -m simply modifies the ACL entry in place, while the effect of the entry might depend e.g. on deny entries before it. Use -a instead. Forgive me- I am not particularly strong when it comes to shell scripting. I will modify so that the -a parameter is used instead of -m when setting new entries. What would you use in place of the asterisk when you want to apply the setfacl -b command to either all files or all directories? The period? ~Doug ___ 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: NFSv4 ACL permissions setting
#!/bin/sh # run this script where you wish to effect the changes # reset perms to default find . -type d -print0 | xargs -0 setfacl -b * Why the asterisk? Also, using -m with NFSv4 ACLs is not a very good idea - it's supposed to work, but with NFSv4 ACLs the ordering does matter, and -m simply modifies the ACL entry in place, while the effect of the entry might depend e.g. on deny entries before it. Use -a instead. Forgive me- I am not particularly strong when it comes to shell scripting. I will modify so that the -a parameter is used instead of -m when setting new entries. Ok. It's simply a matter of replacing '-m' with '-a0'. I did not realize that one could add a numeral to the -a parameter to indicate the desired order. I just did a 'man setfacl' and indeed it is described as such. Good to know! Is there a preferred way of ordering? I.e. owner@ at line 0 followed by group@ at line 1 followed by everyone@ at line 2 then followed by the two groups described in my original mail (e.g. dsp-production dsp-marketing)? Or is that totally dependent on how I want to structure the permissions so that the desired effect is achieved? For example like this: dougs@dorado:/data# getfacl ADS-New/ # file: ADS-New/ # owner: root # group: DSP-production group:DSP-production:rwxpDdaARWcCos:fd:allow group:DSP-marketing:rwxpDdaARWcCos:fd:allow owner@:rwxpDdaARWcCos:fd:allow group@:rwxpDdaARWcCos:fd:allow everyone@:--a-R-c--s:--:allow dougs@dorado:/data# where anyone who is a member of the dsp-production group will ALWAYS have full_set permissions simply because that is indicated at line 0 and thus meets the test of line 0? Processing stops at line 0 as long as the user is a member of that group, right? Does a user who does not belong to any of the groups indicated above and isn't an owner have the ability to modify the directory? I assume that would be the everyone@ group... Btw, the bug in setfacl(1) command has been fixed in HEAD and will be merged into STABLE in a month from now. What exactly was the bug? Did I uncover it inadvertently? What would you use in place of the asterisk when you want to apply the setfacl -b command to either all files or all directories? The period? Directories: find . -type d -print0 | xargs -0 setfacl -b Files: find . -type f -print0 | xargs -0 setfacl -b The whole point of xargs here is to take the list of files it gets from find and turn it into a series of arguments for setfacl. So, in the example above, the actual invocation of setfacl would read setfacl -b first-file second- file etc. With the asterisk, it would be setfacl -b * first-file second- file; this means setfacl would modify not only the files passed by find, but also all the files in the current directory. Ah, interesting. I'm going to test the changes to the scripts. Thanks for the feedback. ~Doug ___ 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
NFSv4 ACL permissions setting
Hello all- I've set up ZFS on a FreeBSD 9.0 64-bit server recently. One of the things I've had to learn relates to NFSv4 ACLs. I've developed two scripts to reset permissions- one for files and the other for folders. I've run into an issue with executing a script to set permissions on a bunch of folders. The root filesystem is /data. There are a bunch of subfolders followed by more subfolders. Allow me to demonstrate as follows: dougs@dorado:/# getfacl ./data # file: ./data # owner: root # group: DSP-production group:DSP-production:rwxpDdaARWcCos:fd:allow group:DSP-marketing:rwxpDdaARWcCos:fd:allow owner@:rwxpDdaARWcCos:fd:allow group@:rwxpDdaARWcCos:fd:allow everyone@:r-x---a-R-c--s:--:allow dougs@dorado:/# cd data dougs@dorado:/data# ll total 45 drwxrwx---+ 5 root DSP-production 5 Aug 28 10:27 ADS-New drwxrwx---+ 60 root DSP-production 118 Aug 27 14:17 ADS-OLD [ .. snip .. ] drwxrwx---+ 12 root DSP-production12 Aug 27 14:16 WorkinProgress dougs@dorado:/data# getfacl ./ADS-New/ # file: ./ADS-New/ # owner: root # group: DSP-production group:DSP-production:rwxpDdaARWcCos:fd:allow group:DSP-marketing:rwxpDdaARWcCos:fd:allow owner@:rwxpDdaARWcCos:fd:allow group@:rwxpDdaARWcCos:fd:allow everyone@:--a-R-c--s:--:allow dougs@dorado:/data# cd ./ADS-New/ dougs@dorado:/data/ADS-New# ll total 9 drwxrwx---+ 5 root nobody 7 Aug 27 14:20 Artworks drwxrwx---+ 4 root nobody 4 Jul 17 12:12 ForDSP drwxrwx---+ 78 root nobody 78 Jul 23 13:17 ForMarketing dougs@dorado:/data/ADS-New# /root/bin/reset-perms-prod-mkt-dirs.sh dougs@dorado:/data/ADS-New# getfacl ./Artworks/ # file: ./Artworks/ # owner: root # group: nobody group:DSP-production:rwxpDdaARWcCos:fd:allow - group:DSP-production:rwxpDdaARWcCos:fd:allow - group:DSP-marketing:rwxpDdaARWcCos:fd:allow owner@:rwxpDdaARWcCos:fd:allow group@:rwxpDdaARWcCos:fd:allow everyone@:--a-R-c--s:--:allow dougs@dorado:/data/ADS-New# cd Artworks/ dougs@dorado:/data/ADS-New/Artworks# ll total 4234 drwxrwx---+ 2 root nobody2 Jul 17 12:08 Ask JoeS drwxrwx---+ 2 root nobody 10 Jul 17 12:12 Cool - AD d-w-rwx---+ 2 DSP-alfredo nobody2 Aug 27 14:20 Jaye Additional Art -rwxrwx---+ 1 root DSP-production 3770445 Mar 11 2010 comingsoonIntNepal.pdf -rwxrwx---+ 1 root DSP-production 415338 Mar 11 2010 previewcopy.pdf dougs@dorado:/data/ADS-New/Artworks# cd Ask\ JoeS/ dougs@dorado:/data/ADS-New/Artworks/Ask JoeS# cd .. dougs@dorado:/data/ADS-New/Artworks# getfacl Ask\ JoeS/ # file: Ask JoeS/ # owner: root # group: nobody group:DSP-production:rwxpDdaARWcCos:fd:allow - group:DSP-marketing:rwxpDdaARWcCos:fd:allow owner@:rwxpDdaARWcCos:fd:allow group@:rwxpDdaARWcCos:fd:allow everyone@:--a-R-c--s:--:allow dougs@dorado:/data/ADS-New/Artworks# As you can see, the ADS-New folder where I executed the script shows duplicate entries of the DSP-production group whereas the Ask Joe subfolder underneath the ADS-New folder shows only one DSP-production group. If I run this script on the ADS-OLD folder, I see the same effect- only the first level of subfolders get duplicate DSP-production entries while the rest of the subfolders only contain one entry of the DSP-production group. Why is this happening? The contents of the /root/bin/reset-perms-prod-mkt-dirs.sh is as follows: #!/bin/sh # run this script where you wish to effect the changes # reset perms to default find . -type d -print0 | xargs -0 setfacl -b * # apply perms to files find . -type d -print0 | xargs -0 setfacl -m group@:full_set:fd:allow * find . -type d -print0 | xargs -0 setfacl -m owner@:full_set:fd:allow * find . -type d -print0 | xargs -0 setfacl -m g:dsp-marketing:full_set:fd:allow * find . -type d -print0 | xargs -0 setfacl -m g:dsp-production:full_set:fd:allow * Um? Am I missing something? ~Doug ___ 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: LaCie P'9230 Is Not Recognized
I went out and got a LaCie P'9230 drive, an external USB 3.0/2.0 2TB drive (http://www.lacie.com/products/product.htm?id=10559). FreeBSD 9.0-STABLE #5 running on an Intel D845GEBV2L motherboard does not recognize it. Apr 23 15:57:11 test kernel: usb_alloc_device: set address 2 failed (USB_ERR_STALLED, ignored) Apr 23 15:57:11 test kernel: usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_STALLED Apr 23 15:57:12 test kernel: usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_STALLED, ignored) Apr 23 15:57:12 test kernel: usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_STALLED Apr 23 15:57:13 test kernel: usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_STALLED, ignored) Apr 23 15:57:13 test kernel: usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_STALLED Apr 23 15:57:13 test kernel: ugen3.2: Unknown at usbus3 (disconnected) Apr 23 15:57:13 test kernel: uhub_reattach_port: could not allocate new device root@test:/usr/home/install# 'camcontrol devlist -v' does not indicate any daX devices. I've used a variety of smaller external LaCie USB 2.0 drives with this motherboard successfully in the past. A link at the LaCie web site (http://www.lacie.com/more/index.htm?id=10112) indicates that a driver needs to be installed on a Mac in order to realize true USB 3.0 speeds. Does this mean that for me to use this drive, I need a special driver? I've consulted the hardware compatibility list but it appears to not have been updated to reflect newer hardware. Any advice would be appreciated. So I sent an email to Technical Support. They basically said they do not support any OSes other than Windows and Mac OS X and not even Windows Server. That was expected. That said, are there any USB 3.0/2.0 2TB drives that you are currently using with FreeBSD 9.0 or even 8.3? ~Doug ___ 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
LaCie P'9230 Is Not Recognized
I went out and got a LaCie P'9230 drive, an external USB 3.0/2.0 2TB drive (http://www.lacie.com/products/product.htm?id=10559). FreeBSD 9.0-STABLE #5 running on an Intel D845GEBV2L motherboard does not recognize it. Apr 23 15:57:11 test kernel: usb_alloc_device: set address 2 failed (USB_ERR_STALLED, ignored) Apr 23 15:57:11 test kernel: usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_STALLED Apr 23 15:57:12 test kernel: usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_STALLED, ignored) Apr 23 15:57:12 test kernel: usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_STALLED Apr 23 15:57:13 test kernel: usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_STALLED, ignored) Apr 23 15:57:13 test kernel: usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_STALLED Apr 23 15:57:13 test kernel: ugen3.2: Unknown at usbus3 (disconnected) Apr 23 15:57:13 test kernel: uhub_reattach_port: could not allocate new device root@test:/usr/home/install# 'camcontrol devlist -v' does not indicate any daX devices. I've used a variety of smaller external LaCie USB 2.0 drives with this motherboard successfully in the past. A link at the LaCie web site (http://www.lacie.com/more/index.htm?id=10112) indicates that a driver needs to be installed on a Mac in order to realize true USB 3.0 speeds. Does this mean that for me to use this drive, I need a special driver? I've consulted the hardware compatibility list but it appears to not have been updated to reflect newer hardware. Any advice would be appreciated. ~Doug ___ 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
Squid with Kerberos user authentication
I'm running squid on a proxy server for several years and now my boss wants usage reports organized by users' login names instead of IP addresses. We're in an Active Directory environment and use Kerberos authentication. I googled around and used this link: http://wiki.squid-cache.org/ConfigExamples/Authenticate/Kerberos#Squid_C onfiguration_File I made all the changes according to the instructions contained in the link. I ran into a problem with setting the KRB5_KTNAME variable (as listed in the Squid Configuration File section). It states as follows: --- Add the following to the squid startup script (Make sure the keytab is readable by the squid process owner e.g. chgrp squid /etc/squid/HTTP.keytab; chmod g+r /etc/squid/HTTP.keytab ) KRB5_KTNAME=/etc/squid/HTTP.keytab export KRB5_KTNAME --- I'm using the csh shell and apparently the export command isn't part of the csh shell. After some searching around, I came across this link: http://www.cyberciti.biz/faq/freebsd-how-to-export-shell-variable/ which gives me the csh replacement for the bash export command. I tried this: # setenv KRB5_KTNAME /usr/local/etc/squid/krbcron_squid.keytab and it appears to have worked. On top of that, the instructions require that the establishment of the KRB5_KTNAME variable be done in the squid startup script. In the FreeBSD OS, would that be the /usr/local/etc/rc.d/squid file? I don't see a section for setenv in the squid.conf file. I know I am almost there but I need a nudge here! ~Doug ___ 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
Cannot start smartd on Quantum drive
Hello, Running FreeBSD 8.0. I cloned using 'dump' a very old and failing Fujitsu drive that was mounted as /dev/ad0 to a Quantum drive that was mounted at the time of dumping as /dev/ad3. I used the method of cloning described in http://forums.freebsd.org/showthread.php?t=11680. There is a second drive that was mounted as /dev/ad2. After the clone was completed and the system was reconfigured taking out the failing drive and inserting the replacement drive as a master drive. Upon booting in the new drive configuration, I received the following message that it couldn't boot from /dev/ad0s1a: , | Timecounter TSC frequency 1294237239 Hz quality 80 | Timecounters tick every 1.000 msec | Trying to mount root from ufs:/dev/ad0s1a | ROOT MOUNT ERROR | If you have invalid mount options, reboot, and first try the following | from the loader prompt: | | set vfs.root.mountfrom.options=rw | | and then remove invalid entries from /etc/fstab | | Loader variables: | vfs.root.mountfrom=ufs:/dev/ad0s1a | vfs.root.mountfrom.options=rw ` I found from dmesg that I had the following mounted disks: ad2: 26147MB QUANTUM FIREBALLP KX27.3 A1S.3700 at ata1-master UDMA66 ad3: 76293MB Seagate ST380011A 8.16 at ata1-slave UDMA100 I ended up with a mountroot command prompt. After fiddling around, I finally was able to change the boot order so that it boots from /dev/ad2s1. I also had to edit the /etc/fstab. After rebooting, I was able to boot up the system successfully except that I now received an error message that smartd couldn't start monitoring /dev/ad2 as follows: ad2: FAILURE - SMART status=51READY,DSC,ERROR error=4ABORTED Ok, check log: r...@ftp:/root# tail /var/log/messages ..snip.. Jun 24 10:26:48 ftp kernel: Trying to mount root from ufs:/dev/ad2s1a Jun 24 10:26:48 ftp kernel: GEOM: ufsid/47336891c9952d8a: geometry does not match label (255h,63s != 16h,63s). Jun 24 10:26:52 ftp kernel: ad2: FAILURE - SMART status=51READY,DSC,ERROR error=4ABORTED Jun 24 10:26:52 ftp smartd[786]: Unable to register ATA device /dev/ad2 at line 41 of file /usr/local/etc/smartd.conf Jun 24 10:26:52 ftp smartd[786]: Unable to register device /dev/ad2 (no Directive -d removable). Exiting. Jun 24 10:26:52 ftp root: /etc/rc: WARNING: failed to start smartd ..snip.. r...@ftp:/root# Listing relevant info in smartd.conf: # First (primary) ATA/IDE hard disk. Monitor all attributes, enable # automatic online data collection, automatic Attribute autosave, and # start a short self-test every day between 2-3am, and a long self test # Saturdays between 3-4am. #/dev/hda -a -o on -S on -s (S/../.././02|L/../../6/03) /dev/ad2 -a -o on -S on -s (S/../.././02|L/../../6/03) /dev/ad3 -a -o on -S on -s (S/../.././02|L/../../6/03) fsck'ing all volumes on /dev/ad2 comes up clean. Trying to start smartd from command prompt: r...@ftp:/root# smartctl -s on /dev/ad2 smartctl 5.39.1 2010-01-28 r3054 [FreeBSD 8.0-STABLE i386] (local build) Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net === START OF ENABLE/DISABLE COMMANDS SECTION === Error SMART Enable failed Smartctl: SMART Enable Failed. A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options. r...@ftp:/root# smartctl -s on -T verypermissive /dev/ad2 smartctl 5.39.1 2010-01-28 r3054 [FreeBSD 8.0-STABLE i386] (local build) Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net === START OF ENABLE/DISABLE COMMANDS SECTION === Error SMART Enable failed Smartctl: SMART Enable Failed. r...@ftp:/root# smartctl -i /dev/ad2 smartctl 5.39.1 2010-01-28 r3054 [FreeBSD 8.0-STABLE i386] (local build) Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net === START OF INFORMATION SECTION === Model Family: Quantum Fireball Plus KX series Device Model: QUANTUM FIREBALLP KX27.3 Serial Number:158002833918 Firmware Version: A1S.3700 User Capacity:27,417,755,648 bytes Device is:In smartctl database [for details use: -P show] ATA Version is: 4 ATA Standard is: ATA/ATAPI-4 T13 1153D revision 15 Local Time is:Thu Jun 24 11:12:35 2010 PDT SMART support is: Available - device has SMART capability. SMART support is: Enabled SMART Disabled. Use option -s with argument 'on' to enable it. r...@ftp:/root# smartctl -t short /dev/ad2 smartctl 5.39.1 2010-01-28 r3054 [FreeBSD 8.0-STABLE i386] (local build) Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net SMART Disabled. Use option -s with argument 'on' to enable it. r...@ftp:/root# smartctl -a /dev/ad2 smartctl 5.39.1 2010-01-28 r3054 [FreeBSD 8.0-STABLE i386] (local build) Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net === START OF INFORMATION SECTION === Model Family: Quantum Fireball Plus KX series Device Model: QUANTUM FIREBALLP KX27.3
messed up ports index
Hello, I have a messed up ports index that I cannot clean. I want to uninstall lang/php5 but it does not seem to uninstall. The same thing goes for security/php5-hash. I was uninstalling php5 ports in an effort to return to the php52 ports. So that is how this happened. I ran the pkgdb -F but it looks like I chose some unfortunate choices that left me where I am now. How can I dig myself out of this? ~Doug corvus-root@/usr/ports: pkg_version -vo archivers/9e= up-to-date with port ..snip.. databases/pgtune= up-to-date with port security/php5-hash needs updating (port has 5.3.2_1) lang/php5 needs updating (port has 5.3.2_1) lang/php52 = up-to-date with port math/php52-bcmath = up-to-date with port archivers/php52-bz2 = up-to-date with port textproc/php52-ctype= up-to-date with port ftp/php52-curl = up-to-date with port databases/php52-dba = up-to-date with port textproc/php52-dom = up-to-date with port graphics/php52-exif = up-to-date with port security/php52-filter = up-to-date with port ftp/php52-ftp = up-to-date with port graphics/php52-gd = up-to-date with port devel/php52-gettext = up-to-date with port security/php52-hash = up-to-date with port converters/php52-iconv = up-to-date with port devel/php52-json= up-to-date with port ..snip.. ___ 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: messed up ports index
Hello, I have a messed up ports index that I cannot clean. I want to uninstall lang/php5 but it does not seem to uninstall. The same thing goes for security/php5-hash. I was uninstalling php5 ports in an effort to return to the php52 ports. So that is how this happened. I ran the pkgdb -F but it looks like I chose some unfortunate choices that left me where I am now. How can I dig myself out of this? ~Doug corvus-root@/usr/ports: pkg_version -vo archivers/9e= up-to-date with port ..snip.. databases/pgtune= up-to-date with port security/php5-hash needs updating (port has 5.3.2_1) lang/php5 needs updating (port has 5.3.2_1) lang/php52 = up-to-date with port math/php52-bcmath = up-to-date with port archivers/php52-bz2 = up-to-date with port textproc/php52-ctype= up-to-date with port ftp/php52-curl = up-to-date with port databases/php52-dba = up-to-date with port textproc/php52-dom = up-to-date with port graphics/php52-exif = up-to-date with port security/php52-filter = up-to-date with port ftp/php52-ftp = up-to-date with port graphics/php52-gd = up-to-date with port devel/php52-gettext = up-to-date with port security/php52-hash = up-to-date with port converters/php52-iconv = up-to-date with port devel/php52-json= up-to-date with port ..snip.. After I googled around some more, I found and ran this: portmaster -o lang/php52 lang/php5 Now I am left with only one item as follows: php5-mhash-5.2.12_2 needs updating (port has 5.3.2_1) There is *no* lang/php5-mhash. Only lang/php52-mhash. Should I deinstall and install? ~Doug ___ 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: messed up ports index
I have a messed up ports index that I cannot clean. I want to uninstall lang/php5 but it does not seem to uninstall. The same thing goes for security/php5-hash. I was uninstalling php5 ports in an effort to return to the php52 ports. So that is how this happened. I ran the pkgdb -F but it looks like I chose some unfortunate choices that left me where I am now. How can I dig myself out of this? ~Doug corvus-root@/usr/ports: pkg_version -vo archivers/9e= up-to-date with port ..snip.. databases/pgtune= up-to-date with port security/php5-hash needs updating (port has 5.3.2_1) lang/php5 needs updating (port has 5.3.2_1) lang/php52 = up-to-date with port math/php52-bcmath = up-to-date with port archivers/php52-bz2 = up-to-date with port textproc/php52-ctype= up-to-date with port ftp/php52-curl = up-to-date with port databases/php52-dba = up-to-date with port textproc/php52-dom = up-to-date with port graphics/php52-exif = up-to-date with port security/php52-filter = up-to-date with port ftp/php52-ftp = up-to-date with port graphics/php52-gd = up-to-date with port devel/php52-gettext = up-to-date with port security/php52-hash = up-to-date with port converters/php52-iconv = up-to-date with port devel/php52-json= up-to-date with port ..snip.. After I googled around some more, I found and ran this: portmaster -o lang/php52 lang/php5 Now I am left with only one item as follows: php5-mhash-5.2.12_2 needs updating (port has 5.3.2_1) There is *no* lang/php5-mhash. Only lang/php52-mhash. Should I deinstall and install? Ooops. I meant to say security/php5-mhash and security/php52-mhash. Again, there is no security/php5-mhash. How can I remove this safely? ~Doug ___ 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: messed up ports index
On Jun 11, 2010, at 3:48 PM, Doug Sampson wrote: portmaster -o lang/php52 lang/php5 Now I am left with only one item as follows: php5-mhash-5.2.12_2 needs updating (port has 5.3.2_1) There is *no* lang/php5-mhash. Only lang/php52-mhash. Should I deinstall and install? If I recall right, mhash is now built-in or emulated in php-5.3; I think you can simply deinstall it. Right. My issue is, there isn't a path of /usr/ports/security/php5-mhash -- only /usr/ports/security/php52-mhash. How can I remove the security/php5-mhash with a missing directory? I am unable to deinstall. How does one remove? ~Doug ___ 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: messed up ports index
there is no security/php5-mhash. How can I remove this safely? pkg_delete -f php5-mhash-5.2.12_2 corvus-root@/usr/ports/security/php52-mhash: pkg_delete -f php5-mhash-5.2.12_2 pkg_delete: file '/usr/local/lib/php/20060613/mhash.so' doesn't exist pkg_delete: file '/usr/local/include/php/ext/mhash/config.h' doesn't exist pkg_delete: file '/usr/local/include/php/ext/mhash/php_mhash.h' doesn't exist pkg_delete: file '/usr/local/include/php/ext/mhash' doesn't exist pkg_delete: unable to completely remove directory '/usr/local/include/php/ext/mhash' pkg_delete: couldn't entirely delete package (perhaps the packing list is incorrectly specified?) corvus-root@/usr/ports/security/php52-mhash: portversion -v ..snip.. pgtune-0.9.0= up-to-date with port php52-5.2.13_1 = up-to-date with port php52-bcmath-5.2.13_1 = up-to-date with port ..snip.. Finally, it's gone. Thank you! ~Doug ___ 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
freeze PHP5 at specific version
Recently I discovered that PHP 5.3.x broke my Viart installation. It turned out that ZendOptimizer 3.3.0.a cannot function with PHP 5.3.x. Thus I was forced to downgrade down to PHP5-5.2.12_2. Question: How can I force portupgrade not to upgrade to PHP5-5.3.x? I've tried googling and researching ports management manpages to no avail. I noticed that there's a line for Perl in /etc/make.conf that freezes Perl at a specific version (i.e. PERL_VERSION=5.10.1) but I do not see anything similar to that for PHP5. I must be missing something! I do not know the appropriate search keyword for freezing a port at a specific version. ~Doug ___ 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: freeze PHP5 at specific version
Have a look at this page: http://myfreebsd.homeunix.net/hints_n_kinks/ports-pkgtools.html. If you add the php port names to the HOLD_PKGS array, that prevents portupgrade from touching them. Bingo! That is what I'm looking for! Say, do I need to list each PHP5 extension in the HOLD_PKG section? For example, I have the following PHP5 extensions on top of the lang/php5 as follows: corvus-root@/usr/ports/databases/php5-sqlite: portversion -v | g php5 php5-5.2.12_2 needs updating (port has 5.3.2) php5-bcmath-5.2.12_2 needs updating (port has 5.3.2) php5-bz2-5.2.12_2 needs updating (port has 5.3.2) php5-ctype-5.2.12_2 needs updating (port has 5.3.2) php5-curl-5.2.12_2needs updating (port has 5.3.2) php5-dba-5.2.12_2 needs updating (port has 5.3.2) php5-dom-5.2.12_2 needs updating (port has 5.3.2) php5-exif-5.2.12_2needs updating (port has 5.3.2) php5-filter-5.2.12_2 needs updating (port has 5.3.2) php5-ftp-5.2.12_2 needs updating (port has 5.3.2) php5-gd-5.2.12_2 needs updating (port has 5.3.2) php5-gettext-5.2.12_2 needs updating (port has 5.3.2) php5-hash-5.2.12_2needs updating (port has 5.3.2) php5-iconv-5.2.12_2 needs updating (port has 5.3.2) php5-json-5.2.12_2needs updating (port has 5.3.2) php5-mbstring-5.2.12_2needs updating (port has 5.3.2) php5-mcrypt-5.2.12_2 needs updating (port has 5.3.2) php5-mhash-5.2.12_2 = up-to-date with port php5-ncurses-5.2.12_2 = up-to-date with port php5-openssl-5.2.12_2 needs updating (port has 5.3.2) php5-pcre-5.2.12_2 = up-to-date with port php5-pdo-5.2.12_2 needs updating (port has 5.3.2) php5-pdo_sqlite-5.2.12_2 needs updating (port has 5.3.2) php5-pgsql-5.2.12_2 needs updating (port has 5.3.2) php5-posix-5.2.12_2 needs updating (port has 5.3.2) php5-pspell-5.2.12_2 needs updating (port has 5.3.2) php5-readline-5.2.12_2needs updating (port has 5.3.2) php5-session-5.2.12_2 needs updating (port has 5.3.2) php5-simplexml-5.2.12_2 needs updating (port has 5.3.2) php5-soap-5.2.12_2needs updating (port has 5.3.2) php5-sockets-5.2.12_2 needs updating (port has 5.3.2) php5-spl-5.2.12_2 = up-to-date with port php5-sqlite-5.2.12_2 needs updating (port has 5.3.2) php5-tidy-5.2.12_2needs updating (port has 5.3.2) php5-tokenizer-5.2.12_2 needs updating (port has 5.3.2) php5-xml-5.2.12_2 needs updating (port has 5.3.2) php5-xmlreader-5.2.12_2 needs updating (port has 5.3.2) php5-xmlrpc-5.2.12_2 needs updating (port has 5.3.2) php5-xmlwriter-5.2.12_2 needs updating (port has 5.3.2) php5-xsl-5.2.12_2 needs updating (port has 5.3.2) php5-zip-5.2.12_2 needs updating (port has 5.3.2) php5-zlib-5.2.12_2needs updating (port has 5.3.2) corvus-root@/usr/ports/databases/php5-sqlite: Is pkgtools a port that I need to install? Another question: I also use portmaster and portmanager. Does these two tools make use of the /usr/local/etc/pkgtools.conf file? ~Doug ___ 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
setting default directory ACLs using xargs
I need to do this at the command prompt for all directories: r...@aries:/data/Products# getfacl -d . # file: . # owner: DSP-alfredo # group: DSP-production r...@aries:/data/Products# getfacl . | setfacl -d -b -n -M - . r...@aries:/data/Products# getfacl -d . # file: . # owner: DSP-alfredo # group: DSP-production user::rwx user:DSP-alfredo:rwx group::rwx group:DSP-production:rwx mask::rwx other::r-x r...@aries:/data/Products# okay, it works. Now, I have thousands of subdirectories that I want to apply this to. When I attempt to use the xarg command with the above command modified to work with xargs, I end up with an error message: r...@aries:/data/Products/RSVP# find . -type d -print0 | xargs -0 getfacl | setfacl -d -b -n -M - setfacl: line too long in - r...@aries:/data/Products/RSVP# Okay, that doesn't work. What is the output of... r...@aries:/data/Products/RSVP# find . -type d -print0 | xargs -0 getfacl # file: . # owner: DSP-alfredo # group: DSP-production user::rwx user:DSP-doug:rwx user:DSP-alfredo:rwx group::rwx group:DSP-production:rwx mask::rwx other::r-x # file: ./.AppleDouble # owner: DSP-alfredo # group: DSP-production user::rwx user:DSP-doug:rwx user:DSP-alfredo:rwx group::rwx group:DSP-production:rwx mask::rwx other::r-x # file: ./Design # owner: DSP-alfredo # group: DSP-production user::rwx user:DSP-doug:rwx user:DSP-alfredo:rwx group::rwx group:DSP-production:rwx mask::rwx other::r-x # file: ./Design/Dev Heads # owner: DSP-alfredo # group: DSP-production user::rwx user:DSP-doug:rwx user:DSP-alfredo:rwx group::rwx group:DSP-production:rwx mask::rwx other::r-x # file: ./Design/Dev Heads/Backup # owner: DSP-alfredo # group: DSP-production user::rwx user:DSP-doug:rwx user:DSP-alfredo:rwx group::rwx group:DSP-production:rwx mask::rwx other::r-x [ ..snip..] # file: ./Design/need cleanup/head/OLD # owner: DSP-alfredo # group: DSP-production user::rwx user:DSP-doug:rwx user:DSP-alfredo:rwx group::rwx group:DSP-production:rwx mask::rwx other::r-x # file: ./Manuscripts # owner: DSP-matte # group: DSP-production user::rwx user:DSP-doug:rwx user:DSP-alfredo:rwx group::rwx group:DSP-production:rwx mask::rwx other::r-x r...@aries:/data/Products/RSVP# Seems there are approximately 10 lines of output for each 'getfacl' command. How do I feed each group of ten lines into the next command of 'setfacl'? The manpages of xargs are a bit cryptic for me. NOTE: There appears to be a known bug with the 'setfacl' utility when attempting to set default ACLs on directories. See http://lists.freebsd.org/pipermail/freebsd-fs/2005-May/001053.html for more details. This is what led me to the workaround of: $ getfacl /aclTest/ | setfacl -d -b -n -M - /aclTest/ which actually works for me. I do dread the idea of having to manually apply this to all existing directories in the /data filesystem. Thousands of them. Trying again: r...@aries:/data/Products/RSVP# find . -type d -print0 | xargs -0 getfacl . | setfacl -d -b -n -M - setfacl: line too long in - r...@aries:/data/Products/RSVP# find . -type d -print0 | xargs -0 getfacl . | setfacl -d -b -n -M - . setfacl: line too long in - r...@aries:/data/Products/RSVP# find . -type d -print0 | xargs -0 getfacl . | xargs -0 setfacl -d -b -n -M - . setfacl: illegal filename: Inappropriate ioctl for device r...@aries:/data/Products/RSVP# find . -type d -print0 | xargs -0 getfacl . | setfacl -d -b -n -M - . setfacl: line too long in - r...@aries:/data/Products/RSVP# Any ideas? ~Doug ___ 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
HP USB 2.0 Tape Drive
Hi, I'm looking to buy a tape drive and am currently looking at USB 2.0 DAT tape drives from HP. I searched the hardware compatibility list and cannot locate any information tape drives except the disclaimer that SCSI tape drives do work on SCSI controller cards that are recognized by the FreeBSD OS. The only thing I can find is that apparently the ehci driver must be used if USB 2.0 interface is to be used with a tape drive. Does anyone have had positive or negative experience using these USB-based DAT tape drives? Specifically, I am looking at the HP (Hewlett-Packard) StorageWorks Q1581SB DAT 160 Tape Drive. If there are other branded USB 2.0-based tape drives (i.e. Quantum) that you've used with little or no problems, I would be interested in knowing about these. ~Doug ___ 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: HP USB 2.0 Tape Drive
Hi Doug, Does anyone have had positive or negative experience using these USB-based DAT tape drives? Specifically, I am looking at the HP (Hewlett-Packard) I know that I am not really answering your question but here are a couple of thoughts that came to my mind when reading your post: - USB 2 should be able to sustain the transfer speed to stream your DAT drive, I checked that point; - I always considered DAT one of the worse tape solution myself, too sensitive to the physical conditions, too prone to errors, could never read a tape after 6 months; Interesting points you raise. I have owned several DAT drives (Quantum, Sony, and HP) over the past 17 years and have yet to lose ability to restore data due to bad tapes. I am careful where I store these between use. I use these with SCSI interfaces on Windows systems with one exception- I use a SCSI-based Sony DDS DAT 12/24 tape drive in a FBSD system running PGSQL. All I just want to know is whether FBSD will recognize and work with the tape drive I posed in my previous email (the Hewlett-Packard StorageWorks Q1581SB DAT 160 Tape Drive). Will it be identified as /dev/da* something? Can any one of you confirm if you got any USB 2.0 tape drive to work with FBSD? I like the fact that I can just plug a USB tape drive into a new system in seconds without having to fuss about installing a SCSI/SAS card and have a tape back up made relatively soon. As a side note: I had trouble getting certain branded USB external hard drives recognized by FreeBSD. I ended up using LaCie hard drives as these were listed as being compatible. Thus I am cautious about anything that uses USB in general with FreeBSD. I just got off the phone with a Quantum technical staffer and he was stymied by my question whether their USB 2.0 DAT 160 tape drive would be recognized by FBSD. He pushed me off to a sales representative who is just got off for the day. ~Doug ___ 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
buildworld crashes
I accidentally did a dump on the wrong machine running FBSD 7.1-prerelease overwriting all of the file systems with content from another machine. This machine is simply a ftp server whereas the other machine a FAMP server running FBSD 7.1-prerelease. I would like to keep the contents of the ftp site (in other words, /home). I really don't care for the rest of the file systems. When I attempt to rebuild from sources cvsup'ped, I receive the following error during buildworld as follows: [...] /usr/obj/usr/src/etc created for /usr/src/etc === etc/sendmail (obj) /usr/obj/usr/src/etc/sendmail created for /usr/src/etc/sendmail -- stage 2.3: build tools -- cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj INSTALL=sh /usr/src/tools/install.sh PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bi n:/usr/obj/usr/src/tmp/legacy/usr/games:/sbin:/bin:/usr/sbin:/usr/bin WORLDTMP=/usr/obj/usr/src/tmp VERSION=FreeBSD 7.1-STABLE i386 701102 MAKEFLAGS=-m /usr/src/tools/build/mk -m /usr/src/share/mk /usr/obj/usr/src/make.i386/make -f Makefile.inc1 TARGET=i386 TARGET_ARCH=i386 DESTDIR= BOOTSTRAPPING=701102 -DNO_LINT -DNO_CPU_CFLAGS -DNO_WARNS -DNO_CTF build-tools === bin/csh (obj,build-tools) grep 'ERR_' /usr/src/bin/csh/../../contrib/tcsh/sh.err.c | grep '^#define' sh.err.h Segmentation fault (core dumped) Segmentation fault (core dumped) *** Error code 139 Stop in /usr/src/bin/csh. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. test-root@/usr/src# I've tried the following: # chflags -R noschg /usr/obj/usr # rm -rf /usr/obj/usr # cd /usr/src # make cleandir # make cleandir to no avail. Would it be best to start a fresh installation from a cd-rom instead of trying to repair this system? ~Doug ___ 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
How to create statically linked bacula-fd?
We blew up one of our servers recently and we wanted to restore backed-up data from a Bacula storage server. The Bacula recovery process states that one needs to create a statically linked bacula-fd daemon in order to start the recovery process but it does not offer a how-to for FreeBSD systems-- only for Linux systems. See: http://www.bacula.org/fr/dev-manual/Disast_Recove_Using_Bacula.html#SECTION0 08233000 Below is a list of libraries that bacula-fd needs in order to run: r...@pisces:/root# ldd /usr/local/sbin/bacula-fd /usr/local/sbin/bacula-fd: libz.so.4 = /lib/libz.so.4 (0x280c6000) libthr.so.3 = /lib/libthr.so.3 (0x280d8000) libintl.so.8 = /usr/local/lib/libintl.so.8 (0x280ea000) libwrap.so.5 = /usr/lib/libwrap.so.5 (0x280f3000) libiconv.so.3 = /usr/local/lib/libiconv.so.3 (0x280fa000) libssl.so.5 = /usr/lib/libssl.so.5 (0x281ef000) libcrypto.so.5 = /lib/libcrypto.so.5 (0x2822f000) libstdc++.so.6 = /usr/lib/libstdc++.so.6 (0x2837e000) libm.so.5 = /lib/libm.so.5 (0x2846d000) libgcc_s.so.1 = /lib/libgcc_s.so.1 (0x28482000) libc.so.7 = /lib/libc.so.7 (0x2848c000) How does one go about creating a statically linked bacula-fd? I've googled around and am not getting relevant hits. I checked 'make config' and there isn't any option for creating statically linked file. Could I add one on the fly at the command prompt? If so, what would be the correct syntax? Another way to recover would be to archive the libraries off-site and restore these libraries as part of the recovery process-- putting these libraries in the same directory as the bacula-fd daemon and running it off that folder. However, when I attempt that, it complains of missing libraries. I was told to use ldconfig to add the temporary folder to the system libraries path but I am not having success there either. This is what I used: ldconfig -elf -mv /tmp which according to man ldconfig (if I interpret that correctly) appends the /tmp directory to the existing system libraries path. Does anyone know how to accomplish either of these two methods? ~Doug ___ 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
growfs
I want to ensure that I am correctly applying the concept of the growfs command. I want to remove /dev/ad2s1h and expand /dev/ad2s1g to occupy all of the space left behind by the deletion of /dev/ad2s1h. [EMAIL PROTECTED]:/root# bsdlabel -e /dev/ad2s1 # /dev/ad2s1: 8 partitions: #size offsetfstype [fsize bsize bps/cpg] a: 52428804.2BSD 2048 16384 32776 b: 4138384 524288 swap c: 5860993320unused0 0 # raw part, don't edit d: 524288 46626724.2BSD0 0 0 e: 524288 51869604.2BSD0 0 0 f: 10485760 57112484.2BSD0 0 0 g: 167772160 161970084.2BSD0 0 0 h: 402130164 1839691684.2BSD0 0 0 [EMAIL PROTECTED]:/root# df Filesystem 1K-blocks UsedAvail Capacity Mounted on /dev/ad2s1a 25367860858 17252626%/ devfs110 100%/dev /dev/ad2s1e 253678 410 232974 0%/tmp /dev/ad2s1f5077038 4129758 54111888%/usr /dev/ad2s1d 253678 130346 10303856%/var /dev/ad2s1g 81245672 67645604 710041691%/data /dev/ad2s1h 194736504 99902864 7925472056%/backup According to http://www.freebsd.org/cgi/man.cgi?query=growfssektion=8, it looks like that if I wish to expand /dev/ad2s1g to fill out the slice, the only thing I need to do are the following: -remove /dev/ad2s1h -growfs -s 569902324 /dev/ad2s1g -edit /etc/fstab to remove all references to /dev/ad2s1h Is this correct? Am I missing any other commands? Since the only tool I am familiar with and use for disk partitioning is sysinstall, how do I remove /dev/ad2s1h without resorting to sysinstall? Fdisk? I want to be extremely sure that I am taking the correct steps to perform this operation. Yes, I have backups but this machine is in production and I want to eliminate every possibility of downtime due to issues arising from the improper understanding and use of the 'growfs' command. Thanks. ~Doug ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: 3Ware 9650SE with 4 disk array
Hi, We've received a server containing 3Ware 9650SE controller with 4 ports and it comes with 4 WD7500AYYS drives with the following drive parameters of LBA 1465149168 (sectors?). I'm using FBSD 7.0 RC-1 which provides the necessary drivers for that controller card. The array is created using RAID5. The problem arises when I fdisk the drive array. The sysinstall installation routine complains that the drive parameters provided by the BIOS is incorrect. When I ask to see the drive info using fdisk, I am given the following information: # fdisk parameters extracted from in-core disklabel are: cylinders=273542 heads=255 sectors/tracks=63 (16065 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from BIOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 88484871 (48576 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 165/ sector 59 The data for partition 2 is: UNUSED The data for partition 3 is: UNUSED The data for partition 4 is: UNUSED # I see that when I am finished setting up the drive array, I am getting a much smaller use of the entire array. Using the Auto Defaults option inside bsdlabel, I end up with /dev/da0s1f (/usr) in the range of 40 GB. I should be seeing something in the order of 2 TB. I've tried fdisking and bsdlabeling for 2 Tb to no avail several times. What am I doing wrong? Turns out the disk array had a partition set up for 2048 GB which FBSD 7.0 RC-1 doesn't support. Auto-carving the array to 2047 GB did the trick. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
3Ware 9650SE with 4 disk array
Hi, We've received a server containing 3Ware 9650SE controller with 4 ports and it comes with 4 WD7500AYYS drives with the following drive parameters of LBA 1465149168 (sectors?). I'm using FBSD 7.0 RC-1 which provides the necessary drivers for that controller card. The array is created using RAID5. The problem arises when I fdisk the drive array. The sysinstall installation routine complains that the drive parameters provided by the BIOS is incorrect. When I ask to see the drive info using fdisk, I am given the following information: # fdisk parameters extracted from in-core disklabel are: cylinders=273542 heads=255 sectors/tracks=63 (16065 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from BIOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 88484871 (48576 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 165/ sector 59 The data for partition 2 is: UNUSED The data for partition 3 is: UNUSED The data for partition 4 is: UNUSED # I see that when I am finished setting up the drive array, I am getting a much smaller use of the entire array. Using the Auto Defaults option inside bsdlabel, I end up with /dev/da0s1f (/usr) in the range of 40 GB. I should be seeing something in the order of 2 TB. I've tried fdisking and bsdlabeling for 2 Tb to no avail several times. What am I doing wrong? ~Doug ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
3Ware 9650SE with 4 disk array
Hi, We've received a server containing 3Ware 9650SE controller with 4 ports and it comes with 4 WD7500AYYS drives with the following drive parameters of LBA 1465149168 (sectors?). I'm using FBSD 7.0 RC-1 which provides the necessary drivers for that controller card. The array is created using RAID5. The problem arises when I fdisk the drive array. The sysinstall installation routine complains that the drive parameters provided by the BIOS is incorrect. When I ask to see the drive info using fdisk, I am given the following information: # fdisk parameters extracted from in-core disklabel are: cylinders=273542 heads=255 sectors/tracks=63 (16065 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from BIOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 88484871 (48576 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 165/ sector 59 The data for partition 2 is: UNUSED The data for partition 3 is: UNUSED The data for partition 4 is: UNUSED # I see that when I am finished setting up the drive array, I am getting a much smaller use of the entire array. Using the Auto Defaults option inside bsdlabel, I end up with /dev/da0s1f (/usr) in the range of 40 GB. I should be seeing something in the order of 2 TB. I've tried fdisking and bsdlabeling for 2 Tb to no avail several times. What am I doing wrong? ~Doug ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: newaliases not working?
Mail log below. The first four lines are a result of running 'periodic daily'. The last four lines is when I address a mail directly to admin(at)dawnsign.com (the @ sign has been changed to protect it). Feb 6 17:00:03 ftp sendmail[11196]: l17103fh011196: from=root, size=38, class=0, nrcpts=1, msgid=[EMAIL PROTECTED], [EMAIL PROTECTED] Feb 6 17:00:03 ftp sm-mta[11197]: l17103eC011197: from=[EMAIL PROTECTED], size=367, class=0, nrcpts=1, msgid=[EMAIL PROTECTED], proto=ESMTP, daemon=Daemon0, relay=localhost [127.0.0.1] Feb 6 17:00:03 ftp sendmail[11196]: l17103fh011196: to=to:root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30038, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (l17103eC011197 Message accepted for delivery) Looks like you have a bad entry in /etc/mail/aliases This to=to:root, should look like to=dougs Post the relevant lines from your aliases file. # Pretty much everything else in this file points to root, so # you would do well in either reading root's mailbox or forwarding # root's email from here. root: admin(at)dawnsign.com replaced @ sign with (at) to prevent spamming # Basic system aliases -- these MUST be present MAILER-DAEMON: postmaster postmaster: root # General redirections for pseudo accounts _dhcp: root _pflogd: root bin:root bind: root daemon: root games: root kmem: root mailnull: postmaster man:root news: root nobody: root operator: root pop:root proxy: root smmsp: postmaster sshd: root system: root toor: root tty:root usenet: news uucp: root Oh, and I noticed that I had been typing mail to:root instead of mail root at the command prompt. Thus that would explain why in the logs yesterday we were seeing to=to:root. This morning, I tried again with the mail command and here's the outout from the maillog: Feb 7 10:18:43 ftp sendmail[13901]: l17IIhhO013901: from=root, size=46, class=0, nrcpts=1, msgid=[EMAIL PROTECTED], [EMAIL PROTECTED] Feb 7 10:18:43 ftp sm-mta[13902]: l17IIh7l013902: from=[EMAIL PROTECTED], size=372, class=0, nrcpts=1, msgid=[EMAIL PROTECTED], proto=ESMTP, daemon=Daemon0, relay=localhost [127.0.0.1] Feb 7 10:18:43 ftp sendmail[13901]: l17IIhhO013901: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30046, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (l17IIh7l013902 Message accepted for delivery) Feb 7 10:18:44 ftp sm-mta[13904]: l17IIh7l013902: to=[EMAIL PROTECTED], delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=30372, relay=mercury.dawnsign.com. [192.168.1.4], dsn=2.0.0, stat=Sent (OK) As you can see, there appears mail sent to root still goes to root(at)ftp.dawnsign.com Um? ~Doug ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: newaliases not working?
I'm having trouble getting the periodic reports sent out on a daily basis from a FreeBSD 6.2 server. I've changed the /etc/aliases file so that root points to an administrative mail address. You can do that directly in /etc/periodic.conf: daily_output=[EMAIL PROTECTED] Nice to know this. However, I still would like to fix the issue with the /etc/aliases not being used to translate any mail sent to root to an alternate email address. If anyone knows a cure to this, I'd be grateful. Thanks. ~Doug ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: newaliases not working?
On 2007/02/07 9:33, Doug Sampson seems to have typed: Nice to know this. However, I still would like to fix the issue with the /etc/aliases not being used to translate any mail sent to root to an alternate email address. If anyone knows a cure to this, I'd be grateful. Thanks. I believe that sendmail wants /etc/mail/aliases.db not /etc/aliases. You can remake your aliases.db by: cd /etc/mail make maps Does not seem to do the trick. Feb 7 11:07:08 ftp sendmail[14035]: l17J780C014035: from=root, size=30, class=0, nrcpts=1, msgid=[EMAIL PROTECTED], [EMAIL PROTECTED] Feb 7 11:07:08 ftp sm-mta[14036]: l17J78cU014036: from=[EMAIL PROTECTED], size=356, class=0, nrcpts=1, msgid=[EMAIL PROTECTED], proto=ESMTP, daemon=Daemon0, relay=localhost [127.0.0.1] Feb 7 11:07:08 ftp sendmail[14035]: l17J780C014035: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30030, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (l17J78cU014036 Message accepted for delivery) Feb 7 11:07:09 ftp sm-mta[14038]: l17J78cU014036: to=[EMAIL PROTECTED], delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=30356, relay=mercury.dawnsign.com. [192.168.1.4], dsn=2.0.0, stat=Sent (OK) ~Doug ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: newaliases not working?
I believe that sendmail wants /etc/mail/aliases.db not /etc/aliases. You can remake your aliases.db by: cd /etc/mail make maps Does not seem to do the trick. Sorry, try: make aliases restart (more Makefile for other options) No dice. Feb 7 11:29:48 ftp sm-mta[11136]: restarting /usr/sbin/sendmail due to signal Feb 7 11:29:48 ftp sm-msp-queue[11137]: restarting /usr/sbin/sendmail due to signal Feb 7 11:29:48 ftp sm-mta[14105]: starting daemon (8.13.8): [EMAIL PROTECTED]:30:00 Feb 7 11:29:48 ftp sm-msp-queue[14107]: starting daemon (8.13.8): [EMAIL PROTECTED]:30:00 Feb 7 11:30:05 ftp sendmail[14113]: l17JU50O014113: from=root, size=30, class=0, nrcpts=1, msgid=[EMAIL PROTECTED], [EMAIL PROTECTED] Feb 7 11:30:05 ftp sm-mta[14114]: l17JU5T8014114: from=[EMAIL PROTECTED], size=356, class=0, nrcpts=1, msgid=[EMAIL PROTECTED], proto=ESMTP, daemon=Daemon0, relay=localhost [127.0.0.1] Feb 7 11:30:05 ftp sendmail[14113]: l17JU50O014113: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30030, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (l17JU5T8014114 Message accepted for delivery) Feb 7 11:30:06 ftp sm-mta[14116]: l17JU5T8014114: to=[EMAIL PROTECTED], delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=30356, relay=mercury.dawnsign.com. [192.168.1.4], dsn=2.0.0, stat=Sent (OK) Thanks for the tip on make Makefile. It's interesting but I'd leave that to sendmail whizzes. ~Doug ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
newaliases not working?
I'm having trouble getting the periodic reports sent out on a daily basis from a FreeBSD 6.2 server. I've changed the /etc/aliases file so that root points to an administrative mail address. But for some reason it doesn't get translated to the admin email address. I've run the 'newaliases' several times to no avail. Mail log below. The first four lines are a result of running 'periodic daily'. The last four lines is when I address a mail directly to admin(at)dawnsign.com (the @ sign has been changed to protect it). Feb 6 17:00:03 ftp sendmail[11196]: l17103fh011196: from=root, size=38, class=0, nrcpts=1, msgid=[EMAIL PROTECTED], [EMAIL PROTECTED] Feb 6 17:00:03 ftp sm-mta[11197]: l17103eC011197: from=[EMAIL PROTECTED], size=367, class=0, nrcpts=1, msgid=[EMAIL PROTECTED], proto=ESMTP, daemon=Daemon0, relay=localhost [127.0.0.1] Feb 6 17:00:03 ftp sendmail[11196]: l17103fh011196: to=to:root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30038, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (l17103eC011197 Message accepted for delivery) Feb 6 17:00:04 ftp sm-mta[11199]: l17103eC011197: to=[EMAIL PROTECTED], delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=30367, relay=mercury.dawnsign.com. [192.168.1.4], dsn=2.0.0, stat=Sent (OK) Feb 6 17:18:00 ftp sendmail[11242]: l171I0SO011242: from=root, size=84, class=0, nrcpts=1, msgid=[EMAIL PROTECTED], [EMAIL PROTECTED] Feb 6 17:18:00 ftp sm-mta[11243]: l171I08q011243: from=[EMAIL PROTECTED], size=410, class=0, nrcpts=1, msgid=[EMAIL PROTECTED], proto=ESMTP, daemon=Daemon0, relay=localhost [127.0.0.1] Feb 6 17:18:00 ftp sendmail[11242]: l171I0SO011242: to=to:[EMAIL PROTECTED], ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30084, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (l171I08q011243 Message accepted for delivery) Feb 6 17:18:01 ftp sm-mta[11245]: l171I08q011243: to=admin(at)dawnsign.com, delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=30410, relay=mercury.dawnsign.com. [192.168.1.4], dsn=2.0.0, stat=Sent (OK) ps ax shows that sendmail is running as follows: snip 11136 ?? Ss 0:00.08 sendmail: accepting connections (sendmail) 11137 ?? Is 0:00.01 sendmail: Queue [EMAIL PROTECTED]:30:00 for /var/spool/clientmqueue (sendmail) 11170 ?? Is 0:00.01 /usr/sbin/inetd -wW snip I used to receive these daily security run output messages until the day I installed vsftpd using inetd. There are no mail in any outbound mail queues. What could I be doing wrong? ~Doug ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Ruby won't upgrade to 1.8.5
When trying to portupgrade ruby to 1.8.5, I get the following: ..snip.. Generating RI... /usr/ports/lang/ruby18/work/ruby-1.8.5/lib/yaml.rb:387: [BUG] Segmentation fault ruby 1.8.5 (2006-08-25) [i386-freebsd6] Abort trap *** Error code 134 Stop in /usr/ports/lang/ruby18/work/ruby-1.8.5. *** Error code 1 Stop in /usr/ports/lang/ruby18. *** Error code 1 Stop in /usr/ports/lang/ruby18. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade36977.8 env PORT_UPGRADE=yes make reinstall egrep: /var/db/pkg/ruby-1.8.4_9,1/+CONTENTS: No such file or directory --- Restoring the old version Deinstalling obsoleted packages that are now part of ruby... ** Fix the installation problem and try again. [Updating the pkgdb format:bdb_btree in /var/db/pkg ... - 117 packages found (-0 +1) . done] --- Skipping 'databases/ruby-bdb1' (ruby18-bdb1-0.2.2) because a requisite package 'ruby-1.8.4_9,1' (lang/ruby18) failed (specify -k to force) --- Skipping 'databases/ruby-bdb' (ruby18-bdb-0.5.9_2) because a requisite package 'ruby-1.8.4_9,1' (lang/ruby18) failed (specify -k to force) --- Skipping 'sysutils/portupgrade' (portupgrade-2.1.3.3,2) because a requisite package 'ruby-1.8.4_9,1' (lang/ruby18) failed (specify -k to force) ** Listing the failed packages (*:skipped / !:failed) ! lang/ruby18 (ruby-1.8.4_9,1) (install error) * databases/ruby-bdb1 (ruby18-bdb1-0.2.2) * databases/ruby-bdb (ruby18-bdb-0.5.9_2) * sysutils/portupgrade (portupgrade-2.1.3.3,2) --- Packages processed: 0 done, 113 ignored, 3 skipped and 1 failed ** Could not clean up temporary directory: Directory not empty - /var/tmp/portupgrade6IqfQ0W1 [EMAIL PROTECTED]:/root# Am using portsnap to maintain ports. Running FBSD 6.1. How do I fix this error? ~Doug --- Microsoft: Where do you want to go today? Linux: Where do you want to go tomorrow? FreeBSD: Are you guys coming or what? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
FW: [Samba] getent winbindd on FreeBSD 5.4
I posted this to the Samba list yesterday and since this is related to FreeBSD I thought I'd post to this list. Can anyone shed some light on the 'getent' command in FreeBSD 5.4? It isn't working and I'd like to know if it's because it's based on Linux instead of FreeBSD thus rendering it's usefulness to nil. ~Doug -Original Message- Sent: Thursday, September 15, 2005 04:44 PM To: samba@lists.samba.org Subject: [Samba] getent winbindd on FreeBSD 5.4 I'm trying to get a FreeBSD 5.4 server to join a NT4 domain as a member domain server using winbindd. I've compiled Samba with WinBIND support, ACL Support, Syslog support, UTMP support, SMB PAM module, and with installed POPT library. I've reviewed Chapter 20 of TOSHARG and implemented a good portion of it into our smb.conf file but am having trouble making the 'getent' command work. Running Samba 3.0.20.1. The 'getent' command is found in /usr/compat/linux/usr/bin/. I can join the domain fine and execute 'wbinfo -u' with the expected domain user listing as well as with the 'wbinfo -g' command. However when I attempt to execute 'getent passwd' it shows only the local user accounts. Executing 'getent group' also produces only the local groups. It seems the getent command that comes with the linux_base port on FreeBSD 5.4 may or may not be working. I am unable to verify it though. Doing a 'tdbdump winbind_cache.tdb' reveals that the users are being enumerated but without a corresponding *nix user id. I don't know if the tdbsam is supposed to reveal such information. TOSHARG states that for getent to work, the nsswitch.conf must be properly configured. Mine is as follows: # /etc/nsswitch.conf passwd: compat winbind group: compat winbind hosts: files winbind wins dns networks: files shells: files NSSwitch depends on PAM modules for authentications so here's my login file: # # $FreeBSD: src/etc/pam.d/login,v 1.16 2003/06/14 12:35:05 des Exp $ # # PAM configuration for the login service # # auth authsufficient pam_winbind.so authsufficient pam_unix.so use_first_pass authrequiredpam_stack.soservice=system-auth authrequiredpam_nologin.so no_warn authsufficient pam_self.so no_warn authinclude system # account account sufficient pam_winbind.so account requiredpam_stack.soservice=system-auth account include system # session session requiredpam_stack.soservice=system-auth session include system # password passwordrequiredpam_stack.soservice=system-auth passwordinclude system # smb.conf [global] workgroup = DSP server string = Samba Server security = DOMAIN passdb backend = tdbsam log file = /var/log/samba/log.%m max log size = 50 os level = 33 local master = No dns proxy = No wins server = 192.168.1.1 idmap uid = 15000-2 idmap gid = 15000-2 template homedir = /usr/home/%D/%U template shell = /bin/bash winbind separator = + hosts allow = 192.168.1., 192.168.2., 127. [homes] comment = Home Directories read only = No browseable = No [MacData] comment = Production Data path = /data valid users = @DSP+PRODUCTION read only = No create mask = 0765 The odd thing is- there's no /etc/pam.d/samba file even though I specified that the PAM samba module be installed. Is my PAM whacked? Also, I am unsure if I need to map users to NT account using a text file similar to /etc/smb/smbusers or some file similar to that? When I execute 'pw groupshow DSP+PRODUCTION', the log.smbd shows this: [2005/09/15 16:17:24, 0] passdb/pdb_tdb.c:tdbsam_tdbopen(195) Unable to open/create TDB passwd [2005/09/15 16:17:24, 0] passdb/pdb_tdb.c:tdbsam_getsampwrid(488) pdb_getsampwrid: Unable to open TDB rid database! log.wb-DSP shows this: [2005/09/15 16:17:24, 0] rpc_client/cli_pipe.c:cli_rpc_open_noauth(1700) rpc_pipe_bind failed I'm a newb so would appreciate any advice! ~Doug -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: [Samba] getent winbindd on FreeBSD 5.4
That email is referring to the getent command inside the linux /compat tree. If you need that command to work, you will need to install and set up the appropriate *linux* libraries and files into /compat/linux/ . If this is your only problem, I'd recommend just not running linuxes getent command :) Does anyone know where I can get FreeBSD-native getent??? It isn't in the ports system. Fresh Ports has it and it provides a link to the http://www.domtools.com site but it seems to be inactive. How can I verify that linux libraries have been installed? I looked at this: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/linuxemu-lbc-insta ll.html#LINUXEMU-LIBS-PORT. When I run the 'getent' command, it doesn't complain about missing libraries. When I checked for /compat/linux directory as follows: aries-root@/: ll total 55 ..snip.. drwxr-xr-x 2 root wheel512 Sep 7 06:05 cdrom lrwxr-xr-x 1 root wheel 10 Sep 7 06:08 compat - usr/compat ..snip.. drwxr-xr-x 19 root wheel512 Sep 7 15:11 usr drwxr-xr-x 22 root wheel512 Sep 15 06:43 var aries-root@/: cd compat aries-root@/compat: ll total 2 drwxr-xr-x 8 root wheel 512 Sep 7 06:10 linux aries-root@/compat/linux: ll total 12 drwxr-xr-x 2 root wheel 1024 Sep 7 06:10 bin drwxr-xr-x 7 root wheel 1024 Sep 15 13:43 etc drwxr-xr-x 2 root wheel 2048 Sep 7 06:10 lib drwxr-xr-x 2 root wheel 512 Sep 7 06:10 sbin drwxr-xr-x 8 root wheel 512 Sep 7 06:10 usr drwxr-xr-x 4 root wheel 512 Sep 7 06:10 var aries-root@/compat/linux: cd lib aries-root@/compat/linux/lib: ll total 6288 -rwxr-xr-x 1 root wheel71928 Nov 5 2003 ld-2.3.2.so lrwxrwxrwx 1 root wheel 11 Apr 5 02:51 ld-linux.so.2 - ld-2.3.2.so -rwxr-xr-x 1 root wheel 3416 Nov 5 2003 libBrokenLocale-2.3.2.so lrwxrwxrwx 1 root wheel 24 Apr 5 02:51 libBrokenLocale.so.1 - libBrokenLocale-2.3.2.so -rwxr-xr-x 1 root wheel 4032 Nov 5 2003 libNoVersion-2.3.2.so lrwxrwxrwx 1 root wheel 21 Apr 5 02:51 libNoVersion.so.1 - libNoVersion-2.3.2.so -rwxr-xr-x 1 root wheel15480 Nov 5 2003 libSegFault.so lrwxrwxrwx 1 root wheel 15 Apr 5 02:51 libacl.so.1 - libacl.so.1.0.0 -rw-r--r-- 1 root wheel 301103 Aug 14 2002 libacl.so.1.0.0 -rwxr-xr-x 1 root wheel 8940 Nov 5 2003 libanl-2.3.2.so lrwxrwxrwx 1 root wheel 15 Apr 5 02:51 libanl.so.1 - libanl-2.3.2.so lrwxrwxrwx 1 root wheel 16 Apr 5 02:51 libattr.so.1 - libattr.so.1.0.0 -rw-r--r-- 1 root wheel31255 Aug 14 2002 libattr.so.1.0.0 -rwxr-xr-x 1 root wheel 1212940 Nov 5 2003 libc-2.3.2.so lrwxrwxrwx 1 root wheel 13 Apr 5 02:51 libc.so.6 - libc-2.3.2.so -rwxr-xr-x 1 root wheel20104 Nov 5 2003 libcrypt-2.3.2.so lrwxrwxrwx 1 root wheel 17 Apr 5 02:51 libcrypt.so.1 - libcrypt-2.3.2.so -rwxr-xr-x 1 root wheel 554458 May 26 2002 libdb-3.1.so -rwxr-xr-x 1 root wheel 747259 May 26 2002 libdb-3.2.so -rwxr-xr-x 1 root wheel 656208 May 26 2002 libdb-3.3.so -r-xr-xr-x 1 root wheel 760175 Aug 27 2002 libdb-4.0.so lrwxrwxrwx 1 root wheel 11 Apr 5 02:51 libdb.so.3 - libdb2.so.3 -rwxr-xr-x 1 root wheel 278200 May 26 2002 libdb2.so.3 -rwxr-xr-x 1 root wheel 9184 Nov 5 2003 libdl-2.3.2.so lrwxrwxrwx 1 root wheel 14 Apr 5 02:51 libdl.so.2 - libdl-2.3.2.so -rwxr-xr-x 1 root wheel 854160 Sep 3 2002 libgcc_s-3.2-20020903.so.1 lrwxrwxrwx 1 root wheel 26 Apr 5 02:51 libgcc_s.so.1 - libgcc_s-3.2-20020903.so.1 -rwxr-xr-x 1 root wheel 132596 Nov 5 2003 libm-2.3.2.so lrwxrwxrwx 1 root wheel 13 Apr 5 02:51 libm.so.6 - libm-2.3.2.so -rwxr-xr-x 1 root wheel70348 Nov 5 2003 libnsl-2.3.2.so lrwxrwxrwx 1 root wheel 15 Apr 5 02:51 libnsl.so.1 - libnsl-2.3.2.so -rwxr-xr-x 1 root wheel26500 Nov 5 2003 libnss1_compat-2.3.2.so lrwxrwxrwx 1 root wheel 23 Apr 5 02:51 libnss1_compat.so.1 - libnss1_compat-2.3.2.so -rwxr-xr-x 1 root wheel11588 Nov 5 2003 libnss1_dns-2.3.2.so lrwxrwxrwx 1 root wheel 20 Apr 5 02:51 libnss1_dns.so.1 - libnss1_dns-2.3.2.so -rwxr-xr-x 1 root wheel38492 Nov 5 2003 libnss1_files-2.3.2.so lrwxrwxrwx 1 root wheel 22 Apr 5 02:51 libnss1_files.so.1 - libnss1_files-2.3.2.so -rwxr-xr-x 1 root wheel31360 Nov 5 2003 libnss1_nis-2.3.2.so lrwxrwxrwx 1 root wheel 20 Apr 5 02:51 libnss1_nis.so.1 - libnss1_nis-2.3.2.so -rwxr-xr-x 1 root wheel41000 Nov 5 2003 libnss_compat-2.3.2.so lrwxrwxrwx 1 root wheel 23 Apr 5 02:51 libnss_compat.so.1 - libnss1_compat-2.3.2.so lrwxrwxrwx 1 root wheel 22 Apr 5 02:51 libnss_compat.so.2 - libnss_compat-2.3.2.so -rwxr-xr-x 1 root wheel13368 Nov 5 2003 libnss_dns-2.3.2.so lrwxrwxrwx 1 root wheel 20 Apr 5 02:51 libnss_dns.so.1 - libnss1_dns-2.3.2.so lrwxrwxrwx 1 root wheel 19 Apr 5 02:51 libnss_dns.so.2 - libnss_dns-2.3.2.so -rwxr-xr-x 1 root wheel
RE: [Samba] getent winbindd on FreeBSD 5.4
FreeBSD doesn't come with a getent program. I was able to compile OpenSolaris' getent on FreeBSD with minimal problems, though. You'll have to remove support for ipnodes, project, and netmasks since those are Solaris-specific, remove the gettext code, and you'll need to provide a putpwent function (I used /usr/src/usr.sbin/pw/pwupd.c:fmtpwentry() instead ). http://cvs.opensolaris.org/source/xref/usr/src/cmd/getent/ I found the source for getent in /usr/ports/net/samba3/work/samba-3.0.20/testsuite/nsswitch (see file listing:) aries-root@/usr/local/sbin: find / | grep getent /usr/share/man/man3/tgetent.3.gz /usr/share/man/man3/cgetent.3.gz /usr/share/man/man3/kgetent.3.gz /usr/src/contrib/telnet/libtelnet/getent.c /usr/ports/net/samba3/work/samba-3.0.20/source/lib/util_getent.c /usr/ports/net/samba3/work/samba-3.0.20/source/lib/util_getent.o /usr/ports/net/samba3/work/samba-3.0.20/source/lib/util_getent.po /usr/ports/net/samba3/work/samba-3.0.20/source/include/util_getent.h /usr/ports/net/samba3/work/samba-3.0.20/testsuite/nsswitch/getent_pwent.c /usr/ports/net/samba3/work/samba-3.0.20/testsuite/nsswitch/getent_r.sh /usr/ports/net/samba3/work/samba-3.0.20/testsuite/nsswitch/getent_grent.c /usr/ports/net/samba3/work/samba-3.0.20/testsuite/nsswitch/getent.exp /usr/ports/net/samba3/work/samba-3.0.20/testsuite/nsswitch/getent.c /usr/compat/linux/usr/bin/getent /usr/obj/usr/src/lib/libtelnet/getent.o aries-root@/usr/local/sbin: and I ran 'gcc -o getent getent.c' to create the getent command. I then moved it to /usr/local/sbin and ran 'getent passwd'. The output still doesn't produce the list of domain users- only the local users. Hm? I am not sure if I am doing this correctly. I am flying blindly on this as I am relatively new to *nix in general (huge learning curve). Can you verify that I'm doing this correctly? I am starting to wonder if my problem isn't related to getent but elsewhere. I read on the 'Net that FreeBSD finally provided NSS support starting with version 5.0. I also wonder if I'm not configuring my PAM modules correctly. See my earlier mail re: nsswitch.conf and /etc/pam.d/login. How can I verify that linux libraries have been installed? I looked at this: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/linu xemu-lbc-insta ll.html#LINUXEMU-LIBS-PORT. When I run the 'getent' command, it doesn't complain about missing libraries. When I checked for /compat/linux directory as follows: I noticed that the libnss_winbind.so and the libnss_wins.so aren't in /usr/compat/linux/lib directory. Should I add them manually? If so, from where? Or make a link to appropriate FreeBSD libs? You would need to install them manually, from either an existing linux system, or by extracting them out of an rpm. Are you really sure you need a getent command? Nope. ~Doug ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: [Samba] getent winbindd on FreeBSD 5.4
Yes, that getent command should suffice for printing users and groups, including any NSS-provided ones. You can also use the 'id' or 'pw user show' commands to print similar info. aries-root@/usr/local/etc: pw group show DSP-PRODUCTION pw: unknown group `DSP-PRODUCTION' aries-root@/usr/local/etc: PAM only handles authentication during login; looking up user/group names is handled by NSS. If your nsswitch.conf has passwd: compat winbind in it, you have a /usr/local/lib/nss_winbind.so.1 file, and getent can't find users that windbind should be providing, I'd start looking for nss_winbind debugging options. I don't know if this helps but here we go. I looked at /var/log/debug.log and I'm seeing lots of entries similar to the ones below: Sep 16 03:01:21 aries sendmail[6798]: NSSWITCH(nss_method_lookup): winbind, hosts, ghbyname, not found Sep 16 03:01:21 aries sendmail[6798]: NSSWITCH(nss_method_lookup): wins, hosts, ghbyname, not found Sep 16 03:01:21 aries sendmail[6837]: NSSWITCH(nss_method_lookup): winbind, hosts, ghbyname, not found Sep 16 03:01:21 aries sendmail[6837]: NSSWITCH(nss_method_lookup): wins, hosts, ghbyname, not found Sep 16 03:01:21 aries sendmail[6837]: NSSWITCH(nss_method_lookup): winbind, hosts, ghbyaddr, not found Sep 16 03:01:21 aries sendmail[6837]: NSSWITCH(nss_method_lookup): wins, hosts, ghbyaddr, not found Sep 16 03:01:21 aries sendmail[6837]: NSSWITCH(nss_method_lookup): winbind, hosts, ghbyaddr, not found Sep 16 03:01:21 aries sendmail[6837]: NSSWITCH(nss_method_lookup): wins, hosts, ghbyaddr, not found Sep 16 03:01:21 aries sendmail[6838]: NSSWITCH(nss_method_lookup): winbind, hosts, ghbyname, not found Sep 16 03:01:21 aries sendmail[6838]: NSSWITCH(nss_method_lookup): wins, hosts, ghbyname, not found Sep 16 03:01:21 aries sendmail[6843]: NSSWITCH(nss_method_lookup): winbind, hosts, ghbyname, not found Sep 16 03:01:21 aries sendmail[6843]: NSSWITCH(nss_method_lookup): wins, hosts, ghbyname, not found Sep 16 09:55:07 aries sshd[7716]: NSSWITCH(nss_method_lookup): winbind, hosts, ghbyaddr, not found Sep 16 09:55:07 aries sshd[7716]: NSSWITCH(nss_method_lookup): wins, hosts, ghbyaddr, not found Sep 16 09:55:09 aries sshd[7719]: NSSWITCH(nss_method_lookup): winbind, hosts, ghbyaddr, not found Sep 16 09:55:09 aries sshd[7719]: NSSWITCH(nss_method_lookup): wins, hosts, ghbyaddr, not found Sep 16 10:18:19 aries sshd[7771]: NSSWITCH(nss_method_lookup): winbind, hosts, ghbyaddr, not found Sep 16 10:18:19 aries sshd[7771]: NSSWITCH(nss_method_lookup): wins, hosts, ghbyaddr, not found Does this mean there is a problem with NSSWITCH? Please note that there are references to sshd and sendmail among other services but none related to winbindd as far as I can see. I ran winbindd -d4 per your suggestion to use debugging options and tried again by issuing getent passwd. Output of log.winbindd as follows: [2005/09/16 12:26:18, 1] nsswitch/winbindd.c:main(935) winbindd version 3.0.20 started. Copyright The Samba Team 2000-2004 [2005/09/16 12:26:18, 3] param/loadparm.c:lp_load(4082) lp_load: refreshing parameters [2005/09/16 12:26:18, 3] param/loadparm.c:init_globals(1366) Initialising global parameters [2005/09/16 12:26:18, 3] param/params.c:pm_process(574) params.c:pm_process() - Processing configuration file /usr/local/etc/smb.conf [2005/09/16 12:26:18, 3] param/loadparm.c:do_section(3542) Processing section [global] doing parameter workgroup = DSP doing parameter netbios name = Aries [2005/09/16 12:26:18, 4] param/loadparm.c:handle_netbios_name(2881) handle_netbios_name: set global_myname to: ARIES doing parameter server string = Samba Server doing parameter security = domain doing parameter hosts allow = 192.168.1. 192.168.2. 127. doing parameter encrypt passwords = yes doing parameter log file = /var/log/samba/log.%m doing parameter max log size = 50 doing parameter password server = * doing parameter passdb backend = tdbsam doing parameter auth methods = winbind doing parameter socket options = TCP_NODELAY doing parameter local master = no doing parameter os level = 33 doing parameter wins server = 192.168.1.1 doing parameter dns proxy = no doing parameter idmap uid = 15000-2 doing parameter idmap gid = 15000-2 doing parameter winbind enum users = yes doing parameter winbind enum groups = yes doing parameter winbind separator = - doing parameter template homedir = /usr/home/%D/%U doing parameter template shell = /bin/bash [2005/09/16 12:26:18, 2] param/loadparm.c:do_section(3559) Processing section [homes] doing parameter comment = Home Directories doing parameter browseable = no doing parameter writable = yes [2005/09/16 12:26:18, 2] param/loadparm.c:do_section(3559) Processing section [MacData] doing parameter comment = Production Data doing parameter path = /data doing parameter valid users = @Production doing parameter public = no doing parameter writable = yes doing parameter