Re: Sec.Update -p4 and /boot/GENERIC

2010-07-15 Thread Bas Smeelen
On 07/14/2010 02:09 PM, n dhert wrote:
 A sec.update (8.0-p4) was released yeterday.
 I have a system which
 - feb 2010 : first install (with 8.0-RELEASE (using generic kernel))
 - 19 feb 2010 : updated to 8.0-RELEASE-p2
 - 25 feb 2010 : I made a Custom kernel (enabling disk quota)
then a /boot/kernel.old was created (the original generic kernel)
At that time I ought to have renamed /boot/kernel.old
 to /boot/GENERIC but forgot it
 - 1 jun 2010 : updated to 8.0-RELEASE-p3
   ( this was an sec.update without changes to kernel files)

 The latest sec/update (8.0-RELEASE-p4) was released yesterday
 During the night via cron job # freebsd-update fetch was performed
 Today, I executed (too hasty..)
 # freebsd-update install

 Only after that, I remarked that on another system, with a generic
 kernel,
 the mail message about the -p4 update mentionned changes to
 /boot/kernel/kernel and /boot/kernel.symbols.
 Normally, on this system, if I did have a directory /boot/GENERIC,
 I would have been warned in the mail , on this system, I guess,
 that /boot/GENERIC/kernel and /boot/GENERIC/kernel.symbols were
 among the changed files, but didnt get that warning
 because I have no /boot/GENERIC directory. Correct ?'

 What is the best thing to do now?
 I renamed /boot/kernel.old to /boot/GENERIC
 and ran
 # freebsd-update install
 once more, but it just simply says:
 No updates are available to install

 How can I achieve that /boot/GENERIC/kernel and /boot/GENERIC/kernel.symbols
 are replaced by what it should be for 8.0-RELEASE-p4 ?
 ___

   
You could try freebsd-update rollback
This you have already done: Then rename or copy your kernel.old
directory to GENERIC
After that run freebsd-update install again


DISCLAIMER: This e-mail is for the intended recipient(s) only. Access, 
disclosure, copying,
distribution or reliance on any of it by anyone else is prohibited. If you have 
received it
by mistake please let us know by reply and then delete it from your system.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FreeBSD vs YouTube

2010-07-15 Thread Dave
On 14 Jul 2010 at 20:35, Chris Whitehouse wrote:

 Warren Block wrote:
  On Wed, 14 Jul 2010, paul wrote:
  
  Is it possible to watch youtube on a FreeBSD system ? And if it is,
  someone would be so kind to guide me to a FAQ / Article / wiki / or
  tell me how to do it ?
  
  Yes: 
  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/desktop-br
  owsers.html#MOZ-FLASH-PLUGIN 
 
 Running fine here on 8.0-RELEASE. I would recommend installing 
 flashblock http://flashblock.mozdev.org/ once you have got it working.
 
 Chris
 

I'll second that, re Flashblock.  A wonderfull tool, Flash stopped 
dead in it's tracks, unless you hit the Play button, if you know you 
want to watch it.

Dave B.

___
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


Duplicate entries when iterating using getgrent()

2010-07-15 Thread Jens Rehsack

Hi all,

I'm currently working on a Perl5 module named DBD::Sys and detected
an issue on my FreeBSD test box. When iterating over the users/groups
using getpwent/getgrent, I get duplicated entries for some groups.
But this are not (only) duplicated entries which occur in both
(/etc/group, yp) data sources (like wheel), that are groups like
sshd, proxy etc., too.

The groups which are affected are all groups with gid  100 and
nobody (65534) and nogroup(65533).

Any suggestions?

Thanks,
Jens
___
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


getpwent bug?

2010-07-15 Thread Jens Rehsack
Hi all,

I detected an issue with getpwent on my FreeBSD test box:

perl -MData::Dumper -e 'my @e = getpwent(); print Dumper(\...@e);
endpwent(); @e = getpwent(); print Dumper(\...@e); endpwent(); @e =
getpwent(); print Dumper(\...@e); endpwent();'
$VAR1 = [
  'root',
  '',
  0,
  0,
  0,
  '',
  'Charlie ',
  '/root',
  '/bin/csh',
  0
];
$VAR1 = [
  'toor',
  '*',
  0,
  0,
  0,
  '',
  'Bourne-again Superuser',
  '/root',
  '',
  0
];
$VAR1 = [
  'daemon',
  '*',
  1,
  1,
  0,
  '',
  'Owner of many system processes',
  '/root',
  '/usr/sbin/nologin',
  0
];

I'm using FreeBSD waldorf.muppets.liwing.de 7.3-PRERELEASE FreeBSD
7.3-PRERELEASE #0: Fri Mar 12 11:31:18 UTC 2010
r...@waldorf.muppets.liwing.de:/usr/obj/usr/src/sys/WALDORF  amd64

The correct output should be (taken from a NetBSD system):
perl -MData::Dumper -e 'my @e = getpwent(); print Dumper(\...@e);
endpwent(); @e = getpwent(); print Dumper(\...@e); endpwent(); @e =
getpwent(); print Dumper(\...@e); endpwent();'
$VAR1 = [
  'root',
  '*',
  0,
  0,
  0,
  '',
  'Charlie ',
  '/root',
  '/bin/ksh',
  0
];
$VAR1 = [
  'root',
  '*',
  0,
  0,
  0,
  '',
  'Charlie ',
  '/root',
  '/bin/ksh',
  0
];
$VAR1 = [
  'root',
  '*',
  0,
  0,
  0,
  '',
  'Charlie ',
  '/root',
  '/bin/ksh',
  0
];

Taking a look to
http://www.cpantesters.org/distro/D/DBD-Sys.html#DBD-Sys-0.01, this
issue is not limited to FreeBSD 7.3 - it occures on FreeBSD 7.2 and
8.0, too.

I tried several perl versions on my box (perl5.8 from ports,
perl5.10.1 from pkgsrc and the release candidate of perl5.12.0) - with
the same result.
Maybe someone could take a look?

If I can provide additional information, please let me know.

Best regards,
Jens
___
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: Local cvs repository

2010-07-15 Thread Peter Boosten
On 14-7-2010 7:51, Tim Judd wrote:
 On 7/12/10, Peter Boosten pe...@boosten.org wrote:
 Hi all,

 I run a local cvs repository for year now, but since a couple of days I
 get these on the clients:

 Server message: Unknown collection src-all
 Server message: Unknown collection ports-all
 
 But you still have your source and ports tree on the clients?
 
 Sometimes these kind of messages are relating to the tag being used on
 the cvs mirror (your side, not the grand cvsup*.*.freebsd.org)
 
 
 Please check the config of your cvsup mirror actions, not just the logs.

I think I might have found the actual problem: these machines still run
on 7.2, which went out of support last week...

Time to upgrade, I guess :-)

Peter

-- 
http://www.boosten.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


GUI for ACL

2010-07-15 Thread Carmel
I am looking for a GUI to manage ACL's. I have heard about Eiciel;
however, I was told it only works with 'nautilus'. I was looking for a
stand alone type of program if one was available. I am presently using
KDE for a desktop if that makes any difference.

-- 
Carmel ✌
carmel...@hotmail.com

|===
|===
|===
|===
|
___
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


Lowest DVR Prices Ever. 2 Days Only!

2010-07-15 Thread iVigil
[1]

Our July Price List is Now Available.  Give Us A Call To Get Your Copy!

Also, don't forget about our Customer Rebate Program! Enrollment is automatic
and every purchase counts towards your rebate.  For more details, give us a
call:

iVigil CCTV
8403 Cross Park Dr. Suite 1CD Austin, TX 78754
(888)388-1088
(512)835-2300
(512)835-2308 - Fax www.ivigilcctv.com

Silver Spotlight: H.264 DVR
July 1516 ONLY!

[2]
H.264 DVRs
*HD Not Included*

-H.264 Compression
-Live/Record/Playback/Network Simutaneously
-DVD-RW Writer/USB/Network Backup Options
-1-CH Audio Recording/Playback
-Manual/Event/Scheduling Recording Options
-3G Windows Mobile OS Compatible

4 Channel -  NOW $189

8 Channel -  NOW $305

16 Channel -  NOW $349

Call Now For More Information - 888-388-1088

Aaron's Tip of the Week - DVR Security

There are few things more deflating in this industry than having an incident
occur but having no footage record.  Whether it's a vindictive employee, a
clumsy passer-by or a know-it-all who doesn't really know it all there are
countless ways setting can be changed or recordings canceled on a DVR.

The easiest way to protect yourself from misfortune is with a lock box ($99) or
a weekly check-list for your DVR:

-Ensure the desired record icon is showing on your screen.

-Take a minute to review footage to ensure all cameras are recording the way
you set it.

-Log-in Remotely to ensure connectivity.

-Change default passwords.

Nobody wins when and incident isn't recorded properly so get yourself a lock
box or checklist today!

References

1. http://ivigilcctv.com/aboutB.php
2. http://www.ivigilcctv.com/
This message was sent by: iVigil Corporation, 8403 Cross Park Drive, Suite 
1CD, Austin , TX 78754

Manage your subscription:
http://app.icontact.com/icp/mmail-mprofile.pl?r=20080385l=3998s=93MAm=231075c=546451

Forward to a friend: 
http://app.icontact.com/icp/core/message/forward?m=231075s=20080385c=93MAcid=546451


___
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: Lowest DVR Prices Ever. 2 Days Only!

2010-07-15 Thread Caleb Stein

Just a little off topic?

On Jul 15, 2010, at 7:50 AM, iVigil aa...@ivigilcctv.com wrote:


[1]

Our July Price List is Now Available.  Give Us A Call To Get Your  
Copy!


Also, don't forget about our Customer Rebate Program! Enrollment is  
automatic
and every purchase counts towards your rebate.  For more details,  
give us a

call:

iVigil CCTV
8403 Cross Park Dr. Suite 1CD Austin, TX 78754
(888)388-1088
(512)835-2300
(512)835-2308 - Fax www.ivigilcctv.com

Silver Spotlight: H.264 DVR
July 1516 ONLY!

[2]
H.264 DVRs
*HD Not Included*

-H.264 Compression
-Live/Record/Playback/Network Simutaneously
-DVD-RW Writer/USB/Network Backup Options
-1-CH Audio Recording/Playback
-Manual/Event/Scheduling Recording Options
-3G Windows Mobile OS Compatible

4 Channel -  NOW $189

8 Channel -  NOW $305

16 Channel -  NOW $349

Call Now For More Information - 888-388-1088

Aaron's Tip of the Week - DVR Security

There are few things more deflating in this industry than having an  
incident
occur but having no footage record.  Whether it's a vindictive  
employee, a
clumsy passer-by or a know-it-all who doesn't really know it all  
there are

countless ways setting can be changed or recordings canceled on a DVR.

The easiest way to protect yourself from misfortune is with a lock  
box ($99) or

a weekly check-list for your DVR:

-Ensure the desired record icon is showing on your screen.

-Take a minute to review footage to ensure all cameras are recording  
the way

you set it.

-Log-in Remotely to ensure connectivity.

-Change default passwords.

Nobody wins when and incident isn't recorded properly so get  
yourself a lock

box or checklist today!

References

1. http://ivigilcctv.com/aboutB.php
2. http://www.ivigilcctv.com/
This message was sent by: iVigil Corporation, 8403 Cross Park Drive,  
Suite 1CD, Austin , TX 78754


Manage your subscription:
http://app.icontact.com/icp/mmail-mprofile.pl?r=20080385l=3998s=93MAm=231075c=546451

Forward to a friend:
http://app.icontact.com/icp/core/message/forward?m=231075s=20080385c=93MAcid=546451


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org 


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: getpwent bug?

2010-07-15 Thread Dan Nelson
In the last episode (Jul 15), Jens Rehsack said:
 Hi all,
 
 I detected an issue with getpwent on my FreeBSD test box:
 
 perl -MData::Dumper -e 'my @e = getpwent(); print Dumper(\...@e); endpwent(); 
 @e = getpwent(); print Dumper(\...@e); endpwent(); @e = getpwent(); print 
 Dumper(\...@e); endpwent();'
 $VAR1 = [ 'root', '', 0, 0, 0, '', 'Charlie ', '/root', '/bin/csh', 0 ];
 $VAR1 = [ 'toor', '*', 0, 0, 0, '', 'Bourne-again Superuser', '/root', '', 0 
 ];
 $VAR1 = [ 'daemon', '*', 1, 1, 0, '', 'Owner of many system processes', 
 '/root', '/usr/sbin/nologin', 0 ];

 I'm using FreeBSD waldorf.muppets.liwing.de 7.3-PRERELEASE FreeBSD 
 7.3-PRERELEASE #0: Fri Mar 12 11:31:18 UTC 2010 
 r...@waldorf.muppets.liwing.de:/usr/obj/usr/src/sys/WALDORF  amd64

The above output looks perfect, and should match the top three lines in your
/etc/passwd files.
 
 The correct output should be (taken from a NetBSD system):
 perl -MData::Dumper -e 'my @e = getpwent(); print Dumper(\...@e); endpwent(); 
 @e = getpwent(); print Dumper(\...@e); endpwent(); @e = getpwent(); print 
 Dumper(\...@e); endpwent();'
 $VAR1 = [ 'root', '*', 0, 0, 0, '', 'Charlie ', '/root', '/bin/ksh', 0 ];
 $VAR1 = [ 'root', '*', 0, 0, 0, '', 'Charlie ', '/root', '/bin/ksh', 0 ];
 $VAR1 = [ 'root', '*', 0, 0, 0, '', 'Charlie ', '/root', '/bin/ksh', 0 ];

This output looks wrong, unless NetBSD has three identical root lines at the
top of its passwd file.
 
 Taking a look to
 http://www.cpantesters.org/distro/D/DBD-Sys.html#DBD-Sys-0.01, this
 issue is not limited to FreeBSD 7.3 - it occures on FreeBSD 7.2 and
 8.0, too.

I see a bunch of failed FreeBSD test lines, but I don't see anything
relating to getpwent or getreant in the test failure output.  Just lines
like Parse errors: Bad plan.  You planned 16 tests but ran 12

-- 
Dan Nelson
dnel...@allantgroup.com
___
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: login.conf: passwordtime not enforced?

2010-07-15 Thread b. f.
On 7/14/10, Fernan Aguero fernan.agu...@gmail.com wrote:
 On Wed, Jul 14, 2010 at 1:25 PM, b. f. bf1...@googlemail.com wrote:
 On 7/14/10, Fernan Aguero fernan.agu...@gmail.com wrote:
...
 The first time you have to change it manually for each account, with
 passwd(1);

 Sorry if I'm getting dense but do you mean 'manually' as in editing
 master.passwd with vipw?
 Or do you really mean 'manually with passwd(1)? My passwd(1) only
 allows me to change the user password and even doing this doesn't
 update the expiration time in master.passwd. Is there a hidden
 functionality in passwd that allows me to set the expiration time for
 the password?

Yes, I meant with passwd(1).  After some preliminaries, passwd(1)
hands the task over to pam(3), in particular pam_sm_chauthtok(3) of
pam_unix(8). This in turn uses the pw_* routines of libutil, contained
in /usr/src/lib/libutil/pw_util.c.  The pw_* use various libc
functions and pwd_mkdb(8). The handling of the reserved capabilities
minpasswordlen,
mixpasswordcase, passwordtime, etc. needs at least to be in pam(3),
for when you are prompted to reset your password, and should probably
be implemented in the other utilities that don't use pam(3), like
chpass(1),  pw(8), and the vipw(8) consistency checks.  It looks like
passwd(1) used to deal with these capabilities directly, but in April
2002 it was gutted and turned into a front-end for pam(3), and some of
the options-handling fell by the wayside.  In Feb. 2010, in response
to

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=bin/93310

des@, who is responsible for pam(3), added passwordtime-handling in:

http://svn.freebsd.org/viewvc/base?view=revisionrevision=203377

At the time, he announced that it would be merged, at least into
8-STABLE (and subsequently into 8.1), in one week.  He never performed
this merge: I assume that he forgot.  So unfortunately it looks as if
you will have to manually set password expiration times.  You could do
this, for example,  with vipw(8); or with pw(8) and either a -p
argument or a password_days entry in pw.conf(5). Or you could add the
patch from the above PR to your system pam_unix(8) sources and rebuild
them, or update to 9-CURRENT (which is what I am using).

I'm guessing that some of the other reserved options are neglected as
well.  You could enforce them manually, or patch pam_unix(8),
chpass(1),  pw(8), and vipw(8).  If you do so, you should submit PRs
with your patches, in the hopes that someone will reintroduce them
into the base-system utilities.  Ironically, the stripped-down
/usr/src/release/picobsd/tinyware/passwd/local_passwd.c still handles
some of them -- you could look at that for ideas.

Incidentally, If I were you, I would update at least to the latest
stable release of FreeBSD, unless you are constrained to use the
earlier releases for some work-related reason.

b.
___
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: Local cvs repository

2010-07-15 Thread Peter Boosten

On 15 jul 2010, at 14:24, Peter Boosten wrote:

 On 14-7-2010 7:51, Tim Judd wrote:
 On 7/12/10, Peter Boosten pe...@boosten.org wrote:
 Hi all,
 
 I run a local cvs repository for year now, but since a couple of days I
 get these on the clients:
 
 Server message: Unknown collection src-all
 Server message: Unknown collection ports-all
 
 But you still have your source and ports tree on the clients?
 
 Sometimes these kind of messages are relating to the tag being used on
 the cvs mirror (your side, not the grand cvsup*.*.freebsd.org)
 
 
 Please check the config of your cvsup mirror actions, not just the logs.
 
 I think I might have found the actual problem: these machines still run
 on 7.2, which went out of support last week...

Nope, that wasn't it, since I have one FB8 machine.
But the base parameter (-b) of cvsupd was pointing to the wrong directory.
Correcting this fixed my problem.

Thanks for your time and apologies for the noise.


-- 
Peter Boosten
http://www.boosten.org



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: ipnat.conf - map and rdr won't work!

2010-07-15 Thread alexus
On Wed, Jul 14, 2010 at 10:32 PM, alexus ale...@gmail.com wrote:
 I can't put my mind around it, before reboot I was able to ssh in from
 outside to my jail and right now I can't!
 I even rebuild the whole system and even that didn't help:(
 anyone have any ideas?

 su-3.2# cat /etc/ipnat.rules
 map fxp0 lama - 0/32
 rdr fxp0 64.52.58.58 port ssh - lama port ssh tcp
 su-3.2# grep lama /etc/hosts
 172.16.172.16           lama
 su-3.2# ipnat -l
 List of active MAP/Redirect filters:
 map fxp0 172.16.172.16/32 - 0.0.0.0/32
 rdr fxp0 64.52.58.58/32 port 22 - 172.16.172.16 port 22 tcp

 List of active sessions:
 su-3.2# ifconfig
 vr0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST metric
 0 mtu 1500
        options=2808VLAN_MTU,WOL_UCAST,WOL_MAGIC
        ether 00:19:5b:68:9b:01
        inet 172.16.172.16 netmask 0x broadcast 172.16.172.16
        media: Ethernet autoselect (none)
        status: no carrier
 fxp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
        options=2009RXCSUM,VLAN_MTU,WOL_MAGIC
        ether 00:0f:fe:aa:f4:61
        inet 64.52.58.58 netmask 0xffe0 broadcast 64.52.58.63
        media: Ethernet autoselect (100baseTX full-duplex)
        status: active
 plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT metric 0 mtu 
 1500
 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff00
 su-3.2# jls
   JID  IP Address      Hostname                      Path
     1  172.16.172.16   lama                          /usr/jail/lama
 su-3.2# grep ^ipnat_enable /etc/rc.conf
 ipnat_enable=YES
 su-3.2# grep ^gateway_enable /etc/rc.conf
 gateway_enable=YES
 su-3.2# sysctl net.inet.ip.forwarding
 net.inet.ip.forwarding: 1
 su-3.2#

 and this is me from outside trying to ssh to my box and getting time out...

 mp:~ alexus$ ssh -v jothost.com
 OpenSSH_5.2p1, OpenSSL 0.9.8l 5 Nov 2009
 debug1: Reading configuration data /etc/ssh_config
 debug1: Connecting to jothost.com [64.52.58.58] port 22.
 debug1: connect to address 64.52.58.58 port 22: Operation timed out
 ssh: connect to host jothost.com port 22: Operation timed out
 mp:~ alexus$


 --
 http://alexus.org/


anyone?

-- 
http://alexus.org/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


bugzilla

2010-07-15 Thread alexus
Software error:

The ./data/params file does not exist. You probably need to run
checksetup.pl. at Bugzilla/Config.pm line 337.
Compilation failed in require at /var/www/html/bugzilla/index.cgi line 34.
BEGIN failed--compilation aborted at /var/www/html/bugzilla/index.cgi line 34.

For help, please send mail to the webmaster (r...@localhost), giving
this error message and the time and date of the error.

[r...@wcmisdlin02 bugzilla]# ./checksetup.pl
* This is Bugzilla 3.6.1 on perl 5.8.8
* Running on Linux 2.6.18-194.8.1.el5xen #1 SMP Thu Jul 1 19:41:05 EDT 2010

Checking perl modules...
Checking for  CGI.pm (v3.21)   ok: found v3.49
Checking for  Digest-SHA (any) ok: found v5.48
Checking forTimeDate (v2.21)   ok: found v2.22
Checking forDateTime (v0.28)   ok: found v0.60
Checking for   DateTime-TimeZone (v0.71)   ok: found v1.19
Checking for DBI (v1.41)   ok: found v1.609
Checking forTemplate-Toolkit (v2.22)   ok: found v2.22
Checking for  Email-Send (v2.00)   ok: found v2.198
Checking for  Email-MIME (v1.861)  ok: found v1.903
Checking for Email-MIME-Encodings (v1.313)  ok: found v1.313
Checking for Email-MIME-Modifier (v1.442)  ok: found v1.903
Checking for URI (any) ok: found v1.35

Checking available perl DBD modules...
Checking for  DBD-Pg (v1.45)not found
Checking for   DBD-mysql (v4.00)   ok: found v4.013
Checking for  DBD-Oracle (v1.19)not found

The following Perl modules are optional:
Checking for  GD (v1.20)   ok: found v2.45
Checking for   Chart (v2.1)ok: found v2.4.1
Checking for Template-GD (any) ok: found v1.56
Checking for  GDTextUtil (any) ok: found v0.86
Checking for GDGraph (any) ok: found v1.44
Checking forXML-Twig (any) ok: found v3.35
Checking for  MIME-tools (v5.406)  ok: found v5.428
Checking for libwww-perl (any) ok: found v2.033
Checking for PatchReader (v0.9.4)  ok: found v0.9.5
Checking for   perl-ldap (any) ok: found v0.33
Checking for Authen-SASL (any) ok: found v2.15
Checking for  RadiusPerl (any) ok: found v0.15
Checking for   SOAP-Lite (v0.710.06) ok: found v0.712
Checking forJSON-RPC (any) ok: found v0.96
Checking for  Test-Taint (any) ok: found v1.04
Checking for HTML-Parser (v3.40)   ok: found v3.64
Checking for   HTML-Scrubber (any) ok: found v0.08
Checking for Email-MIME-Attachment-Stripper (any) ok: found v1.316
Checking for Email-Reply (any) ok: found v1.202
Checking for TheSchwartz (any) ok: found v1.10
Checking for  Daemon-Generic (any) ok: found v0.71
Checking formod_perl (v1.999022) ok: found v2.04
Reading ./localconfig...

OPTIONAL NOTE: If you want to be able to use the 'difference between two
patches' feature of Bugzilla (which requires the PatchReader Perl module
as well), you should install patchutils from:

http://cyberelk.net/tim/patchutils/

Checking for   DBD-mysql (v4.00)   ok: found v4.013
Checking for   MySQL (v4.1.2)  ok: found v5.0.77-log

WARNING: You need to set the max_allowed_packet parameter in your MySQL
configuration to at least 3276750. Currently it is set to 3275776.
You can set this parameter in the [mysqld] section of your MySQL
configuration file.

InnoDB is disabled in your MySQL installation.
Bugzilla requires InnoDB to be enabled.
Please enable it and then re-run checksetup.pl.

[r...@wcmisdlin02 bugzilla]# cat /etc/my.cnf
[mysqld]
server-id=221
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1

#
replicate-do-db=plunkit_dev

innodb_data_file_path = ibdata1:10M:autoextend
innodb_buffer_pool_size = 256M
innodb_additional_mem_pool_size = 2M
innodb_log_file_size = 64M
innodb_log_buffer_size = 8M
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 50

#log
skip-bdb
log-slow-queries
query_cache_size = 8M
tmp_table_size = 64M
max_heap_table_size = 32M
thread_cache_size = 4
table_cache = 2048
key_buffer_size = 57M
query_cache_limit = 4M
open_files_limit = 1234
join_buffer_size = 256K

max_allowed_packet = 3276750

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
[r...@wcmisdlin02 bugzilla]#


anyone have any ideas?
-- 
http://alexus.org/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: bugzilla

2010-07-15 Thread Glen Barber

On 7/15/10 5:07 PM, alexus wrote:

Software error:

The ./data/params file does not exist. You probably need to run
checksetup.pl. at Bugzilla/Config.pm line 337.
Compilation failed in require at /var/www/html/bugzilla/index.cgi line 34.
BEGIN failed--compilation aborted at /var/www/html/bugzilla/index.cgi line 34.

For help, please send mail to the webmaster (r...@localhost), giving
this error message and the time and date of the error.

[r...@wcmisdlin02 bugzilla]# ./checksetup.pl
* This is Bugzilla 3.6.1 on perl 5.8.8
* Running on Linux 2.6.18-194.8.1.el5xen #1 SMP Thu Jul 1 19:41:05 EDT 2010

Checking perl modules...
Checking for  CGI.pm (v3.21)   ok: found v3.49
Checking for  Digest-SHA (any) ok: found v5.48
Checking forTimeDate (v2.21)   ok: found v2.22
Checking forDateTime (v0.28)   ok: found v0.60
Checking for   DateTime-TimeZone (v0.71)   ok: found v1.19
Checking for DBI (v1.41)   ok: found v1.609
Checking forTemplate-Toolkit (v2.22)   ok: found v2.22
Checking for  Email-Send (v2.00)   ok: found v2.198
Checking for  Email-MIME (v1.861)  ok: found v1.903
Checking for Email-MIME-Encodings (v1.313)  ok: found v1.313
Checking for Email-MIME-Modifier (v1.442)  ok: found v1.903
Checking for URI (any) ok: found v1.35

Checking available perl DBD modules...
Checking for  DBD-Pg (v1.45)not found
Checking for   DBD-mysql (v4.00)   ok: found v4.013
Checking for  DBD-Oracle (v1.19)not found

The following Perl modules are optional:
Checking for  GD (v1.20)   ok: found v2.45
Checking for   Chart (v2.1)ok: found v2.4.1
Checking for Template-GD (any) ok: found v1.56
Checking for  GDTextUtil (any) ok: found v0.86
Checking for GDGraph (any) ok: found v1.44
Checking forXML-Twig (any) ok: found v3.35
Checking for  MIME-tools (v5.406)  ok: found v5.428
Checking for libwww-perl (any) ok: found v2.033
Checking for PatchReader (v0.9.4)  ok: found v0.9.5
Checking for   perl-ldap (any) ok: found v0.33
Checking for Authen-SASL (any) ok: found v2.15
Checking for  RadiusPerl (any) ok: found v0.15
Checking for   SOAP-Lite (v0.710.06) ok: found v0.712
Checking forJSON-RPC (any) ok: found v0.96
Checking for  Test-Taint (any) ok: found v1.04
Checking for HTML-Parser (v3.40)   ok: found v3.64
Checking for   HTML-Scrubber (any) ok: found v0.08
Checking for Email-MIME-Attachment-Stripper (any) ok: found v1.316
Checking for Email-Reply (any) ok: found v1.202
Checking for TheSchwartz (any) ok: found v1.10
Checking for  Daemon-Generic (any) ok: found v0.71
Checking formod_perl (v1.999022) ok: found v2.04
Reading ./localconfig...

OPTIONAL NOTE: If you want to be able to use the 'difference between two
patches' feature of Bugzilla (which requires the PatchReader Perl module
as well), you should install patchutils from:

 http://cyberelk.net/tim/patchutils/

Checking for   DBD-mysql (v4.00)   ok: found v4.013
Checking for   MySQL (v4.1.2)  ok: found v5.0.77-log

WARNING: You need to set the max_allowed_packet parameter in your MySQL
configuration to at least 3276750. Currently it is set to 3275776.
You can set this parameter in the [mysqld] section of your MySQL
configuration file.

InnoDB is disabled in your MySQL installation.
Bugzilla requires InnoDB to be enabled.
Please enable it and then re-run checksetup.pl.



My bet would be this last message.

Regards,

--
Glen Barber
___
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


Virtualbox Networking Issues

2010-07-15 Thread Chris Maness
I have all the pertinent kernel modules loaded, and I have tried all
different combination of network settings in virtualbox.  This is a
FreeBSD host running on a FreeBSD client.

Any suggestions appreciated.

Thanks,
Chris Maness
___
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: Virtualbox Networking Issues

2010-07-15 Thread Remko Lodder

On Jul 15, 2010, at 11:20 PM, Chris Maness wrote:

 I have all the pertinent kernel modules loaded, and I have tried all
 different combination of network settings in virtualbox.  This is a
 FreeBSD host running on a FreeBSD client.
 
 Any suggestions appreciated.
 
 

Suggestion 1: What are the issues?

-- 
/\   Best regards,| re...@freebsd.org
\ /   Remko Lodder  | re...@efnet
Xhttp://www.evilcoder.org/|
/ \   ASCII Ribbon Campaign| Against HTML Mail and News

___
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: Virtualbox Networking Issues

2010-07-15 Thread Chris Maness
I am not able to ping anything.  I cannot ping the gateway or the
host.  I tried bridge, NAT, and host only.

Chris

On Thu, Jul 15, 2010 at 2:25 PM, Remko Lodder re...@elvandar.org wrote:

 On Jul 15, 2010, at 11:20 PM, Chris Maness wrote:

 I have all the pertinent kernel modules loaded, and I have tried all
 different combination of network settings in virtualbox.  This is a
 FreeBSD host running on a FreeBSD client.

 Any suggestions appreciated.



 Suggestion 1: What are the issues?

 --
 /\   Best regards,                        | re...@freebsd.org
 \ /   Remko Lodder                      | re...@efnet
 X    http://www.evilcoder.org/    |
 / \   ASCII Ribbon Campaign    | Against HTML Mail and News


___
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: Virtualbox Networking Issues

2010-07-15 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Thu Jul 15 16:22:58 2010
 Date: Thu, 15 Jul 2010 14:20:50 -0700
 From: Chris Maness ch...@chrismaness.com
 To: freebsd-questions@freebsd.org
 Subject: Virtualbox Networking Issues

 I have all the pertinent kernel modules loaded, and I have tried all
 different combination of network settings in virtualbox.  This is a
 FreeBSD host running on a FreeBSD client.

 Any suggestions appreciated.

Don't get issues, get a subscription!


Rseriously,  You _have_ to itemize what you've done.  You _think_
you have 'all the pertintent kernel modules loaded', but nobody
else can tell whetehr or not that is true.  Similarly, you THINK
youve 'tried all differen combinations', but you obviously haven't
tried the 'right' one. ;)

You need to specify with some _precision_, what you _expect_ to 
accomplish. *details* of what you'vetried, and _precisely_ how the 
results differ from your expectations.

At an absolute minimum, you'll need to provide the output
from 'ifconfig -a'  run _outside_ the virtualbox, and the
output from the same command run _inside_ the virtualbox.
Also 'netstat -nr' from both environments.

___
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: Virtualbox Networking Issues

2010-07-15 Thread Kevin Wilcox
On 15 July 2010 17:35, Chris Maness ch...@chrismaness.com wrote:

 I am not able to ping anything.  I cannot ping the gateway or the
 host.  I tried bridge, NAT, and host only.

Can you provide the output of ifconfig and the contents of rc.conf
from the virtual machine?

(Purpose - to see if the interface exists, what it thinks its link
status is and how it's supposed to get an IP)

kmw

-- 
A: Maybe because some people are too annoyed by top-posting.
Q: Why do I not get an answer to my question(s)?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
___
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: Virtualbox Networking Issues

2010-07-15 Thread Remko Lodder

On Jul 15, 2010, at 11:35 PM, Chris Maness wrote:

 I am not able to ping anything.  I cannot ping the gateway or the
 host.  I tried bridge, NAT, and host only.
 
 Chris


OK, and what does tcpdump tell you about the interface? is it passing traffic 
at all?

-- 
/\   Best regards,| re...@freebsd.org
\ /   Remko Lodder  | re...@efnet
Xhttp://www.evilcoder.org/|
/ \   ASCII Ribbon Campaign| Against HTML Mail and News

___
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: Sata Tape Drives

2010-07-15 Thread Michael Anderson
Or, more clearly: Are SATA tape drives supported? I see they are on  
some other BSD flavors, but I haven't found any mention in the FreeBSD  
hardware compatibility documents.


Will the OS just see a tape drive on a SATA controller as a  
sequential-access SCSI device the way it sees SATA disks as SCSI block  
devices?


Quoting Michael Anderson michael.ander...@elego.de:


Hello,

I'm looking to replace a busted tape drive with a Quantum DLT SATA
drive. Is this supported?

Thanks!

--
Michael Anderson
IT Services  Support

elego Software Solutions GmbH
Gustav-Meyer-Allee 25
Building 12.3 (BIG) room 227
13355 Berlin, Germany

phone +49 30 23 45 86 96  michael.anderson at elegosoft.com
fax   +49 30 23 45 86 95  http://www.elegosoft.com

Geschaeftsfuehrer: Olaf Wagner, Sitz Berlin
Amtsgericht Berlin-Charlottenburg, HRB 77719, USt-IdNr: DE163214194


___
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




--
Michael Anderson
IT Services  Support

elego Software Solutions GmbH
Gustav-Meyer-Allee 25
Building 12.3 (BIG) room 227
13355 Berlin, Germany

phone +49 30 23 45 86 96  michael.anderson at elegosoft.com
fax   +49 30 23 45 86 95  http://www.elegosoft.com

Geschaeftsfuehrer: Olaf Wagner, Sitz Berlin
Amtsgericht Berlin-Charlottenburg, HRB 77719, USt-IdNr: DE163214194


___
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: Virtualbox Networking Issues

2010-07-15 Thread Robert Bonomi

 Date: Thu, 15 Jul 2010 14:35:23 -0700
 From: Chris Maness ch...@chrismaness.com
 Subject: Re: Virtualbox Networking Issues

 I am not able to ping anything.  I cannot ping the gateway or the
 host.  I tried bridge, NAT, and host only.


Really, not _anything_ ??  how about 127.0.0.1 ?

Have you tried pinging a particular IP address, or only by a
host name?

If you haven't tried by address, please do _that_. and report results.

*WHAT* error message(s) do you gt?  

   1) no route to host
   2) destinationi network unreachable
   3) destination host unreachable

Can you ping things from _outside_ the virtualbox?

We're _not_ mind-readers, you know.  ,grin.

You hae to tell us what _is_ working, as well as what is -not-.

So far, it oculd be aything from a device configuratition issue to
routing table problems to DNS problems

 Chris

 On Thu, Jul 15, 2010 at 2:25 PM, Remko Lodder re...@elvandar.org wrote:
 
  On Jul 15, 2010, at 11:20 PM, Chris Maness wrote:
 
  I have all the pertinent kernel modules loaded, and I have tried all
  different combination of network settings in virtualbox. =A0This is a
  FreeBSD host running on a FreeBSD client.
 
  Any suggestions appreciated.
 
 
 
  Suggestion 1: What are the issues?
 
  --
  /\ =A0 Best regards, =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0| re=
 m...@freebsd.org
  \ / =A0 Remko Lodder =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0| re...@e=
 Fnet
  X =A0 =A0http://www.evilcoder.org/ =A0 =A0|
  / \ =A0 ASCII Ribbon Campaign =A0 =A0| Against HTML Mail and News
 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Virtualbox Networking Issues

2010-07-15 Thread Chris Maness
I tried the second Intel adapter in the list and it worked under bridge mode.

Thanks,
Chris
___
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: Virtualbox Networking Issues

2010-07-15 Thread Remko Lodder
On Jul 15, 2010, at 11:57 PM, Chris Maness wrote:

 I tried the second Intel adapter in the list and it worked under bridge mode.


This is really unsatisfying, can you generate an ifconfig -a and report it back 
so that we can see what you did?
did you assign multiple interfaces to the machine? are they all bridged or?

I want to make sure that others can learn from this, and that is only possible 
when you shed a little light on the
things that you did and what caused problems. would you be able to help us with 
that?

-- 
/\   Best regards,| re...@freebsd.org
\ /   Remko Lodder  | re...@efnet
Xhttp://www.evilcoder.org/|
/ \   ASCII Ribbon Campaign| Against HTML Mail and News

___
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: Virtualbox Networking Issues

2010-07-15 Thread Chris Maness
On Thu, Jul 15, 2010 at 3:00 PM, Remko Lodder re...@elvandar.org wrote:
 On Jul 15, 2010, at 11:57 PM, Chris Maness wrote:

 I tried the second Intel adapter in the list and it worked under bridge mode.


 This is really unsatisfying, can you generate an ifconfig -a and report it 
 back so that we can see what you did?
 did you assign multiple interfaces to the machine? are they all bridged or?

 I want to make sure that others can learn from this, and that is only 
 possible when you shed a little light on the
 things that you did and what caused problems. would you be able to help us 
 with that?

 --
 /\   Best regards,                        | re...@freebsd.org
 \ /   Remko Lodder                      | re...@efnet
 X    http://www.evilcoder.org/    |
 / \   ASCII Ribbon Campaign    | Against HTML Mail and News



Yes, I will give a more detailed blow by blow a little latter on.  I
am on baby duty right now ;o)

Chris
___
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: Virtualbox Networking Issues

2010-07-15 Thread Remko Lodder

On Jul 16, 2010, at 12:05 AM, Chris Maness wrote:

 On Thu, Jul 15, 2010 at 3:00 PM, Remko Lodder re...@elvandar.org wrote:
 On Jul 15, 2010, at 11:57 PM, Chris Maness wrote:
 
 I tried the second Intel adapter in the list and it worked under bridge 
 mode.
 
 
 This is really unsatisfying, can you generate an ifconfig -a and report it 
 back so that we can see what you did?
 did you assign multiple interfaces to the machine? are they all bridged or?
 
 I want to make sure that others can learn from this, and that is only 
 possible when you shed a little light on the
 things that you did and what caused problems. would you be able to help us 
 with that?
 
 --
 /\   Best regards,| re...@freebsd.org
 \ /   Remko Lodder  | re...@efnet
 Xhttp://www.evilcoder.org/|
 / \   ASCII Ribbon Campaign| Against HTML Mail and News
 
 
 
 Yes, I will give a more detailed blow by blow a little latter on.  I
 am on baby duty right now ;o)
 
 Chris

OK that is a fair excuse :) goodluck with that and please tell us what you did 
and how you did resolve it. It's one of the strenghts
of email archives, if people hit the search string they might be able to see 
how you resolved it, and thank you for it later :)

Cheerio
R

-- 
/\   Best regards,| re...@freebsd.org
\ /   Remko Lodder  | re...@efnet
Xhttp://www.evilcoder.org/|
/ \   ASCII Ribbon Campaign| Against HTML Mail and News

___
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: Sata Tape Drives

2010-07-15 Thread Dan Nelson
In the last episode (Jul 15), Michael Anderson said:
 Or, more clearly: Are SATA tape drives supported? I see they are on some
 other BSD flavors, but I haven't found any mention in the FreeBSD hardware
 compatibility documents.

I see an atapist device in /sys/conf/NOTES:

device  atapist # ATAPI tape drives

, which might work.  The atapicam or ahci device may also make sata
tapes show up as if they were scsi devices.  Try ahci first.

http://www.freebsd.org/cgi/man.cgi?query=ahci
http://www.freebsd.org/cgi/man.cgi?query=atapicam


-- 
Dan Nelson
dnel...@allantgroup.com
___
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: ipnat.conf - map and rdr won't work!

2010-07-15 Thread Erik Norgaard

On 15/07/10 21.17, alexus wrote:

On Wed, Jul 14, 2010 at 10:32 PM, alexusale...@gmail.com  wrote:

I can't put my mind around it, before reboot I was able to ssh in from
outside to my jail and right now I can't!


What did you change?


su-3.2# cat /etc/ipnat.rules
map fxp0 lama -  0/32
rdr fxp0 64.52.58.58 port ssh -  lama port ssh tcp


What's that first rule supposed to do?


su-3.2# grep lama /etc/hosts
172.16.172.16   lama



su-3.2# ifconfig
vr0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST  metric
0 mtu 1500
options=2808VLAN_MTU,WOL_UCAST,WOL_MAGIC
ether 00:19:5b:68:9b:01
inet 172.16.172.16 netmask 0x broadcast 172.16.172.16
media: Ethernet autoselect (none)
status: no carrier
fxp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST  metric 0 mtu 1500
options=2009RXCSUM,VLAN_MTU,WOL_MAGIC
ether 00:0f:fe:aa:f4:61
inet 64.52.58.58 netmask 0xffe0 broadcast 64.52.58.63
media: Ethernet autoselect (100baseTXfull-duplex)
status: active


Where is this? this su-3.2 is a bit confusing, would be useful to set 
your hostname to jail within the jail...


I think it is typical for jails to clone the loopback interface for this 
setup.



su-3.2# jls
   JID  IP Address  Hostname  Path
 1  172.16.172.16   lama  /usr/jail/lama

and this is me from outside trying to ssh to my box and getting time out...

mp:~ alexus$ ssh -v jothost.com
OpenSSH_5.2p1, OpenSSL 0.9.8l 5 Nov 2009
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to jothost.com [64.52.58.58] port 22.
debug1: connect to address 64.52.58.58 port 22: Operation timed out
ssh: connect to host jothost.com port 22: Operation timed out


Use tcpdump, you should see if your rdr/map rules work as expected. 
Also, pfctl -ss and similar.


Can you ssh from the host system to the jail?


anyone?


If nobody replies, maybe try to rephrase your question, investigate 
further and provide additional information rather than just repost.


BR, Erik
___
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


isp0 troubles

2010-07-15 Thread Tim Gustafson
Hi,

I've got a QLogic fibre channel card in my system right now:

isp0: Qlogic ISP 2300 PCI FC-AL Adapter port 0x4000-0x40ff mem 
0xd030-0xd0300fff irq 16 at device 1.0 on pci6

This device is working, and the drives attached to it are available and seem to 
be performing OK, but I'm getting hundreds of messages like this:

isp0: 0.5.0 FCP RESPONSE, LENGTH 8: Invalid FCP Cmnd CDB0=0x00
isp0: 0.3.0 FCP RESPONSE, LENGTH 8: Invalid FCP Cmnd CDB0=0x00

I've uploaded a snippet of my most recent dmesg isp-related information here:

http://users.soe.ucsc.edu/~tjg/isp.txt

Is there something I've got misconfigured that's causing all these messages?  
As an aside, I'm also getting lots of these:

GEOM: da0: corrupt or invalid GPT detected.
GEOM: da0: GPT rejected -- may not be recoverable.
GEOM: da1: corrupt or invalid GPT detected.
GEOM: da1: GPT rejected -- may not be recoverable.

I think these disks were originally gpart disks, but now they're all part of a 
zpool.  Is there some way to quell those messages, as I'm sure they don't have 
gpart partitions on them anymore?  There's nothing in the zpool at the moment, 
so I can destroy the zpool and then dd the disks if that will help.

Tim Gustafson
Baskin School of Engineering
UC Santa Cruz
t...@soe.ucsc.edu
831-459-5354

___
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


WindowMaker has stopped working.

2010-07-15 Thread s0x7c0
I am having some problems with windowmaker. I am running FreeBSD 8.1-PRERELEASE
(STABLE) and I have xorg-7.5 installed.

When I first installed everything I just used startx to start WindowMaker. But
because The fonts suck I had to add truetype fonts and needed xorg.conf. So I
followed the instructions in the handbook to configure X. Everything was going
well and Xorg worked for root and for my normal login. but when I created
.xinitrc, with the following

exec wmaker

and then ran startx. I would just get a black screen with a mouse. Now
everything was working fine before I used the Xorg configuration instructions
and I'd kinda like to get my desktop back. IF there is anywhere I should be
looking for more information please let me know.

cheers,

Brett. 





This email was sent from Netspace Webmail: http://www.netspace.net.au

___
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: ipnat.conf - map and rdr won't work!

2010-07-15 Thread alexus
On Thu, Jul 15, 2010 at 6:55 PM, Erik Norgaard norga...@locolomo.org wrote:
 On 15/07/10 21.17, alexus wrote:

 On Wed, Jul 14, 2010 at 10:32 PM, alexusale...@gmail.com  wrote:

 I can't put my mind around it, before reboot I was able to ssh in from
 outside to my jail and right now I can't!

 What did you change?

as far as know nothing was changed, that's why i can't wrap my mind
around it why did it stop working all of the sudden and i reboot my
box in the past yet everything was working as expected.

 su-3.2# cat /etc/ipnat.rules
 map fxp0 lama -  0/32
 rdr fxp0 64.52.58.58 port ssh -  lama port ssh tcp

 What's that first rule supposed to do?

provides a NAT within jail

 su-3.2# grep lama /etc/hosts
 172.16.172.16           lama

 su-3.2# ifconfig
 vr0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST  metric
 0 mtu 1500
        options=2808VLAN_MTU,WOL_UCAST,WOL_MAGIC
        ether 00:19:5b:68:9b:01
        inet 172.16.172.16 netmask 0x broadcast 172.16.172.16
        media: Ethernet autoselect (none)
        status: no carrier
 fxp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST  metric 0 mtu
 1500
        options=2009RXCSUM,VLAN_MTU,WOL_MAGIC
        ether 00:0f:fe:aa:f4:61
        inet 64.52.58.58 netmask 0xffe0 broadcast 64.52.58.63
        media: Ethernet autoselect (100baseTXfull-duplex)
        status: active

 Where is this? this su-3.2 is a bit confusing, would be useful to set your
 hostname to jail within the jail...

su-3.2 is a host environment where jail is hosted

 I think it is typical for jails to clone the loopback interface for this
 setup.

not sure what you mean by this...
if you referring this statement as if you though this is jail itself
then
this is not jail this is host environment (where jail is hosted)

 su-3.2# jls
   JID  IP Address      Hostname                      Path
     1  172.16.172.16   lama                          /usr/jail/lama

 and this is me from outside trying to ssh to my box and getting time
 out...

 mp:~ alexus$ ssh -v jothost.com
 OpenSSH_5.2p1, OpenSSL 0.9.8l 5 Nov 2009
 debug1: Reading configuration data /etc/ssh_config
 debug1: Connecting to jothost.com [64.52.58.58] port 22.
 debug1: connect to address 64.52.58.58 port 22: Operation timed out
 ssh: connect to host jothost.com port 22: Operation timed out

 Use tcpdump, you should see if your rdr/map rules work as expected. Also,
 pfctl -ss and similar.

su-3.2# pfctl -ss
pfctl: /dev/pf: No such file or directory
su-3.2#

i don't know how to use tcpdump, can you provide exact syntax so i can run it?
whenever I try to ssh from outside ipnat -l shows following (last line
under active sessions):

su-3.2# ipnat -l
List of active MAP/Redirect filters:
map fxp0 172.16.172.16/32 - 0.0.0.0/32
rdr fxp0 64.52.58.58/32 port 22 - 172.16.172.16 port 22 tcp

List of active sessions:
RDR 172.16.172.16   22- - 64.52.58.58 22[24.190.74.126 50715]
su-3.2#


 Can you ssh from the host system to the jail?

yes, it takes a bit long but that's due to map rule inside of
ipnat.conf isn't working either as rdr doesn't work

 anyone?

 If nobody replies, maybe try to rephrase your question, investigate further
 and provide additional information rather than just repost.

i was under impression that i pretty much covered all basis, or at
least i thought i so ... apparently not...

but if you do feel that you need any additional information i'll be
more then happy to provide it for you.

thanks in advance

 BR, Erik
 ___
 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




-- 
http://alexus.org/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: bugzilla

2010-07-15 Thread alexus
On Thu, Jul 15, 2010 at 5:13 PM, Glen Barber glen.j.bar...@gmail.com wrote:
 On 7/15/10 5:07 PM, alexus wrote:

 Software error:

 The ./data/params file does not exist. You probably need to run
 checksetup.pl. at Bugzilla/Config.pm line 337.
 Compilation failed in require at /var/www/html/bugzilla/index.cgi line 34.
 BEGIN failed--compilation aborted at /var/www/html/bugzilla/index.cgi line
 34.

 For help, please send mail to the webmaster (r...@localhost), giving
 this error message and the time and date of the error.

 [r...@wcmisdlin02 bugzilla]# ./checksetup.pl
 * This is Bugzilla 3.6.1 on perl 5.8.8
 * Running on Linux 2.6.18-194.8.1.el5xen #1 SMP Thu Jul 1 19:41:05 EDT
 2010

 Checking perl modules...
 Checking for              CGI.pm (v3.21)   ok: found v3.49
 Checking for          Digest-SHA (any)     ok: found v5.48
 Checking for            TimeDate (v2.21)   ok: found v2.22
 Checking for            DateTime (v0.28)   ok: found v0.60
 Checking for   DateTime-TimeZone (v0.71)   ok: found v1.19
 Checking for                 DBI (v1.41)   ok: found v1.609
 Checking for    Template-Toolkit (v2.22)   ok: found v2.22
 Checking for          Email-Send (v2.00)   ok: found v2.198
 Checking for          Email-MIME (v1.861)  ok: found v1.903
 Checking for Email-MIME-Encodings (v1.313)  ok: found v1.313
 Checking for Email-MIME-Modifier (v1.442)  ok: found v1.903
 Checking for                 URI (any)     ok: found v1.35

 Checking available perl DBD modules...
 Checking for              DBD-Pg (v1.45)    not found
 Checking for           DBD-mysql (v4.00)   ok: found v4.013
 Checking for          DBD-Oracle (v1.19)    not found

 The following Perl modules are optional:
 Checking for                  GD (v1.20)   ok: found v2.45
 Checking for               Chart (v2.1)    ok: found v2.4.1
 Checking for         Template-GD (any)     ok: found v1.56
 Checking for          GDTextUtil (any)     ok: found v0.86
 Checking for             GDGraph (any)     ok: found v1.44
 Checking for            XML-Twig (any)     ok: found v3.35
 Checking for          MIME-tools (v5.406)  ok: found v5.428
 Checking for         libwww-perl (any)     ok: found v2.033
 Checking for         PatchReader (v0.9.4)  ok: found v0.9.5
 Checking for           perl-ldap (any)     ok: found v0.33
 Checking for         Authen-SASL (any)     ok: found v2.15
 Checking for          RadiusPerl (any)     ok: found v0.15
 Checking for           SOAP-Lite (v0.710.06) ok: found v0.712
 Checking for            JSON-RPC (any)     ok: found v0.96
 Checking for          Test-Taint (any)     ok: found v1.04
 Checking for         HTML-Parser (v3.40)   ok: found v3.64
 Checking for       HTML-Scrubber (any)     ok: found v0.08
 Checking for Email-MIME-Attachment-Stripper (any)     ok: found v1.316
 Checking for         Email-Reply (any)     ok: found v1.202
 Checking for         TheSchwartz (any)     ok: found v1.10
 Checking for      Daemon-Generic (any)     ok: found v0.71
 Checking for            mod_perl (v1.999022) ok: found v2.04
 Reading ./localconfig...

 OPTIONAL NOTE: If you want to be able to use the 'difference between two
 patches' feature of Bugzilla (which requires the PatchReader Perl module
 as well), you should install patchutils from:

     http://cyberelk.net/tim/patchutils/

 Checking for           DBD-mysql (v4.00)   ok: found v4.013
 Checking for           MySQL (v4.1.2)  ok: found v5.0.77-log

 WARNING: You need to set the max_allowed_packet parameter in your MySQL
 configuration to at least 3276750. Currently it is set to 3275776.
 You can set this parameter in the [mysqld] section of your MySQL
 configuration file.

 InnoDB is disabled in your MySQL installation.
 Bugzilla requires InnoDB to be enabled.
 Please enable it and then re-run checksetup.pl.


 My bet would be this last message.

 Regards,

 --
 Glen Barber
 ___
 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


why?

-- 
http://alexus.org/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Virtualbox Networking Issues

2010-07-15 Thread Chris Maness
On Thu, Jul 15, 2010 at 3:06 PM, Remko Lodder re...@elvandar.org wrote:

 On Jul 16, 2010, at 12:05 AM, Chris Maness wrote:

 On Thu, Jul 15, 2010 at 3:00 PM, Remko Lodder re...@elvandar.org wrote:
 On Jul 15, 2010, at 11:57 PM, Chris Maness wrote:

 I tried the second Intel adapter in the list and it worked under bridge 
 mode.


 This is really unsatisfying, can you generate an ifconfig -a and report it 
 back so that we can see what you did?
 did you assign multiple interfaces to the machine? are they all bridged or?

 I want to make sure that others can learn from this, and that is only 
 possible when you shed a little light on the
 things that you did and what caused problems. would you be able to help us 
 with that?

 --
 /\   Best regards,                        | re...@freebsd.org
 \ /   Remko Lodder                      | re...@efnet
 X    http://www.evilcoder.org/    |
 / \   ASCII Ribbon Campaign    | Against HTML Mail and News



 Yes, I will give a more detailed blow by blow a little latter on.  I
 am on baby duty right now ;o)

 Chris

 OK that is a fair excuse :) goodluck with that and please tell us what you 
 did and how you did resolve it. It's one of the strenghts
 of email archives, if people hit the search string they might be able to see 
 how you resolved it, and thank you for it later :)

 Cheerio
 R

 --
 /\   Best regards,                        | re...@freebsd.org
 \ /   Remko Lodder                      | re...@efnet
 X    http://www.evilcoder.org/    |
 / \   ASCII Ribbon Campaign    | Against HTML Mail and News



Things I tried:

With all three vbox module inserted into the kernel

NAT, Bridge, with the PC-Net FAST  Not able to ping anything (even the
gateway)  I also tried ifconfig by hand
NAT, Bridge, and Host-only with the first intel card on the list.
Same response as above.
NAT and Bridge with 2nd Intel card used.  DHCP worked under nat, but
was unable to ping the outside internet.
Bridge worked perfectly with DHCP and was able to talk to the outside
world.  Bridge is preferred anyhow as I can set up a static with a
public IP for access from the outside world.

My host is headless, so I am running virtualbox headless and it works
like a champ with the following command:

# VBoxHeadless --vnc --vncport 5902 --startvm FreeBSD

Note:  I had a similar issue with a FreeBSD client running under
windows being picky as to which card I selected.  This was a couple of
years ago.  Also, I think I see the same issue with the system time
running wildly off from net time.  On my old virtualbox system the
system clock was so unsteady that ntp would not even lock it down.

Thanks,
Chris Maness
___
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: bugzilla

2010-07-15 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

alexus wrote:
 On Thu, Jul 15, 2010 at 5:13 PM, Glen Barber glen.j.bar...@gmail.com wrote:
 On 7/15/10 5:07 PM, alexus wrote:
 Software error:

 The ./data/params file does not exist. You probably need to run
 checksetup.pl. at Bugzilla/Config.pm line 337.
 Compilation failed in require at /var/www/html/bugzilla/index.cgi line 34.
 BEGIN failed--compilation aborted at /var/www/html/bugzilla/index.cgi line
 34.

 For help, please send mail to the webmaster (r...@localhost), giving
 this error message and the time and date of the error.

 [r...@wcmisdlin02 bugzilla]# ./checksetup.pl
 * This is Bugzilla 3.6.1 on perl 5.8.8
 * Running on Linux 2.6.18-194.8.1.el5xen #1 SMP Thu Jul 1 19:41:05 EDT
 2010

 Checking perl modules...
 Checking for  CGI.pm (v3.21)   ok: found v3.49
 Checking for  Digest-SHA (any) ok: found v5.48
 Checking forTimeDate (v2.21)   ok: found v2.22
 Checking forDateTime (v0.28)   ok: found v0.60
 Checking for   DateTime-TimeZone (v0.71)   ok: found v1.19
 Checking for DBI (v1.41)   ok: found v1.609
 Checking forTemplate-Toolkit (v2.22)   ok: found v2.22
 Checking for  Email-Send (v2.00)   ok: found v2.198
 Checking for  Email-MIME (v1.861)  ok: found v1.903
 Checking for Email-MIME-Encodings (v1.313)  ok: found v1.313
 Checking for Email-MIME-Modifier (v1.442)  ok: found v1.903
 Checking for URI (any) ok: found v1.35

 Checking available perl DBD modules...
 Checking for  DBD-Pg (v1.45)not found
 Checking for   DBD-mysql (v4.00)   ok: found v4.013
 Checking for  DBD-Oracle (v1.19)not found

 The following Perl modules are optional:
 Checking for  GD (v1.20)   ok: found v2.45
 Checking for   Chart (v2.1)ok: found v2.4.1
 Checking for Template-GD (any) ok: found v1.56
 Checking for  GDTextUtil (any) ok: found v0.86
 Checking for GDGraph (any) ok: found v1.44
 Checking forXML-Twig (any) ok: found v3.35
 Checking for  MIME-tools (v5.406)  ok: found v5.428
 Checking for libwww-perl (any) ok: found v2.033
 Checking for PatchReader (v0.9.4)  ok: found v0.9.5
 Checking for   perl-ldap (any) ok: found v0.33
 Checking for Authen-SASL (any) ok: found v2.15
 Checking for  RadiusPerl (any) ok: found v0.15
 Checking for   SOAP-Lite (v0.710.06) ok: found v0.712
 Checking forJSON-RPC (any) ok: found v0.96
 Checking for  Test-Taint (any) ok: found v1.04
 Checking for HTML-Parser (v3.40)   ok: found v3.64
 Checking for   HTML-Scrubber (any) ok: found v0.08
 Checking for Email-MIME-Attachment-Stripper (any) ok: found v1.316
 Checking for Email-Reply (any) ok: found v1.202
 Checking for TheSchwartz (any) ok: found v1.10
 Checking for  Daemon-Generic (any) ok: found v0.71
 Checking formod_perl (v1.999022) ok: found v2.04
 Reading ./localconfig...

 OPTIONAL NOTE: If you want to be able to use the 'difference between two
 patches' feature of Bugzilla (which requires the PatchReader Perl module
 as well), you should install patchutils from:

 http://cyberelk.net/tim/patchutils/

 Checking for   DBD-mysql (v4.00)   ok: found v4.013
 Checking for   MySQL (v4.1.2)  ok: found v5.0.77-log

 WARNING: You need to set the max_allowed_packet parameter in your MySQL
 configuration to at least 3276750. Currently it is set to 3275776.
 You can set this parameter in the [mysqld] section of your MySQL
 configuration file.

 InnoDB is disabled in your MySQL installation.
 Bugzilla requires InnoDB to be enabled.
 Please enable it and then re-run checksetup.pl.

 My bet would be this last message.

 Regards,

 --
 Glen Barber
 
 why?
 

This is the last message that Glen referred to:

InnoDB is disabled in your MySQL installation.
Bugzilla requires InnoDB to be enabled.
Please enable it and then re-run checksetup.pl.

You have to enable InnoDB in your MySQL installation before
checksetup.pl will proceed.  Once you enable InnoDB, re-run
checksetup.pl and post any further error messages to the list.
Sometimes, you have to run checksetup.pl multiple times before it
completes with no additional actions.  I often run it 2-3 times to make
sure, and that's fine.

Yours isn't a FreeBSD-specific error, so if you do run into additional
problems, the Bugzilla support list might have better answers:
https://lists.mozilla.org/listinfo/support-bugzilla

That being said, I administer a large number of Bugzilla installations
on FreeBSD, so I can probably help you work out whatever troubles you
run into.

Best regards,
Greg
- --
Greg Larkin

http://www.FreeBSD.org/   - The Power To Serve
http://www.sourcehosting.net/ - Ready. Set. Code.
http://twitter.com/sourcehosting/ - Follow 

Re: Virtualbox Networking Issues

2010-07-15 Thread Adam Vande More
On Thu, Jul 15, 2010 at 8:36 PM, Chris Maness ch...@chrismaness.com wrote:

 Things I tried:

 With all three vbox module inserted into the kernel

 NAT, Bridge, with the PC-Net FAST  Not able to ping anything (even the
 gateway)  I also tried ifconfig by hand
 NAT, Bridge, and Host-only with the first intel card on the list.
 Same response as above.
 NAT and Bridge with 2nd Intel card used.  DHCP worked under nat, but
 was unable to ping the outside internet.
 Bridge worked perfectly with DHCP and was able to talk to the outside
 world.  Bridge is preferred anyhow as I can set up a static with a
 public IP for access from the outside world.

 My host is headless, so I am running virtualbox headless and it works
 like a champ with the following command:

 # VBoxHeadless --vnc --vncport 5902 --startvm FreeBSD

 Note:  I had a similar issue with a FreeBSD client running under
 windows being picky as to which card I selected.  This was a couple of
 years ago.  Also, I think I see the same issue with the system time
 running wildly off from net time.  On my old virtualbox system the
 system clock was so unsteady that ntp would not even lock it down.


AFAIK, pinging from a VM set to use VirtualBox NAT has never worked on
FreeBSD Host/Guest setup.  TCP/UDP connections generally work though.

This perhaps explains it more, http://www.virtualbox.org/ticket/1247

Bridged networking mode hasn't failed me since shortly after it was patched
to work with FreeBSD.  Make sure you are not bridging with wireless NIC's as
I don't think those work yet.

-- 
Adam Vande More
___
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: GUI for ACL

2010-07-15 Thread Ashish SHUKLA
Carmel  writes:
 I am looking for a GUI to manage ACL's. I have heard about Eiciel;
 however, I was told it only works with 'nautilus'. I was looking for a
 stand alone type of program if one was available. I am presently using
 KDE for a desktop if that makes any difference.

I've not used KDE since they released KDE 4, but IIRC, KDE 3.5.x used to have
ACL support integrated in it[1] by default. Are you sure there isn't any such
setting you probably missing during compilation in KDE 4.x ?

References:
[1]  http://www.flickr.com/photos/wahjava/507889368/#/

HTH
-- 
Ashish SHUKLA  | GPG: F682 CDCC 39DC 0FEA E116  20B6 C746 CFA9 E74F A4B0
freebsd.org!ashish | http://people.freebsd.org/~ashish/

“Digital files cannot be made uncopyable, any more than water can be
made not wet.” (Bruce Schneier, 2001-05-15)


pgpNdp0amed2N.pgp
Description: PGP signature


Re: getpwent bug?

2010-07-15 Thread Ashish SHUKLA
Dan Nelson writes:
 In the last episode (Jul 15), Jens Rehsack said:
 Hi all,
 
 I detected an issue with getpwent on my FreeBSD test box:
 
 perl -MData::Dumper -e 'my @e = getpwent(); print Dumper(\...@e); 
 endpwent(); @e = getpwent(); print Dumper(\...@e); endpwent(); @e = 
 getpwent(); print Dumper(\...@e); endpwent();'
 $VAR1 = [ 'root', '', 0, 0, 0, '', 'Charlie ', '/root', '/bin/csh', 0 ];
 $VAR1 = [ 'toor', '*', 0, 0, 0, '', 'Bourne-again Superuser', '/root', '', 0 
 ];
 $VAR1 = [ 'daemon', '*', 1, 1, 0, '', 'Owner of many system processes', 
 '/root', '/usr/sbin/nologin', 0 ];
 
 I'm using FreeBSD waldorf.muppets.liwing.de 7.3-PRERELEASE FreeBSD 
 7.3-PRERELEASE #0: Fri Mar 12 11:31:18 UTC 2010 
 r...@waldorf.muppets.liwing.de:/usr/obj/usr/src/sys/WALDORF  amd64

 The above output looks perfect, and should match the top three lines in your
 /etc/passwd files.

Well, OP is also invoking 'endpwent()' after every 'getpwent()' invocation
which according to GNU/Linux's glibc and NetBSD's libc (as OP mentioned)
should rewind the position in passwd database to the beginning.

To me it definitely looks like a bug in FreeBSD's getpw*() family of
functions.

As tested using sysutils/lsof, in the following program in FreeBSD, the
descriptor corresponding to '/etc/pwd.db' is closed on endpwent(3) but
position in database is never rewinded as shown in the output.

#v+
#include pwd.h
#include stdio.h

int
main()
{
struct passwd* pw;
int i;
char ch;

for(i = 0; i  3; i++)
{
printf(Doing getpwent(). Press any key to continue...);
while(getchar() != '\n');
pw = getpwent();
printf(%s:%d:%d\n, pw-pw_name, pw-pw_uid, pw-pw_gid);
endpwent();
}
}
#v-

Output on FreeBSD 8.1-RC2:

#v+
%./pwent 
Doing getpwent(). Press any key to continue...
root:0:0
Doing getpwent(). Press any key to continue...
toor:0:0
Doing getpwent(). Press any key to continue...
daemon:1:1
#v-

Output on GNU/Linux:

#v+
% ./pwent
Doing getpwent(). Press any key to continue...
root:0:0
Doing getpwent(). Press any key to continue...
root:0:0
Doing getpwent(). Press any key to continue...
root:0:0
#v-

HTH
-- 
Ashish SHUKLA  | GPG: F682 CDCC 39DC 0FEA E116  20B6 C746 CFA9 E74F A4B0
freebsd.org!ashish | http://people.freebsd.org/~ashish/

“How can I possibly put a new idea into your heads, if I do not first
remove your delusions?” (Robert A. Heinlein, Life-Line, 1939)


pgpSNaH90CVKQ.pgp
Description: PGP signature


qmail under 8.0-STABLE

2010-07-15 Thread Aryeh M. Friedman
I have the following config:

FreeBSD ppert-zone.com 8.0-STABLE FreeBSD 8.0-STABLE #0: Wed Apr 14
01:44:13 UTC 2010
r...@canopus.ispsystem.net:/root/src/sys/i386/compile/ISPSYSTEM  i386

it is a vps running via a jail.   I have installed mail/qmail and added
it to rc.conf.   It starts just fine but no remote mail ever gets
delivered/received.  DNS wise the machine is pointed to a A record for
it's domain but the provider has not (and will not) set up a reverse.

Note: According to qmail-qstat/qmail-qread the mail is not in the queue
either like it was before adding qmail startup to the rc.conf

Ideas?
___
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: getpwent bug?

2010-07-15 Thread Dan Nelson
In the last episode (Jul 16), Ashish SHUKLA said:
 Dan Nelson writes:
  In the last episode (Jul 15), Jens Rehsack said:
  Hi all,
  
  I detected an issue with getpwent on my FreeBSD test box:
  
  perl -MData::Dumper -e 'my @e = getpwent(); print Dumper(\...@e); 
  endpwent(); @e = getpwent(); print Dumper(\...@e); endpwent(); @e = 
  getpwent(); print Dumper(\...@e); endpwent();'
  $VAR1 = [ 'root', '', 0, 0, 0, '', 'Charlie ', '/root', '/bin/csh', 0 ];
  $VAR1 = [ 'toor', '*', 0, 0, 0, '', 'Bourne-again Superuser', '/root', '', 
  0 ];
  $VAR1 = [ 'daemon', '*', 1, 1, 0, '', 'Owner of many system processes', 
  '/root', '/usr/sbin/nologin', 0 ];
  
  I'm using FreeBSD waldorf.muppets.liwing.de 7.3-PRERELEASE FreeBSD 
  7.3-PRERELEASE #0: Fri Mar 12 11:31:18 UTC 2010 
  r...@waldorf.muppets.liwing.de:/usr/obj/usr/src/sys/WALDORF  amd64
 
  The above output looks perfect, and should match the top three lines in
  /your etc/passwd files.
 
 Well, OP is also invoking 'endpwent()' after every 'getpwent()' invocation
 which according to GNU/Linux's glibc and NetBSD's libc (as OP mentioned)
 should rewind the position in passwd database to the beginning.

Ah. I missed the endpwent calls.
 
 To me it definitely looks like a bug in FreeBSD's getpw*() family of
 functions.
 
 As tested using sysutils/lsof, in the following program in FreeBSD, the
 descriptor corresponding to '/etc/pwd.db' is closed on endpwent(3) but
 position in database is never rewinded as shown in the output.

It looks like the *pwent functions keep an internal counter that endpwent
doesn't reset.  Try the following patch:

Index: gen/getpwent.c
===
--- gen/getpwent.c  (revision 210157)
+++ gen/getpwent.c  (working copy)
@@ -794,6 +794,7 @@ files_setpwent(void *retval, void *mdata, va_list
(void)st-db-close(st-db);
st-db = NULL;
}
+   st-keynum = 0;
break;
default:
break;
 

-- 
Dan Nelson
dnel...@allantgroup.com
___
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: qmail under 8.0-STABLE

2010-07-15 Thread Peter
 I have the following config:

 FreeBSD ppert-zone.com 8.0-STABLE FreeBSD 8.0-STABLE #0: Wed Apr 14
 01:44:13 UTC 2010
 r...@canopus.ispsystem.net:/root/src/sys/i386/compile/ISPSYSTEM  i386

 it is a vps running via a jail.   I have installed mail/qmail and added
 it to rc.conf.   It starts just fine but no remote mail ever gets
 delivered/received.  DNS wise the machine is pointed to a A record for
 it's domain but the provider has not (and will not) set up a reverse.

 Note: According to qmail-qstat/qmail-qread the mail is not in the queue
 either like it was before adding qmail startup to the rc.conf

 Ideas?

What does the MX record for that domain point to?
  [dig mx domain.com]

Are you sure qmail is running/listening?
  [sockstat / netstat -an]

Did you shutoff sendmail in rc.conf?
  sendmail_enable=NONE I think...

]Peter[

___
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