freebsd 6.4 - 7.3 upgrade failure, ports openssl, and libz.so.3 versus libz.so.4

2010-09-14 Thread Benno Overeinder
Hi,

I am upgrading a system from freebsd 6.4 to freebsd 7.3 from source. On
this system, the ports openssl package has been installed.

With the make buildworld, the compilation of sendmail fails with the
message:
/usr/obj/usr/src/tmp/usr/bin/ld: warning: libz.so.3, needed by
/usr/local/lib/libssl.so, not found (try using -rpath or -rpath-link)

Problem is that the new kernel is expecting (or compiling the sources
against) libz.so.4 (/usr/obj/usr/src/lib/libz/libz.so.4).  libz.so.3 is
available in /lib/libz.so.3 (FreeBSD 6.4).

Is there any way to break this dependency, such that the make buildworld
completes successfully?  It is openssl from ports depending on libz.so.3
of FreeBSD 6.4, sendmail is compiled with openssl from ports for FreeBSD
7.3, which provides libz.so.4...  The upgrade path 6.4 - 7.3 with ports
openssl is probably not unique, others will have a similar upgrade path.

Can I specify something (/etc/make.conf?) such that 'make buildworld'
makes use of base openssl and not ports openssl?  Or should I uninstall
ports openssl (and recompile half of my ports, and later again recompile
all for freebsd 7.3)?

Any suggestions are welcome.

Thanks,

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


sendmail resolv.conf changes

2010-09-14 Thread Matthias Apitz

Hello,

When using a laptop it is normal that there are some changes in
resolv.conf during the live, for example:

boot time: no network available
start of PPP over UMTS: resolv.conf from provider
start VPN to connect to company: resolv.conf from company
...

it seems that sendmail is not aware of such changes in the resolv.conf
and always get stuck with the old DNS and ofc does not work on incoming
mails (provided by fetchmail). A restart helps, but is there some better
way to let sendmail switch to the new DNS environment when resolv.conf
changes?

Thanks

matthias
-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e g...@unixarea.de - w http://www.unixarea.de/
Solidarity with the zionistic pirates of Israel?   Not in my  name!
¿Solidaridad con los piratas sionistas de Israel? ¡No en mi nombre!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: sendmail resolv.conf changes

2010-09-14 Thread tomasz dereszynski


 Hello,

 When using a laptop it is normal that there are some changes in
 resolv.conf during the live, for example:

 boot time: no network available
 start of PPP over UMTS: resolv.conf from provider
 start VPN to connect to company: resolv.conf from company
 ...

 it seems that sendmail is not aware of such changes in the resolv.conf
 and always get stuck with the old DNS and ofc does not work on incoming
 mails (provided by fetchmail). A restart helps, but is there some better
 way to let sendmail switch to the new DNS environment when resolv.conf
 changes?

 Thanks

My very wide guess would be that Sendmail starts before system obtain
network settings from DHCP.

But I do not remember Sendmail settings well enough.

-- 
bEsT rEgArDs|   Confidence is what you have before you
tomasz dereszynski  |   understand the problem. -- Woody Allen
|
Spes confisa Deo|   In theory, theory and practice are much
numquam confusa recedit |   the same. In practice they are very
|   different. -- Albert Einstein


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


Re: sendmail resolv.conf changes

2010-09-14 Thread Matthias Apitz
El día Tuesday, September 14, 2010 a las 09:15:49AM +0100, tomasz dereszynski 
escribió:

 
 
  Hello,
 
  When using a laptop it is normal that there are some changes in
  resolv.conf during the live, for example:
 
  boot time: no network available
  start of PPP over UMTS: resolv.conf from provider
  start VPN to connect to company: resolv.conf from company
  ...
 
  it seems that sendmail is not aware of such changes in the resolv.conf
  and always get stuck with the old DNS and ofc does not work on incoming
  mails (provided by fetchmail). A restart helps, but is there some better
  way to let sendmail switch to the new DNS environment when resolv.conf
  changes?
 
  Thanks
 
 My very wide guess would be that Sendmail starts before system obtain
 network settings from DHCP.

Your guess is correct :-)

What I wanted to say: sendmail runs and DHCP changes in certain
situations the IP, routing and DNS, and sendmail does not adopt on these
changes.

matthias

-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e g...@unixarea.de - w http://www.unixarea.de/
Solidarity with the zionistic pirates of Israel?   Not in my  name!
¿Solidaridad con los piratas sionistas de Israel? ¡No en mi nombre!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: sendmail resolv.conf changes

2010-09-14 Thread tomasz dereszynski

 El día Tuesday, September 14, 2010 a las 09:15:49AM +0100, tomasz
 dereszynski escribió:


 
  Hello,
 
  When using a laptop it is normal that there are some changes in
  resolv.conf during the live, for example:
 
  boot time: no network available
  start of PPP over UMTS: resolv.conf from provider
  start VPN to connect to company: resolv.conf from company
  ...
 
  it seems that sendmail is not aware of such changes in the resolv.conf
  and always get stuck with the old DNS and ofc does not work on
 incoming
  mails (provided by fetchmail). A restart helps, but is there some
 better
  way to let sendmail switch to the new DNS environment when resolv.conf
  changes?
 
  Thanks
 
 My very wide guess would be that Sendmail starts before system obtain
 network settings from DHCP.

 Your guess is correct :-)

 What I wanted to say: sendmail runs and DHCP changes in certain
 situations the IP, routing and DNS, and sendmail does not adopt on these
 changes.


delay Sendmail start to after network settings loaded from DHCP.

not sure if there is any 'documentation correct' way of doing that but
'home crafted' one would be to move /etc/rc.sendmail to
/usr/local/etc/rc.d/blah.sendmail.sh and remove it from rc.config

hope someone here knows more proper way and can advise.

-- 
bEsT rEgArDs|   Confidence is what you have before you
tomasz dereszynski  |   understand the problem. -- Woody Allen
|
Spes confisa Deo|   In theory, theory and practice are much
numquam confusa recedit |   the same. In practice they are very
|   different. -- Albert Einstein


___
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


i386 jail on AMD64 system not seeing network. AMD64 jails working fine.

2010-09-14 Thread Jim
I am trying to run a teamspeak server, so I need an i386 jail.
However, the jail seems to have issues with connecting to the network.

* I set up the jail (make clean buildworld install distribution
TARGET=i386 DESTDIR=/data/jail/speak/), and get no errors.
* I mount /data/jail/speak/dev and /data/jail/speak/proc as I would on
an AMD64 jail.
* I copy over my /etc/hosts file, with an entry added for the teamspeak jail
* I copy over my /etc/resolv.conf file
* I set up the rc.conf file with:
  defaultrouter=192.168.1.1
  hostname=speak.mydomain
  #the following are also set on my web and email jails
  amd_enable=NO
  sshd_enable=YES
  usbd_enable=NO
  rpc_bind=NO
* I nfs mounts /usr/ports to /data/jail/speak/usr/ports
* I start the jail with jail -s 2 /data/jail/speak speak.mydomain
192.168.1.9 /bin/sh
** The shell starts
* I installed bash and lynx through ports - both have their distfiles
and those of dependencies already downloaded
* I left the jail and came back in with jail -s 2 /data/jail/speak
speak.mydomain 192.168.1.9 /usr/local/bin/bash

Up to this point, there is no trouble.
* I tried installing teamspeak: cd /usr/ports/audio/teamspeak_server;
make install clean
= Couldn't fetch it. Please try to retrieve this
= port manually into /usr/ports/distfiles/teamspeak and try again
*** Error code 1
* I try to connect to either my router or the web server I have at
192.168.1.5 with lynx.
First I get: Making HTTP connection to 192.168.1.1 (or 192.168.1.5),
and the browser sits there for a while.
This is followed by: Alert!: Unable to connect to remote host.
* From the base system or either of the other jails, I can connect to either.
* I try the jail again, this time with '-s 0', and I still can't
connect to either site.


The main system conf does not have the jails loaded specifically, I
start the jails manually. The ifconfig setups look like this:
  hostname=server.mydomain
  ifconfig_nfe0=inet 192.168.1.2 netmask 255.255.255.0
  #we are borg
  ifconfig_nfe0_alias0=inet 192.168.1.3 netmask 255.255.255.0
  ifconfig_nfe0_alias1=inet 192.168.1.4 netmask 255.255.255.0
  ifconfig_nfe0_alias2=inet 192.168.1.5 netmask 255.255.255.0
  ifconfig_nfe0_alias3=inet 192.168.1.6 netmask 255.255.255.0
  ifconfig_nfe0_alias4=inet 192.168.1.7 netmask 255.255.255.0
  ifconfig_nfe0_alias5=inet 192.168.1.8 netmask 255.255.255.0
  ifconfig_nfe0_alias6=inet 192.168.1.9 netmask 255.255.255.0
  ifconfig_nfe0_alias7=inet 192.168.1.25 netmask 255.255.255.0
  ifconfig_nfe0_alias8=inet 192.168.1.80 netmask 255.255.255.0
  defaultrouter=192.168.1.1



Anyone know what might be causing this?
Thanks,
-Jim Stapleton
___
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: this is probably a little touchy to ask...

2010-09-14 Thread Jules Gilbert
I'm the guy who started this thread.

First, I'm not unhappy with any of you.  Each of you, every single
person who has, at any time, been a member of the team working on
*any* FBSD sub-system, has contributed more than me.  I don't
criticize you, I salute you, thank you.

And stop throwing bricks at each other, we, the users, continue to
need your skills and your contributions.

Now, I wrote my note for a reason -- which no one seems to have
touched on (maybe I missed it, that's certainly possible.)

A typical FBSD user wants to be able to do a ports-based install, or
perhaps a pkg_add and, presto, out of the box, have a browser.

And, here it comes...  Wait for it.

Without too much trouble, have a running Java, connect to that browser
and working.  And it doesn't matter if some of us like or don't like
Java.  It's here and it's staying here.  In ten years, and probably in
twenty years, it will still be an important part of a typical OS
environment.

I understand that Sun declined to allow pre-built configurations to be
shipped.  Okay.

Now, (here I am not asking for a public response, nor am I suggesting
that anyone email me privately about this,) does anyone have an in
with Oracle management?

Because we need Oracle to reverse their decision in this matter
(remember, they inherited Java from Sun, but their management team is
slowly buying in to the decisions that Sun made.  We want to give the
Oracle people good reasons to change their thinking in regards to
Java.

It may be theoretically possible for a current user to build, say, a
Firefox browser with a working Java, but this happens at a time when
that new machine is just coming up.  One mistake sometimes makes the
builder unsure what he needs to change in his environment to try again
(boy, is that me!)

So, assuming we can't get real change from Oracle, can we at least
provide much better install instructions for naive users.  Please.
(And I am hoping that my notes generate both short-term fixes as well
as more permanent policy changes on the part of Oracle.)

Now, if Oracle won't adjust their thinking, I intend to look at Java
sub-systems that are supplied and built by other people than Oracle.
(It's called Open Source.)

It would help me if the FreeBSD website provided somewhat better
descriptions of the programs offered.  Those descriptions are perfect
-- if you already know what you're doing.  But in this area I am a
naive user.  For example:  Do JDK's (java development kit's,) provide
anything for an end-user?  Or are they only useful for people building
applications?  Also:  To run Java with a browser, do I need anything
more than a client run-time environment?  If so, what?

Oh, one more thing... I don't do compiler stuff anymore, I did once.
And to those of you who want to toss Java, you've got a lot of work to
do, not only in terms of overcoming the number of applications but
also the design, the people who've worked on it did great work.  It's
not going away.  What will happen is what's already happening, stuff
like IceTea is being built.  But scrapping Java?, not for at least 25
years, more probably.


On Thu, Sep 9, 2010 at 5:02 PM, Jules Gilbert jules.sto...@gmail.com wrote:
 About Java.  Using java with freebsd/mozilla or another browser.

 Some questions:

 Is GNU java sufficient?  I need to be able to run a browser with Java.
  No alternative -- and no I don't want to run windoz.

 I'm trying to do an 8.1 install.

 Does this problem exist with Sun's x86 OS?

 Does anyone have a website or even a set of notes as to the right way
 to do this.

 Now an opinion.  If Oracle isn't going to help us, we should look
 around for an alternative, even inventing something else, something
 that isn't Sun/Oracle/Java.

 Because this problem has been getting progressively worse for the past
 three or four years or so (longer?,) and, look around, it's hurting
 the FreeBSD community.

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


RE: sendmail resolv.conf changes

2010-09-14 Thread Terrence Koeman
 -Original Message-
 From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-
 questi...@freebsd.org] On Behalf Of tomasz dereszynski
 Sent: Tuesday, September 14, 2010 11:28 AM
 To: Matthias Apitz; freebsd-questions@freebsd.org
 Subject: Re: sendmail  resolv.conf changes


  El día Tuesday, September 14, 2010 a las 09:15:49AM +0100, tomasz
  dereszynski escribió:
 
 
  
   Hello,
  
   When using a laptop it is normal that there are some changes in
   resolv.conf during the live, for example:
  
   boot time: no network available
   start of PPP over UMTS: resolv.conf from provider
   start VPN to connect to company: resolv.conf from company
   ...
  
   it seems that sendmail is not aware of such changes in the
 resolv.conf
   and always get stuck with the old DNS and ofc does not work on
  incoming
   mails (provided by fetchmail). A restart helps, but is there some
  better
   way to let sendmail switch to the new DNS environment when
 resolv.conf
   changes?
  
   Thanks
  
  My very wide guess would be that Sendmail starts before system
 obtain
  network settings from DHCP.
 
  Your guess is correct :-)
 
  What I wanted to say: sendmail runs and DHCP changes in certain
  situations the IP, routing and DNS, and sendmail does not adopt on
 these
  changes.


 delay Sendmail start to after network settings loaded from DHCP.

 not sure if there is any 'documentation correct' way of doing that but
 'home crafted' one would be to move /etc/rc.sendmail to
 /usr/local/etc/rc.d/blah.sendmail.sh and remove it from rc.config

 hope someone here knows more proper way and can advise.


It might be an idea to (mis)use the script option in dhclient.conf to restart 
sendmail (/etc/rc.d/sendmail restart) after a lease has been aquired. See 'man 
dhclient.conf'.

--
Regards,
T. Koeman, MTh/BSc/BPsy; Technical Monk

MediaMonks B.V. (www.mediamonks.com)
Please quote all replies in correspondence.



___
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: this is probably a little touchy to ask...

2010-09-14 Thread David Brodbeck
(Trimming the CC list a bit.)

On Tue, Sep 14, 2010 at 9:11 AM, Jules Gilbert jules.sto...@gmail.com wrote:
 I understand that Sun declined to allow pre-built configurations to be
 shipped.  Okay.

 Now, (here I am not asking for a public response, nor am I suggesting
 that anyone email me privately about this,) does anyone have an in
 with Oracle management?

If you're holding your breath waiting for Oracle to answer questions,
about all you're going to do is turn blue.  They have a policy of not
communicating about the status of their products.  Anyone with an in
with management would probably be forbidden to talk about it.

Take a look at how long they jerked the OpenSolaris folks around
before dumping them and ask yourself if you want to volunteer for that
kind of treatment.
___
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: apropos returning same item twice

2010-09-14 Thread Steven Friedrich
On Monday 13 September 2010 8:37:26 pm Alexander Best wrote:
 On Sat Sep 11 10, Steven Friedrich wrote:
  Why does apropos list mysql(1) twice?
  
  It doesn't return duplicates with apropos kde...
 
 maybe you have a gzip'ed and plain version in /usr ?
 
 see PR #4419.
 
 cheers.
 alex
 
snip
/snip

find /usr -name mysql.1\* only returned one hit.
/usr/local/man/man1/mysql.1.gz
-- 
System Name:   laptop2.StevenFriedrich.org
Hardware:  2.80GHz Intel Pentium 4 (HTT) with 2 GB memory
OS version:FreeBSD 8.1-RELEASE i386 (6.9 MB kernel)
manager(s):kde4-4.5.1 
X windows: xorg-7.5X.Org X Server 1.7.5
___
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


unix permissions questions

2010-09-14 Thread doug

I found several directories whose permissions where set to

  dr-s--S--T   2 user group   512 Feb 22  2010 .procmail/

All were .procmail which is what we set for procmail logging and supporting 
recipes. In reading 'man ls' it seems (to me) this might result from losing the 
execute bit on the directory. Is this correct? Been BSDing since 1995 and have 
not seen this set of permissions. Thanks for any insights.


_
Douglas Denault
http://www.safeport.com
d...@safeport.com
Voice: 301-217-9220
  Fax: 301-217-9277
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: sendmail resolv.conf changes

2010-09-14 Thread Matthias Apitz
El día Tuesday, September 14, 2010 a las 05:49:07PM +0200, Terrence Koeman 
escribió:

   What I wanted to say: sendmail runs and DHCP changes in certain
   situations the IP, routing and DNS, and sendmail does not adopt on
  these
   changes.
 
 
 It might be an idea to (mis)use the script option in dhclient.conf to 
 restart sendmail (/etc/rc.d/sendmail restart) after a lease has been aquired. 
 See 'man dhclient.conf'.

Actually I'm using hooks in devd(8) like:

$ cat /usr/local/etc/devd/tun6.conf
notify 0 {
match system  IFNET;
match subsystem   tun6;
match typeLINK_UP;
action /usr/local/etc/devd/tun6.sh $subsystem $type;
};

$ cat /usr/local/etc/devd/tun6.sh
#!/bin/sh
#
echo `date`: $0 $*  /tmp/devd.out

(
  sleep 30 ;
  echo Doing: /etc/rc.d/sendmail onerestart  /tmp/devd.out ;
  /etc/rc.d/sendmail onerestart ;
)

exit 0

for each interface which might come up; but I was thinking that
there must be a more general solution in sendmail or DNS itself;

in any case, thanks for your idea;

 ... 
 Please quote all replies in correspondence.

No. See netiquette RFC: http://www.faqs.org/rfcs/rfc1855.html

matthias
-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e g...@unixarea.de - w http://www.unixarea.de/
Solidarity with the zionistic pirates of Israel?   Not in my  name!
¿Solidaridad con los piratas sionistas de Israel? ¡No en mi nombre!
___
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: unix permissions questions

2010-09-14 Thread Polytropon
On Tue, 14 Sep 2010 13:32:40 -0400 (EDT), d...@safeport.com wrote:
 I found several directories whose permissions where set to
 
dr-s--S--T   2 user group   512 Feb 22  2010 .procmail/
 
 All were .procmail which is what we set for procmail logging and supporting 
 recipes. In reading 'man ls' it seems (to me) this might result from losing 
 the 
 execute bit on the directory. Is this correct? Been BSDing since 1995 and 
 have 
 not seen this set of permissions. Thanks for any insights.

After a short read of man ls:

s in the owner permissions = file is executable and set-user-ID mode is set

S in the group permissions = file is not executable and set-group-ID mode is 
set

T in the other permission = sticky bit is set, but not execute
  or search permission.

Result: User can execute SUID, group cannot execute, others cannot search
or execute; sticky bit is set.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: unix permissions questions

2010-09-14 Thread Chuck Swiger
On Sep 14, 2010, at 11:01 AM, Polytropon wrote:
 On Tue, 14 Sep 2010 13:32:40 -0400 (EDT), d...@safeport.com wrote:
 I found several directories whose permissions where set to
 
   dr-s--S--T   2 user group   512 Feb 22  2010 .procmail/
 
 All were .procmail which is what we set for procmail logging and supporting 
 recipes. In reading 'man ls' it seems (to me) this might result from losing 
 the 
 execute bit on the directory. Is this correct? Been BSDing since 1995 and 
 have 
 not seen this set of permissions. Thanks for any insights.
 
 After a short read of man ls:
[ ... ]
 Result: User can execute SUID, group cannot execute, others cannot search
 or execute; sticky bit is set.

Except that this is a directory, not a file  :-)

A bit of experimentation suggests that chmod 7500 .procmail are the 
permissions involved, which are silly.  No group permissions enabled means 
setgid is meaningless, and I don't see any value for using the sticky bit here, 
either.  Try using 0500, 0700, or maybe 4500/4700 instead.

Regards,
-- 
-Chuck

___
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: unix permissions questions

2010-09-14 Thread doug

On Tue, 14 Sep 2010, Polytropon wrote:


On Tue, 14 Sep 2010 13:32:40 -0400 (EDT), d...@safeport.com wrote:

I found several directories whose permissions where set to

   dr-s--S--T   2 user group   512 Feb 22  2010 .procmail/

All were .procmail which is what we set for procmail logging and supporting
recipes. In reading 'man ls' it seems (to me) this might result from losing the
execute bit on the directory. Is this correct? Been BSDing since 1995 and have
not seen this set of permissions. Thanks for any insights.


After a short read of man ls:

s in the owner permissions = file is executable and set-user-ID mode is set

S in the group permissions = file is not executable and set-group-ID mode is 
set

T in the other permission = sticky bit is set, but not execute
 or search permission.

Result: User can execute SUID, group cannot execute, others cannot search
or execute; sticky bit is set.

Thanks, I got that from the man page. My question, not stated very well, was can 
a non-root user set those permissions. If so, I obviously do not know how.


_
Douglas Denault
http://www.safeport.com
d...@safeport.com
Voice: 301-217-9220
  Fax: 301-217-9277
___
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: unix permissions questions

2010-09-14 Thread doug

On Tue, 14 Sep 2010, Chuck Swiger wrote:


On Sep 14, 2010, at 11:01 AM, Polytropon wrote:

On Tue, 14 Sep 2010 13:32:40 -0400 (EDT), d...@safeport.com wrote:

I found several directories whose permissions where set to

  dr-s--S--T   2 user group   512 Feb 22  2010 .procmail/

All were .procmail which is what we set for procmail logging and supporting
recipes. In reading 'man ls' it seems (to me) this might result from losing the
execute bit on the directory. Is this correct? Been BSDing since 1995 and have
not seen this set of permissions. Thanks for any insights.


After a short read of man ls:

[ ... ]

Result: User can execute SUID, group cannot execute, others cannot search
or execute; sticky bit is set.


Except that this is a directory, not a file  :-)

A bit of experimentation suggests that chmod 7500 .procmail are the 
permissions involved, which are silly.  No group permissions enabled means setgid is 
meaningless, and I don't see any value for using the sticky bit here, either.  Try using 
0500, 0700, or maybe 4500/4700 instead.


thanks all - the context of this: the users involved do not know what the chmod 
command is much less its syntax and I did not do this. What I was going for was 
could this be a procmail bug or perhaps something more alarming (to me as a 
sysadmin).


_
Douglas Denault
http://www.safeport.com
d...@safeport.com
Voice: 301-217-9220
  Fax: 301-217-9277
___
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: unix permissions questions

2010-09-14 Thread Polytropon
On Tue, 14 Sep 2010 11:04:58 -0700, Chuck Swiger cswi...@mac.com wrote:
 On Sep 14, 2010, at 11:01 AM, Polytropon wrote:
  On Tue, 14 Sep 2010 13:32:40 -0400 (EDT), d...@safeport.com wrote:
  I found several directories whose permissions where set to
  
dr-s--S--T   2 user group   512 Feb 22  2010 .procmail/
  
  All were .procmail which is what we set for procmail logging and 
  supporting 
  recipes. In reading 'man ls' it seems (to me) this might result from 
  losing the 
  execute bit on the directory. Is this correct? Been BSDing since 1995 and 
  have 
  not seen this set of permissions. Thanks for any insights.
  
  After a short read of man ls:
 [ ... ]
  Result: User can execute SUID, group cannot execute, others cannot search
  or execute; sticky bit is set.
 
 Except that this is a directory, not a file  :-)

Thanks, I forgot to include that in my summary. :-)

In this case, I wanted to say that the user can chdir / search that
directory.



 A bit of experimentation suggests that chmod 7500 .procmail are the
 permissions involved, which are silly.  No group permissions enabled
 means setgid is meaningless, and I don't see any value for using the
 sticky bit here, either.  Try using 0500, 0700, or maybe 4500/4700 instead.

I would think that's what the permissions should be - it roughly is
equivalent to what a file with a similar purpose would look like for
a (user's) private .procmail/ directory.




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: unix permissions questions

2010-09-14 Thread Chuck Swiger
On Sep 14, 2010, at 11:16 AM, d...@safeport.com wrote:
 A bit of experimentation suggests that chmod 7500 .procmail are the 
 permissions involved, which are silly.  No group permissions enabled means 
 setgid is meaningless, and I don't see any value for using the sticky bit 
 here, either.  Try using 0500, 0700, or maybe 4500/4700 instead.
 
 thanks all - the context of this: the users involved do not know what the 
 chmod command is much less its syntax and I did not do this. What I was going 
 for was could this be a procmail bug or perhaps something more alarming (to 
 me as a sysadmin).

The permissions here are unexpected.  procmail cares about clearing group and 
other permissions-- unless GROUP_PER_USER is set (cf 
http://partmaps.org/era/procmail/mini-faq.html#group-writable), which usually 
would be appropriate for FreeBSD since it encourages all userids to also have a 
corresponding groupid.

Regards,
-- 
-Chuck

___
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


Is it safe to run gjournal on aac-based system (BIO_FLUSH)?

2010-09-14 Thread Toomas Aas

Hello!

I'm planning to install FreeBSD 8.1 on a system which has Adaptec  
4805SAS RAID controller (using aac driver). I'd like to use gjournal  
for the data partition, but I have some doubts regarding the (lack of)  
BIO_FLUSH feature.


I have another system with FreeBSD 7.3 and a different aac-based  
controller where I've been using gjournal for 3 years. Every time the  
system boots, it prints this warning:

GEOM_JOURNAL: BIO_FLUSH not supported by aacd1s2.

I understand that lack of BIO_FLUSH support means that data cannot be  
safely flushed to disk and that might cause corruption in case of  
sudden power loss. Is that correct? Anyway, since this system has  
battery-backed write cache, I'm not too worried.


But on the system where I'm about to install now, the controller  
doesn't have a battery for its cache. Hence my question - does the aac  
driver on FreeBSD 8.1 still not support BIO_FLUSH? If so, I should  
probably avoid using gmirror on this system?


--
Toomas Aas

___
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: apropos returning same item twice

2010-09-14 Thread Alexander Best
On Tue Sep 14 10, Steven Friedrich wrote:
 On Monday 13 September 2010 8:37:26 pm Alexander Best wrote:
  On Sat Sep 11 10, Steven Friedrich wrote:
   Why does apropos list mysql(1) twice?
   
   It doesn't return duplicates with apropos kde...
  
  maybe you have a gzip'ed and plain version in /usr ?
  
  see PR #4419.
  
  cheers.
  alex
  
 snip
 /snip
 
 find /usr -name mysql.1\* only returned one hit.
 /usr/local/man/man1/mysql.1.gz

hmmm...dunno then. might be a bug?

maybe you could check out this thread [1]. man, apropos, manpath and whatis
will soon be replaced by a BSD variant. if you want to try it out be sure to
get the latest release (the .shar file). if you still experience the same
problem with it you might want to write gordon about it.

cheers.
alex

[1] http://www.mail-archive.com/freebsd-curr...@freebsd.org/msg124238.html

 -- 
 System Name:   laptop2.StevenFriedrich.org
 Hardware:  2.80GHz Intel Pentium 4 (HTT) with 2 GB memory
 OS version:FreeBSD 8.1-RELEASE i386 (6.9 MB kernel)
 manager(s):kde4-4.5.1 
 X windows: xorg-7.5X.Org X Server 1.7.5

-- 
a13x
___
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: this is probably a little touchy to ask...

2010-09-14 Thread RW
On Tue, 14 Sep 2010 12:11:10 -0400
Jules Gilbert jules.sto...@gmail.com wrote:

 A typical FBSD user wants to be able to do a ports-based install, or
 perhaps a pkg_add and, presto, out of the box, have a browser.
 
 And, here it comes...  Wait for it.
 
 Without too much trouble, have a running Java, connect to that browser
 and working.  And it doesn't matter if some of us like or don't like
 Java.  It's here and it's staying here.  In ten years, and probably in
 twenty years, it will still be an important part of a typical OS
 environment.

 I understand that Sun declined to allow pre-built configurations to be
 shipped.  Okay.

Personally, I haven't used java for a long time (or even noticed its
absence - unlike flash), so I 'm a bit behind the times. What's the is
the problem?

If they are stopping pre-built packages then that presumably just means
the end of the diablo ports. Before those port existed I don't recall
the plug-in situation as being any worse than slightly irritating. Is
there more to it than that?
___
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: this is probably a little touchy to ask...

2010-09-14 Thread Randal L. Schwartz
 Jules == Jules Gilbert jules.sto...@gmail.com writes:

Jules Now, if Oracle won't adjust their thinking, I intend to look at Java
Jules sub-systems that are supplied and built by other people than Oracle.
Jules (It's called Open Source.)

And that's what I tried to say in my last few posts.  Given Oracle's
apparent stance to own Java not by copyright but by patent, it doesn't
*matter* that Java is open source.  We'll have to wait until Oracle
v. Google is decided, but unless Google can invalidate Oracle's
*patents* on Java, Java is effectively dead, unless you want to sleep in
Oracle's bed.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
___
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: this is probably a little touchy to ask...

2010-09-14 Thread Chip Camden
Quoth Randal L. Schwartz on Tuesday, 14 September 2010:
  Jules == Jules Gilbert jules.sto...@gmail.com writes:
 
 Jules Now, if Oracle won't adjust their thinking, I intend to look at Java
 Jules sub-systems that are supplied and built by other people than Oracle.
 Jules (It's called Open Source.)
 
 And that's what I tried to say in my last few posts.  Given Oracle's
 apparent stance to own Java not by copyright but by patent, it doesn't
 *matter* that Java is open source.  We'll have to wait until Oracle
 v. Google is decided, but unless Google can invalidate Oracle's
 *patents* on Java, Java is effectively dead, unless you want to sleep in
 Oracle's bed.
 

... and Oracle makes for a large bedfellow, with a reputation for a
painful embrace.

-- 
Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F
http://camdensoftware.com | http://chipstips.com| http://chipsquips.com


pgp7BWh3Gq9yy.pgp
Description: PGP signature


jumbo frame support in bge(4) for BCM5704

2010-09-14 Thread David Newman
8.0-RELEASE amd64, Tyan S2882-D motherboard, Broadcom BCM5704C gigabit
Ethernet transceivers

Looking for clues on enabling jumbo support on BCM5704 chips.

The bge(4) manpage claims this interface supports jumbo frames, as does
Broadcom's data sheet.

However, 'ifconfig bge0 mtu 9000' returns an error, as does 'ifconfig
bge0 mtu 1500':

ifconfig: ioctl (set mtu): Invalid argument

Also, this thread claims the manpage anddata sheet are in error and that
jumbos aren't supported:

http://lists.freebsd.org/pipermail/freebsd-net/2006-June/010866.html

The Linux tg3 driver for this chip does support jumbos up to 9000 bytes
but that doesn't necessarily answer whether the hardware can get there.

Thanks in advance for any clues on enabling jumbos on this system.

dn


___
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: jumbo frame support in bge(4) for BCM5704

2010-09-14 Thread Adam Vande More
On Tue, Sep 14, 2010 at 9:19 PM, David Newman dnew...@networktest.comwrote:

 8.0-RELEASE amd64, Tyan S2882-D motherboard, Broadcom BCM5704C gigabit
 Ethernet transceivers

 Thanks in advance for any clues on enabling jumbos on this system.


What happens if you boot from a linux live cd and try to enable frames
there?


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