Help Required!!!! , Regarding to FreeBSD

2009-09-22 Thread msaad abdurrab
Hello Sir


We are going to Make a Socks Yahoo Voice Server using FreeBSD.




Is this possible in FreeBSD , if

then which software ll require for this in FreeBSD




We have found noting on web regarding to do this , Could your please
provide little bit Guide us Regarding to Making FreeBSD Server





waiting for your reply , Thank you


Kindest Regards
___
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


Troubleshooting ral0 device timeouts

2009-09-22 Thread Michaël Grünewald
I have set up a FreeBSD access point, it is equipped with a ralink based 
card and works most of the time. I would appreciate some help for 
troubleshooting ``the rest of the time''. Thanks!


First there is nothing fancy about my wirelesse setup, I merely use the 
ralink card as an ethernet switch to create a LAN. I therefore 
configured my ralink R2600 ral0 interface, an ethernet card and bridged 
them together as described in if_bridge(4) or ifconfig(8). Note that 
only the bridge has got an IP address. Also, hostapd is up and running, 
managing the ral0 interface. This setup somehow works: I can succefully 
connect stations to the AP.


However, from times to times, the ral(4) driver emits a `device timeout' 
message and the interface is hen stuck. All connections to the AP are 
lost and no station would notice the AP anymore.


I could not successfully reset the interface with the sequence:

# /etc/rc.d/netif stop ral0
# /etc/rc.d/hostapd stop
# /etc/rc.d/netif start ral0
# /etc/rc.d/hostapd start

Although it does not emit any error message, the AP remains 
undetectable. Rebooting the machine brings back the AP to a working 
state, but that is annoying!


I am running amd64/7.2, the ralink chip is reported to be 2600 or 2610 
by the kernel.

--
Best regards,
Michaël
___
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


gtar-1.22_1, lzmautils-4.32.7 and xz-4.999.9

2009-09-22 Thread Pieter Donche

gtar-1.22_1, lzmautils-4.32.7 and xz-4.999.9

pkg_version -vIL= reported today as ports to upgrade:

gtar-1.22  needs updating (index has 1.22_1)
librsvg2-2.26.0_1  needs updating (index has 2.26.0_2)
lzmautils-4.32.7!   Comparison failed

I have lzmautils-4.32.7
$ pkg_info | grep lzmautils-4.32.7
lzmautils-4.32.7LZMA compression and decompression tools

-- What does this  Comparaised failed mean ??

I started a portupgrade:
# portsnap fetch
# portsnap update
# portupgrade -yaRrpb | tee /tmp/portupgrade-mail

the output reports about gtar-1.22 :
...
===   gtar-1.22_1 depends on executable: lzop - found
===   gtar-1.22_1 depends on executable: xz - not found

xz-4.999.9beta.tar.gz  is fetched from http://tukaani.org/xz/
extracted and installed ...

===  xz-4.999.9 conflicts with installed package(s):
  lzmautils-4.32.7

  They install files into the same place.
  Please remove them first with pkg_delete(1). 
*** Error code 1


Stop in /usr/ports/archivers/xz.
*** Error code 1

Stop in /usr/ports/archivers/gtar.
*** Error code 1

Stop in /usr/ports/archivers/gtar.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20090922-22
895-zz3ywq-0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=gtar-1.22 UPGRADE_PORT_VE
R=1.22 make DEPENDS_TARGET=package reinstall
---  Updating dependency info
---  Modifying /var/db/pkg/kde-3.5.10_2/+CONTENTS 
---  Modifying /var/db/pkg/kdeutils-3.5.10_2/+CONTENTS

---  Restoring the old version
---  Keeping old package in '/usr/ports/packages/All'
** Fix the installation problem and try again.

Is xz-4.999.9  a complete replacement for package lzmautils-4.32.7
must I completely pkg_delete lzmautils-4.32.7 and never install it again?

Then retry portupgrade ?

Or what should I best do ?

___
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 configure files don't find /usr/local based headers?

2009-09-22 Thread Yuri
I noticed many times that configure files of various projects fail to 
find headers of third party packages under /usr/local/include.

They run command line like this:
gcc -c conftest.c
and it doesn't find them without -I/usr/local/include.

Is something misconfigured on my system? How to make this issue go away 
without modifying all configure files?


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


internet access from FreeBSD

2009-09-22 Thread gs_stol...@juno.com
 I have a copy of Greg Lehey's online book about FreeBSD, but I 
believe it is from February 2006.  Is there a later copy, and if so, where can 
I find a copy (URL please)?  I searched my copy for the word internet and 
couldn't find it.  I did access the internet with a take-off copy of FreeBSD, 
but I don't have access to it any more.  Can I access the internet with a 
currently gettable copy of FreeBSD, and if so, for what versions is that true 
(my personal version is old, but it works well so I never upgraded)?  Since I 
get my mail via  juno , can I access them nicely from FreeBSD or do I need 
something to interface to it and present me with my mailbox, listing the items 
in it and telling me the usual stuff about envelop mail (sender, subject, when 
received)?

$5,000 a Week For Life
Publishers Clearing House winner annouced on NBC. Enter now.
http://thirdpartyoffers.juno.com/TGL2141/c?cp=NJLnQx9Yu8C9A0FjGKLJHAAAJ1CMuunOdcztR0sdySRQWupwAAQFAArXIzwACQGZAA==
___
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: Why configure files don't find /usr/local based headers?

2009-09-22 Thread Giorgos Keramidas
On Tue, 22 Sep 2009 01:29:38 -0700, Yuri y...@rawbw.com wrote:
 I noticed many times that configure files of various projects fail to
 find headers of third party packages under /usr/local/include.
 They run command line like this:
 gcc -c conftest.c
 and it doesn't find them without -I/usr/local/include.

 Is something misconfigured on my system? How to make this issue go away
 without modifying all configure files?

Because gcc in FreeBSD doesn't automatically include header files from
`/usr/local', unless you explicitly add the directory to the list of
include directories.

In other systems there may not be a `/usr/local/include' path at all.
For example, in my Debian installation there is no such directory.

___
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: Undelete or recover from badblocks on disks

2009-09-22 Thread jaymax

Thanks again Roland,
I think I must have lost those files when fsck_ffs did its salvage operation

The expected files were 
/disk02/bkup/dump/ad0s1a-090909.dump
/disk02/bkup/dump/ad0s1e-090909.dump
/disk02/bkup/dump/ad0s1f-090909.dump


fls from the image file = listfile

# sed -n 30153,30158p list
d/d 4804608:bkup
d/d 918528: servers
+ d/d 918529:   apache
++ d/d 918530:  httpd-2.0.40
+++ d/d 918531: os
 d/d 918532:os2

Shows the bkup directory but no subdirectory (i.e ../dump/. or dumpfiles

Now, if perchance these files were found with fls what would have been the
method to extract them back and make them readable to the file system.

Thanks


_




Roland Smith wrote:
 
 On Fri, Sep 18, 2009 at 10:17:31PM -0700, jaymax wrote:
 
 Thanks Roland, 
 
 Create a disk image from the damaged drive, and save it on another disk
 with enough space. You can use dd(1) to create a disk image. You can
 devide the image into several files. For example, I will use dd to get two
 consecutive 10
 
 # dd if=/dev/da0s1 of=dd1.img bs=1m count=10
 10+0 records in
 10+0 records out
 10485760 bytes transferred in 1.031497 secs (10165575 bytes/sec)
 
 The (valid, IMHO) reason for using disk images is that you want to
 investigate a copy of the data, so you cannot accidentily destroy the
 original data.
 

-- 
View this message in context: 
http://www.nabble.com/Undelete-or-recover-from-badblocks-on-disks-tp25498179p25530662.html
Sent from the freebsd-questions mailing list archive at Nabble.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


Is this a kernel memory leak or a process memory leak?

2009-09-22 Thread Modulok
List,

Maybe I'm just not that bright, but I have a question regarding the following:

man 3 getenv
snip
Successive calls to setenv() or putenv() assigning a differently sized
value to the same name will result in a memory leak.  The FreeBSD seman-
tics for these functions (namely, that the contents of value are copied
and that old values remain accessible indefinitely) make this bug
unavoidable.  Future versions may eliminate one or both of these semantic
guarantees in order to fix the bug.
/snip

This is a memory leak within the process which calls sentenv() or
putenv(), not a memory leak in the kernel, right? Like, if I called
putenv() a in a loop and then exited the process, the kernel will
reclaim that cluster-fuck of lost allocated memory, right? (If it's a
kernel leak that would be super retarded as any process could
affectively starve the kernel of memory. ) So it's a userland leak
right?

Anybody?
-Modulok-
___
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: internet access from FreeBSD

2009-09-22 Thread Modulok
  Is there a later copy

Not that I'm aware of.

 I searched my copy for the word internet and couldn't find it.

Weird. Did you try Internet?

 Can I access the internet with a currently gettable copy of FreeBSD

If I understand correctly, you're asking if you can use FreeBSD to
access the Internet? If so...yes. Any version will do! If you're
referring to using a web browser and such, then you'll have to install
those yourself, but it's not difficult.


 Since I get my mail via  juno , can I access them nicely from FreeBSD or do 
 I need something to interface to it...

I have no experience with this 'juno', so I can't help there. Perhaps
others will have further advice.

-Modulok-

On 9/22/09, gs_stol...@juno.com gs_stol...@juno.com wrote:
  I have a copy of Greg Lehey's online book about FreeBSD, but
 I believe it is from February 2006.  Is there a later copy, and if so, where
 can I find a copy (URL please)?  I searched my copy for the word internet
 and couldn't find it.  I did access the internet with a take-off copy of
 FreeBSD, but I don't have access to it any more.  Can I access the internet
 with a currently gettable copy of FreeBSD, and if so, for what versions is
 that true (my personal version is old, but it works well so I never
 upgraded)?  Since I get my mail via  juno , can I access them nicely from
 FreeBSD or do I need something to interface to it and present me with my
 mailbox, listing the items in it and telling me the usual stuff about
 envelop mail (sender, subject, when received)?
 
 $5,000 a Week For Life
 Publishers Clearing House winner annouced on NBC. Enter now.
 http://thirdpartyoffers.juno.com/TGL2141/c?cp=NJLnQx9Yu8C9A0FjGKLJHAAAJ1CMuunOdcztR0sdySRQWupwAAQFAArXIzwACQGZAA==
 ___
 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


/sys/modules/mii/nsgphy.c compilation errors

2009-09-22 Thread Scott Bennett
 An update committed since Friday appears to have broken mii/nsgphy.c
in the kernel.  When I try to build a kernel now, I get the following errors
during the compilations of mii/nsgphy.c.

/usr/src/sys/modules/mii/../../dev/mii/nsgphy.c:104: error: 
'MII_MODEL_NATSEMI_DP83865' undeclared here (not in a function)
/usr/src/sys/modules/mii/../../dev/mii/nsgphy.c:104: error: 
'MII_STR_NATSEMI_DP83865' undeclared here (not in a function)
*** Error code 1
1 error
*** Error code 2
1 error
*** Error code 2
1 error

 Having run cvsup just a few minutes ago and then having tried again to
build a kernel, I see that the errors persist.  Is this something that someone
is already fixing?  Or should I try to submit a PR?


  Scott Bennett, Comm. ASMELG, CFIAG
**
* Internet:   bennett at cs.niu.edu  *
**
* A well regulated and disciplined militia, is at all times a good  *
* objection to the introduction of that bane of all free governments *
* -- a standing army.   *
*-- Gov. John Hancock, New York Journal, 28 January 1790 *
**
___
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: internet access from FreeBSD

2009-09-22 Thread Neal Hogan
On Tue, Sep 22, 2009 at 3:32 AM, gs_stol...@juno.com
gs_stol...@juno.com wrote:
             I have a copy of Greg Lehey's online book about FreeBSD, but I 
 believe it is from February 2006.  Is there a later copy, and if so, where 
 can I find a copy (URL please)?  I searched my copy for the word internet 
 and couldn't find it.  I did access the internet with a take-off copy of 
 FreeBSD, but I don't have access to it any more.  Can I access the internet 
 with a currently gettable copy of FreeBSD, and if so, for what versions is 
 that true (my personal version is old, but it works well so I never 
 upgraded)?  Since I get my mail via  juno , can I access them nicely from 
 FreeBSD or do I need something to interface to it and present me with my 
 mailbox, listing the items in it and telling me the usual stuff about 
 envelop mail (sender, subject, when received)?

It's a bit unclear what you're asking, but it sounds like you want
help regarding more recent versions of freeBSD and their capabilities.
Have you looked at www.freebsd.org and the documentation there?

I'm not sure what a book about freeBSD would have that the official
documentaioin wouldn't.


 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: Is this a kernel memory leak or a process memory leak?

2009-09-22 Thread Giorgos Keramidas
On Tue, 22 Sep 2009 04:43:57 -0600, Modulok modu...@gmail.com wrote:
 Maybe I'm just not that bright, but I have a question regarding the following:

 man 3 getenv
 snip
 Successive calls to setenv() or putenv() assigning a differently sized
 value to the same name will result in a memory leak.  The FreeBSD seman-
 tics for these functions (namely, that the contents of value are copied
 and that old values remain accessible indefinitely) make this bug
 unavoidable.  Future versions may eliminate one or both of these semantic
 guarantees in order to fix the bug.
 /snip

 This is a memory leak within the process which calls sentenv() or
 putenv(), not a memory leak in the kernel, right?

Yes, it's a userland leak.

___
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


Announcing: FreeBSD 8.0-RC1 Custom XFCE build available

2009-09-22 Thread Manolis Kiagias
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey all,

For everyone who has been following my little project here:

http://freebsd-custom.wikidot.com

I am now pleased to announce the immediate availability of an 8.0-RC1
based XFCE custom DVD iso (i386 only).

Here are the direct download links:

http://freebsd.dev-urandom.com/iso/i386/xfce-desktop/FreeBSD_8.0-RC1-XFCE-22092009.iso

Checksum and signature files:

http://freebsd.dev-urandom.com/iso/i386/xfce-desktop/FreeBSD_8.0-RC1-XFCE-22092009.iso.CHECKSUM.MD5
http://freebsd.dev-urandom.com/iso/i386/xfce-desktop/FreeBSD_8.0-RC1-XFCE-22092009.iso.CHECKSUM.SHA256
http://freebsd.dev-urandom.com/iso/i386/xfce-desktop/FreeBSD_8.0-RC1-XFCE-22092009.iso.asc

Please note this is a test build of pre-release software, so treat
accordingly.  It has only been tested in VMWare so far, but I am about
to install as my main desktop soon as first tests were promising.

Make sure to read the README file:

http://freebsd.dev-urandom.com/iso/i386/xfce-desktop/README-8.TXT

as it contains important information on installation.

Note this release includes the latest openoffice 3.1.1 as well as
abiword / gnumeric for those who prefer them. Gnash has been dropped
(linux flash plugin works very well now) and avant-window-navigator is
also included (but is untested). Latest versions of well known
packages (gimp, inkscape, evince, firefox35 etc) are included as well.

As always, please report any problems, success stories, comments and
criticisms to mano...@freebsd.org

Thanks and happy FreeBSDing!
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkq4um8ACgkQZ/MxGm4PtJR6CACeJO1PlVUOhutRFFPG5qduH1bE
As0AnR+CMYiMP0fhyPEwFgTDjhtVnoKP
=AcpI
-END PGP SIGNATURE-

___
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


LDAP server gone - impossible to login locally!

2009-09-22 Thread O. Hartmann

Hello,

I run into trouble with FreeBSD and LDAP on a regular basis!

Sometimes it is necessary to log in onto a bunch of servers with no LDAP 
service responding, due to service, crash, eletrically disconnetion, 
whatever. The problem is: I can't.
Using all prerequisits from ports (pam_ldap/nss_ldap/ldap as most 
recent) my /etc/nsswitch.conf looks like this as it has been the most 
reasonable (and only working!) solution for the past 2 years:


passwd: ldap [unavail=continue notfound=continue] files [success=return 
notfound=return]


The same for group. Intention is to have root- or wheel-group access of 
local managed service users without timeouts due to irresponsible LDAP 
servers. But it does not work!
If the LDAP service is not available, FreeBSD 8.0/AMD64-RC1 (most recent 
source/build) does nothing for approx. 120 seconds and sometimes much 
longer when trying to login as root from console. In some cases, the 
same box under the very same conditions refuses login due to a timeout, 
very strange.


After a couple of time and lots of questiosn, the above showed 
nsswitch.conf entries were evaluated as those which should work, but 
exchanging 'ldap' and 'files' results in a never-can-login-situation, 
when LDAP isn't responsible.


Is there a way to shorten the timeouts and if yes, where to look for? 2 
minutes for a login within services sessions is too much, a waste of 
time. Our network is very fast, so 30 seconds should be enough ...


Any help appreciated.

Thanks,

Oliver

___
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: Microsoft Dynamic DNS

2009-09-22 Thread Mark Willson

stan wrote:

I have a situation at work, where I need  a FreeBSD machine to be in the
corporate DNS. We have been bought out, and the new owner says no static
DNS entries. They use some Microsoft technogly where the client machiens
register thier names with the corprate DNS.

My Windows laptop for instance, may get different IP addresses using DHCP
depending on what physical location I connect it in. but it's always the
same DNS name.

Can anyone sugest where to look for information as to how this works, and
how I cna make my FreeBSD machine participate in this?




Stan,

You may also have to set the option dhcp-client-identifier in the 
/etc/dhclient.conf file. The value should be the MAC address of the 
interface you are requesting the DHCP address on. I think this is 
something that the Microsoft DHCP server expects.


E.g.

interface ep0 {
   send host-name andare.fugue.com;
   send dhcp-client-identifier 1:0:a0:24:ab:fb:9c;
}

-mark

___
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 6.3 installation hacked

2009-09-22 Thread Aflatoon Aflatooni
My server installation of FreeBSD 6.3 is hacked and I am trying to find out how 
they managed to get into my Apache 2.0.61. 

This is what I see in my http error log:

[Mon Sep 21 02:00:01 2009] [notice] caught SIGTERM, shutting down
[Mon Sep 21 02:00:14 2009] [notice] Apache/2.0.61 (FreeBSD) PHP/5.2.5 
mod_jk/1.2.25 configured -- resuming normal operations
wget: not found
Can't open perl script /tmp/shit.pl: No such file or directory
wget: not found
Can't open perl script zuo.txt: No such file or directory
curl: not found
Can't open perl script zuo.txt: No such file or directory
lwp-download: not found
Can't open perl script zuo.txt: No such file or directory
lynx: not found
Can't open perl script zuo.txt: No such file or directory
zuo.txt 11 kB   56 kBps
wget: not found
Can't open perl script /tmp/shit.pl: No such file or directory
wget: not found
Can't open perl script zuo.txt: No such file or directory
curl: not found
Can't open perl script zuo.txt: No such file or directory
lwp-download: not found
Can't open perl script zuo.txt: No such file or directory
lynx: not found
Can't open perl script zuo.txt: No such file or directory
zuo.txt 11 kB  107 kBps
Died at zuo.txt line 20.
GET: not found
Can't open perl script zuo.txt: No such file or directory
wget: not found
Can't open perl script zuo.txt: No such file or directory
curl: not found
Can't open perl script zuo.txt: No such file or directory
lwp-download: not found
Can't open perl script zuo.txt: No such file or directory
lynx: not found
Can't open perl script zuo.txt: No such file or directory
zuo.txt 11 kB  108 kBps
Died at zuo.txt line 20.



___
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 6.3 installation hacked

2009-09-22 Thread Leandro Quibem Magnabosco

Aflatoon Aflatooni escreveu:
My server installation of FreeBSD 6.3 is hacked and I am trying to find out how they managed to get into my Apache 2.0.61. 


This is what I see in my http error log:

[Mon Sep 21 02:00:01 2009] [notice] caught SIGTERM, shutting down
[Mon Sep 21 02:00:14 2009] [notice] Apache/2.0.61 (FreeBSD) PHP/5.2.5 
mod_jk/1.2.25 configured -- resuming normal operations
wget: not found
Can't open perl script /tmp/shit.pl: No such file or directory
wget: not found
Can't open perl script zuo.txt: No such file or directory
curl: not found
Can't open perl script zuo.txt: No such file or directory
lwp-download: not found
Can't open perl script zuo.txt: No such file or directory
lynx: not found
Can't open perl script zuo.txt: No such file or directory
zuo.txt 11 kB   56 kBps
...


It does not look they entered using any apache bug.
Probably you had a world writable directory and they managed to access 
it by ftp (or any other way) and sent a file containing commands to it.
Once it is there, they've 'called' the file using apache to execute 
whatever was in there (probably binding a shell to some port) in order 
to get access to the box.


--
Leandro Quibem Magnabosco.
___
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 6.3 installation hacked

2009-09-22 Thread Brian Seklecki
On Tue, 2009-09-22 at 05:01 -0700, Aflatoon Aflatooni wrote:
 My server installation of FreeBSD 6.3 is hacked and I am trying to find out 
 how they managed to get into my Apache 2.0.61. 
 
 This is what I see in my http error log:
 
 [Mon Sep 21 02:00:01 2009] [notice] caught SIGTERM, shutting down
 [M

According to Apache.org, there were vulns in 2.0.6x before 2.0.63.
However, when you do your forensic analysis, you'll want to focus on
code installed on your webserver that runs with the posix user 'www''s
permissions.
 
  ~BAS




This mail was sent via Mail-SeCure 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 6.3 installation hacked

2009-09-22 Thread Aflatoon Aflatooni
I found a script in /tmp directory which could have been uploaded using php or 
Java.
How would they execute the code in /tmp directory? I couldn't figure it out.

Thanks




- Original Message 
From: Leandro Quibem Magnabosco leandro.magnabo...@fcdl-sc.org.br
To: Aflatoon Aflatooni aaflato...@yahoo.com
Cc: freebsd-questions@freebsd.org
Sent: Tuesday, September 22, 2009 8:51:05 AM
Subject: Re: FreeBSD 6.3 installation hacked

Aflatoon Aflatooni escreveu:
 My server installation of FreeBSD 6.3 is hacked and I am trying to find out 
 how they managed to get into my Apache 2.0.61. 
 This is what I see in my http error log:
 
 [Mon Sep 21 02:00:01 2009] [notice] caught SIGTERM, shutting down
 [Mon Sep 21 02:00:14 2009] [notice] Apache/2.0.61 (FreeBSD) PHP/5.2.5 
 mod_jk/1.2.25 configured -- resuming normal operations
 wget: not found
 Can't open perl script /tmp/shit.pl: No such file or directory
 wget: not found
 Can't open perl script zuo.txt: No such file or directory
 curl: not found
 Can't open perl script zuo.txt: No such file or directory
 lwp-download: not found
 Can't open perl script zuo.txt: No such file or directory
 lynx: not found
 Can't open perl script zuo.txt: No such file or directory
 zuo.txt                                                11 kB  56 kBps
 ...

It does not look they entered using any apache bug.
Probably you had a world writable directory and they managed to access it by 
ftp (or any other way) and sent a file containing commands to it.
Once it is there, they've 'called' the file using apache to execute whatever 
was in there (probably binding a shell to some port) in order to get access to 
the box.

--
Leandro Quibem Magnabosco.




___
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 6.3 installation hacked

2009-09-22 Thread Leandro Quibem Magnabosco

Aflatoon Aflatooni escreveu:

I found a script in /tmp directory which could have been uploaded using php or 
Java.
How would they execute the code in /tmp directory?

Thanks
  

You can execute files from scripts or from apache itself when they are 
scripts.
There are several programming/scripting languages that are accessible by 
web and those are the ones that an intruder will have to use to exploit 
some scenario like yours.


Take some time to read this doc:
http://www.dataloss.net/papers/how.defaced.apache.org.txt

It is pretty interesting as, unfortunately,  it suits the same scenario 
you, unintentionally, created for the hackers.



Cheers,
--
Leandro Quibem Magnabosco.
___
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: LDAP server gone - impossible to login locally!

2009-09-22 Thread Daniel O'Connor
On Tue, 22 Sep 2009, O. Hartmann wrote:
 I run into trouble with FreeBSD and LDAP on a regular basis!

 Sometimes it is necessary to log in onto a bunch of servers with no
 LDAP service responding, due to service, crash, eletrically
 disconnetion, whatever. The problem is: I can't.
 Using all prerequisits from ports (pam_ldap/nss_ldap/ldap as most
 recent) my /etc/nsswitch.conf looks like this as it has been the most
 reasonable (and only working!) solution for the past 2 years:

 passwd: ldap [unavail=continue notfound=continue] files
 [success=return notfound=return]

I just have
passwd: cache files ldap
group: cache files ldap

and I can login as root locally without any delay.

That said my LDAP server is on the same machine so perhaps it fails 
faster. I am using uri ldapi://%2fvar%2frun%2fopenldap%2fldapi/ to 
connect to.

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C


signature.asc
Description: This is a digitally signed message part.


Re: LDAP server gone - impossible to login locally!

2009-09-22 Thread John Marshall
On Tue, 22 Sep 2009, 11:53 +, O. Hartmann wrote:
 Hello,
 
 I run into trouble with FreeBSD and LDAP on a regular basis!
 
 Sometimes it is necessary to log in onto a bunch of servers with no LDAP 
 service responding, due to service, crash, eletrically disconnetion, 
 whatever. The problem is: I can't.
 Using all prerequisits from ports (pam_ldap/nss_ldap/ldap as most 
 recent) my /etc/nsswitch.conf looks like this as it has been the most 
 reasonable (and only working!) solution for the past 2 years:
 
 passwd: ldap [unavail=continue notfound=continue] files [success=return 
 notfound=return]
 
 The same for group. Intention is to have root- or wheel-group access of 
 local managed service users without timeouts due to irresponsible LDAP 
 servers. But it does not work!
 If the LDAP service is not available, FreeBSD 8.0/AMD64-RC1 (most recent 
 source/build) does nothing for approx. 120 seconds and sometimes much 
 longer when trying to login as root from console. In some cases, the 
 same box under the very same conditions refuses login due to a timeout, 
 very strange.
 
 After a couple of time and lots of questiosn, the above showed 
 nsswitch.conf entries were evaluated as those which should work, but 
 exchanging 'ldap' and 'files' results in a never-can-login-situation, 
 when LDAP isn't responsible.
 
 Is there a way to shorten the timeouts and if yes, where to look for? 2 
 minutes for a login within services sessions is too much, a waste of 
 time. Our network is very fast, so 30 seconds should be enough ...

I've only recently started playing with LDAP but it sounds to me like
you probably have one of the 'hard' options set for the reconnect policy
in your nss_ldap.conf file.  I use 'bind_policy soft' so that if the
LDAP server isn't available we fail over to the next nsswitch service
immediately.

I don't think further discussion of this thread belongs on the
freebsd-current list.

Hope this helps.

-- 
John Marshall


pgpEO2ABkokeG.pgp
Description: PGP signature


Re: gtar-1.22_1, lzmautils-4.32.7 and xz-4.999.9

2009-09-22 Thread Maks Verver

Pieter Donche wrote:

===  xz-4.999.9 conflicts with installed package(s):
  lzmautils-4.32.7


The XZ utils are intended to replace the LZMA utils, so the xz port was 
added and the lzmautils port removed. This is why you got the 
comparison failed message: portversion wasn't able to compare port 
versions because the port doesn't exist anymore.


Apparently, portupgrade isn't able to handle package moves 
automatically, so you'll have to deinstall lzmautils manually, and then 
let gtar pull in the xz ports.


Kind regards,
Maks Verver.

___
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: gtar-1.22_1, lzmautils-4.32.7 and xz-4.999.9

2009-09-22 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Maks Verver wrote:
 Pieter Donche wrote:
 ===  xz-4.999.9 conflicts with installed package(s):
   lzmautils-4.32.7
 
 The XZ utils are intended to replace the LZMA utils, so the xz port was
 added and the lzmautils port removed. This is why you got the
 comparison failed message: portversion wasn't able to compare port
 versions because the port doesn't exist anymore.
 
 Apparently, portupgrade isn't able to handle package moves
 automatically, so you'll have to deinstall lzmautils manually, and then
 let gtar pull in the xz ports.
 
 Kind regards,
 Maks Verver.
 

Portupgrade can handle the package move with a little extra help from an
entry in /usr/ports/UPDATING and the correct command argument (-o
ORIGIN).  For instance, see this entry in the file:

20090802:
  AFFECTS: users of devel/libtool15 and devel/libltdl15
...
  portupgrade -o devel/libtool22 libtool-1.5\*
  portupgrade -o devel/libltdl22 libltdl-1.5\*
...

The committer hasn't added an entry to UPDATING yet, but it's a good
idea in this situation.

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 me, follow you
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFKuN670sRouByUApARAuZvAJ9BGTDRrUsdXFv26XfF89ocPWzDgACgpcSr
JrAtJ+fNMHfnJbUVIm7rje4=
=5j7K
-END PGP SIGNATURE-

___
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: Help configuring sendmail to send only using authorization to smart host

2009-09-22 Thread Phusion
On Fri, Sep 18, 2009 at 2:32 PM, Mark Willson cdr@gmail.com wrote:
 Phusion wrote:

 I need some help configuring sendmail to send only using authorization
 to a smart host being the ISP's mail server. I'm running 7.2-RELEASE.
 I've looked over
 http://www.freebsd.org/doc/en/books/handbook/outgoing-only.html but
 want to use the built-in sendmail. I've run the following command:
 sendmail -d0.1 -bv, but SASL isn't included. Also, I would rather uses
 packages. Please advise.

 Phusion,

 I originally replied via Google, but it doesn't seem to have hit the list,
 so here's a repeat.  Apologies for the repetition, if it occurs.

 This link might provide useful information:
 http://www.hydrus.org.uk/journal/smtp-client-auth.html

 -mark

 ___
 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


I recompiled sendmail and now get the following when running sendmail -d0.1 -bv.


Version 8.14.3
 Compiled with: DNSMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8 MIME8TO7
NAMED_BIND NETINET NETINET6 NETUNIX NEWDB NIS PIPELINING SASLv2
SCANF STARTTLS TCPWRAPPERS USERDB XDEBUG

 SYSTEM IDENTITY (after readcf) 
  (short domain name) $w = server
  (canonical domain name) $j = server.domain.com
 (subdomain name) $m = domain.com
  (node name) $k = server.domain.com


Recipient names must be specified


I now have added the following to sendmail.mc.

FEATURE(masquerade_envelope)
FEATURE(genericstable, `hash -o /etc/mail/genericstable')
GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')
TRUST_AUTH_MECH(`LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS',`LOGIN PLAIN')dnl
FEATURE(authinfo, `hash -o /etc/mail/auth/authinfo')
define(`SMART_HOST', `mail.test.com')
define(`confCW_FILE', `-o /etc/mail/local-host-names')
dnl DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Modifiers=O')

I created /etc/mail/auth/authinfo and then did the makemaps to create
the hashd .db file. When trying to email outbound, I still get the
same error in the logs.

...relay=mail.test.com. [public_IP_address], dsn=5.6.0, stat=Data format error

The /etc/mail/auth/authinfo file looks like the following.


AuthInfo:mail.test.com U:usern...@isp.com P:password


I am using the mail server of the local ISP I use. It doesn't appear
that it even checks for authentication. Please advise.

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


network freebsd computers

2009-09-22 Thread Carmel NY
Most of my networking experience is based on a Windows. Networking two
or more PCs together in a Window's environment is easy. Unfortunately,
I am not getting anywhere accomplishing the same with multiple FreeBSD
machines. I can get them networked with Window's machines; however, not
with each other.

Where can I find a go How-To on how to accomplish this?
-- 
Carmel
car...@hotmail.com

It is common sense to take a method and try it. If it fails, admit it
frankly and try another. But above all, try something.

Franklin D. Roosevelt
___
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: network freebsd computers

2009-09-22 Thread Steve Bertrand
Carmel NY wrote:
 Most of my networking experience is based on a Windows. Networking two
 or more PCs together in a Window's environment is easy. 

I find it easier to network machines using FreeBSD :)

 I am not getting anywhere accomplishing the same with multiple FreeBSD
 machines. I can get them networked with Window's machines; however, not
 with each other.
 
 Where can I find a go How-To on how to accomplish this?

In what sense are you trying to 'network' them?

Via the likes of Windows file sharing?

Steve



smime.p7s
Description: S/MIME Cryptographic Signature


Re: network freebsd computers

2009-09-22 Thread Adam Vande More
On Tue, Sep 22, 2009 at 12:39 PM, Carmel NY carmel...@hotmail.com wrote:

 Most of my networking experience is based on a Windows. Networking two
 or more PCs together in a Window's environment is easy. Unfortunately,
 I am not getting anywhere accomplishing the same with multiple FreeBSD
 machines.


I guess that depends on perspective as I would say the opposite is true, or
at least truer.


 I can get them networked with Window's machines; however, not
 with each other.


You need to provide more details.  What do you mean by networked?
Filesharing? NAT? Same subnet?



 Where can I find a go How-To on how to accomplish this?
 --
 Carmel
 car...@hotmail.com

 It is common sense to take a method and try it. If it fails, admit it
 frankly and try another. But above all, try something.

Franklin D. Roosevelt
 ___
 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




-- 
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: network freebsd computers

2009-09-22 Thread Mikel King


On Sep 22, 2009, at 1:39 PM, Carmel NY wrote:


Most of my networking experience is based on a Windows. Networking two
or more PCs together in a Window's environment is easy. Unfortunately,
I am not getting anywhere accomplishing the same with multiple FreeBSD
machines. I can get them networked with Window's machines; however,  
not

with each other.

Where can I find a go How-To on how to accomplish this?
--
Carmel
car...@hotmail.com


Carmel,

	Could you perhaps describe what it is you want to accomplish? I might  
be able to direct you to a nice how-to or even walk you through it...



Regards,
Mikel King
CEO, Olivent Technologies
Senior Editor, BSD News Network
Columnist, BSD Magazine
6 Alpine Court,
Medford, NY 11763
o: 631.627.3055
skype:mikel.king
http://olivent.com
http://mikelking.com
http://twitter.com/mikelking

___
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: network freebsd computers

2009-09-22 Thread Peter
Carmel NY wrote:
 Most of my networking experience is based on a Windows. Networking two
 or more PCs together in a Window's environment is easy. Unfortunately,
 I am not getting anywhere accomplishing the same with multiple FreeBSD
 machines. I can get them networked with Window's machines; however, not
 with each other.
 
 Where can I find a go How-To on how to accomplish this?

Hi,

Maybe you are looking for this ?

http://www.freebsddiary.org/nfs.php

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


Re: network freebsd computers

2009-09-22 Thread Carmel NY
On Tue, 22 Sep 2009 13:46:53 -0400
Mikel King mikel.k...@olivent.com wrote:

 
 On Sep 22, 2009, at 1:39 PM, Carmel NY wrote:
 
  Most of my networking experience is based on a Windows. Networking
  two or more PCs together in a Window's environment is easy.
  Unfortunately, I am not getting anywhere accomplishing the same
  with multiple FreeBSD machines. I can get them networked with
  Window's machines; however, not
  with each other.
 
  Where can I find a go How-To on how to accomplish this?
  -- 
  Carmel
  car...@hotmail.com
 
 Carmel,
 
   Could you perhaps describe what it is you want to accomplish?
 I might be able to direct you to a nice how-to or even walk you
 through it...

Sorry, I should have been more informative.

Presently, I have Samba set up on my FreeBSD machines. Windows can
access the shared directories without any problems. I also have Putty
installed on the Windows machines so I can directly access the FreeBSD
boxes when required.

I want the same functionality between the FreeBSD boxes. Eventually, at
least one of them will be run headless; the mail server in particular.

I can find a virtual cornucopia of information on networking Windows
machines; Microsoft even includes a wizard to accomplish it. However,
there does not seem to be as much information regarding non-Windows
products.

At present, all machines are connected, either wired or wireless,
through a linksys router.


-- 
Carmel
car...@hotmail.com

Syntactic sugar causes cancer of the semicolon.

Epigrams in Programming, ACM SIGPLAN Sept. 1982
___
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: network freebsd computers

2009-09-22 Thread Carmel NY
On Tue, 22 Sep 2009 20:52:47 +0300
Peter peterp...@aboutsupport.com wrote:

[snip]

 Maybe you are looking for this ?
 
 http://www.freebsddiary.org/nfs.php

That article is quite dated. However, I will investigate it ASAP.

Thanks!

-- 
Carmel
car...@hotmail.com

BLISS is ignorance
___
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: network freebsd computers

2009-09-22 Thread Adam Vande More
On Tue, Sep 22, 2009 at 1:12 PM, Carmel NY carmel...@hotmail.com wrote:

 On Tue, 22 Sep 2009 13:46:53 -0400
 Mikel King mikel.k...@olivent.com wrote:

 
  On Sep 22, 2009, at 1:39 PM, Carmel NY wrote:
 
   Most of my networking experience is based on a Windows. Networking
   two or more PCs together in a Window's environment is easy.
   Unfortunately, I am not getting anywhere accomplishing the same
   with multiple FreeBSD machines. I can get them networked with
   Window's machines; however, not
   with each other.
  
   Where can I find a go How-To on how to accomplish this?
   --
   Carmel
   car...@hotmail.com
 
  Carmel,
 
Could you perhaps describe what it is you want to accomplish?
  I might be able to direct you to a nice how-to or even walk you
  through it...

 Sorry, I should have been more informative.

 Presently, I have Samba set up on my FreeBSD machines. Windows can
 access the shared directories without any problems. I also have Putty
 installed on the Windows machines so I can directly access the FreeBSD
 boxes when required.

 I want the same functionality between the FreeBSD boxes. Eventually, at
 least one of them will be run headless; the mail server in particular.

 I can find a virtual cornucopia of information on networking Windows
 machines; Microsoft even includes a wizard to accomplish it. However,
 there does not seem to be as much information regarding non-Windows
 products.

 At present, all machines are connected, either wired or wireless,
 through a linksys router.


 --
 Carmel
 car...@hotmail.com


http://www.freebsd.org/cgi/man.cgi?query=mount_smbfsapropos=0sektion=0manpath=FreeBSD+8-currentformat=html

-- 
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: network freebsd computers

2009-09-22 Thread Warren Block

On Tue, 22 Sep 2009, Carmel NY wrote:


Presently, I have Samba set up on my FreeBSD machines. Windows can
access the shared directories without any problems. I also have Putty
installed on the Windows machines so I can directly access the FreeBSD
boxes when required.

I want the same functionality between the FreeBSD boxes. Eventually, at
least one of them will be run headless; the mail server in particular.


It's still a little unclear.  If you want the FreeBSD systems to 
participate in the Windows networking, look at mount_smbfs and Samba.


-Warren Block * Rapid City, South Dakota USA
___
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: network freebsd computers

2009-09-22 Thread David Kelly
On Tue, Sep 22, 2009 at 02:18:24PM -0400, Carmel NY wrote:
 On Tue, 22 Sep 2009 20:52:47 +0300
 Peter peterp...@aboutsupport.com wrote:
 
 [snip]
 
  Maybe you are looking for this ?
  
  http://www.freebsddiary.org/nfs.php
 
 That article is quite dated. However, I will investigate it ASAP.

This isn't Windows where everything changes between every new release.
The fundamentals of NFS haven't changed much in 10 years.

-- 
David Kelly N4HHE, dke...@hiwaay.net

Whom computers would destroy, they must first drive mad.
___
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: network freebsd computers

2009-09-22 Thread David Kelly
On Tue, Sep 22, 2009 at 02:12:48PM -0400, Carmel NY wrote:
 
 I can find a virtual cornucopia of information on networking Windows
 machines; Microsoft even includes a wizard to accomplish it. However,
 there does not seem to be as much information regarding non-Windows
 products.

Perhaps because it is *harder* to network Windows than Unix?

Skimming this thread something I would suggest that may be falling
through the cracks is to unify your user accounts across all the
machines. No matter that user joe isn't supposed to be using a
particular machine do not reuse joe's userid on that machine.

Also reconsider the need to share all filesystems across all machines.
A typical Windows network application often runs client-fileserver
rather than client-server. When one can not remotely login to a
single-user Windows machine, filesharing band-aids that issue.
Multi-user Unix systems trivially allow remote logins including ftp and
scp file copying.

-- 
David Kelly N4HHE, dke...@hiwaay.net

Whom computers would destroy, they must first drive mad.
___
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: network freebsd computers

2009-09-22 Thread Carmel NY
On Tue, 22 Sep 2009 12:25:38 -0600 (MDT)
Warren Block wbl...@wonkity.com wrote:

[snip]

 It's still a little unclear.  If you want the FreeBSD systems to 
 participate in the Windows networking, look at mount_smbfs and Samba.

I want to be able to access a FreeBSD box from another FreeBSD box. I
rarely access a Windows machine from FreeBSD as it is just easier to do
it the other way around.

Anyway, I have been given a few ideas to follow upon.

Thanks!
-- 
Carmel
car...@hotmail.com

SAFETY I can live without Someone I love But not without Someone I need.
___
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: Wake up time

2009-09-22 Thread Anselm Strauss
That would be a possibility. Although I prefer a solution without  
additional hardware. Also, I'm not sure, if it's good to constantly  
disconnect the board from power. Well, it's certainly better for your  
power bill, but maybe not for the BIOS battery.


I know that my BIOS supports setting a wake up time (you can set only  
the time, and it will wake up each day on that time). I've just  
discovered the /dev/nvram device and there is a program for Linux  
called nvram-wakeup, that uses the nvram device to set this wakeup  
time from the OS. One can then compute the next wakeup time (within a  
day) at every shutdown and write it to the nvram.


I have to see if this program also compiles/runs on FreeBSD ...


On Sep 21, 2009, at 23:19 , Scott Schappell wrote:


On Sep 21, 2009, at 14:16:53, Rolf G Nielsen wrote:


Roland Smith wrote:

There are such timers, that run over a week rather than just 24  
hours, and they can have different times each day.




And make sure you set in the BIOS (if able) to power on after power  
fail and test it to make sure it works.

___
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: network freebsd computers

2009-09-22 Thread Roland Smith
On Tue, Sep 22, 2009 at 02:12:48PM -0400, Carmel NY wrote:
 
 Presently, I have Samba set up on my FreeBSD machines. Windows can
 access the shared directories without any problems. I also have Putty
 installed on the Windows machines so I can directly access the FreeBSD
 boxes when required.
 
 I want the same functionality between the FreeBSD boxes. Eventually, at
 least one of them will be run headless; the mail server in particular.

You can connect from one FreeBSD machine to another via the 'telnet' or 'ssh'
programs, where telnet is frowned upon because it sends passwords over the
network as plain text.

You can mount a shared resource from a SMB file server via mount_smbfs(8). 
[http://www.freebsd.org/cgi/man.cgi?query=mount_smbfsapropos=0sektion=0manpath=FreeBSD+5.2-RELEASE+and+Portsformat=html]

 I can find a virtual cornucopia of information on networking Windows
 machines; Microsoft even includes a wizard to accomplish it. However,
 there does not seem to be as much information regarding non-Windows
 products.

OpenSSH, the implementation that FreeBSD uses is covered (both client and
server) in § 14.11 of the FreeBSD Handbook:
[http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/openssh.html]

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpCXqylOZc2I.pgp
Description: PGP signature


Re: network freebsd computers

2009-09-22 Thread Adam Vande More
On Tue, Sep 22, 2009 at 1:48 PM, Carmel NY carmel...@hotmail.com wrote:

 On Tue, 22 Sep 2009 12:25:38 -0600 (MDT)
 Warren Block wbl...@wonkity.com wrote:

 [snip]

  It's still a little unclear.  If you want the FreeBSD systems to
  participate in the Windows networking, look at mount_smbfs and Samba.

 I want to be able to access a FreeBSD box from another FreeBSD box. I
 rarely access a Windows machine from FreeBSD as it is just easier to do
 it the other way around.

 Anyway, I have been given a few ideas to follow upon.

 Thanks!
 --
 Carmel
 car...@hotmail.com


If you're doing stuff on a LAN, and you want semi-permanent shares the
easiest method is to use sshfs.  NFS works fine it, it's a better solution
than Samba considering you're new requires.  one time transfers or backups
are best handles by some combination of scp/rsync/rdiff-backup

-- 
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: network freebsd computers

2009-09-22 Thread Jerry McAllister
On Tue, Sep 22, 2009 at 02:48:58PM -0400, Carmel NY wrote:

 On Tue, 22 Sep 2009 12:25:38 -0600 (MDT)
 Warren Block wbl...@wonkity.com wrote:
 
 [snip]
 
  It's still a little unclear.  If you want the FreeBSD systems to 
  participate in the Windows networking, look at mount_smbfs and Samba.
 
 I want to be able to access a FreeBSD box from another FreeBSD box. I
 rarely access a Windows machine from FreeBSD as it is just easier to do
 it the other way around.

Am I missing something or would ssh, scp and directing your Xwindows
display from the headless machine to a desktop X server cover
everything you are asking for?

jerry 


 
 Anyway, I have been given a few ideas to follow upon.
 
 Thanks!
 -- 
 Carmel
 car...@hotmail.com
 
 SAFETY I can live without Someone I love But not without Someone I need.
 ___
 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: LDAP server gone - impossible to login locally!

2009-09-22 Thread Dmitriy Kirhlarov

John Marshall wrote:

On Tue, 22 Sep 2009, 11:53 +, O. Hartmann wrote:

Hello,

I run into trouble with FreeBSD and LDAP on a regular basis!

Sometimes it is necessary to log in onto a bunch of servers with no LDAP 
service responding, due to service, crash, eletrically disconnetion, 
whatever. The problem is: I can't.
Using all prerequisits from ports (pam_ldap/nss_ldap/ldap as most 
recent) my /etc/nsswitch.conf looks like this as it has been the most 
reasonable (and only working!) solution for the past 2 years:


passwd: ldap [unavail=continue notfound=continue] files [success=return 
notfound=return]


The same for group. Intention is to have root- or wheel-group access of 
local managed service users without timeouts due to irresponsible LDAP 
servers. But it does not work!
If the LDAP service is not available, FreeBSD 8.0/AMD64-RC1 (most recent 
source/build) does nothing for approx. 120 seconds and sometimes much 
longer when trying to login as root from console. In some cases, the 
same box under the very same conditions refuses login due to a timeout, 
very strange.


After a couple of time and lots of questiosn, the above showed 
nsswitch.conf entries were evaluated as those which should work, but 
exchanging 'ldap' and 'files' results in a never-can-login-situation, 
when LDAP isn't responsible.


Is there a way to shorten the timeouts and if yes, where to look for? 2 
minutes for a login within services sessions is too much, a waste of 
time. Our network is very fast, so 30 seconds should be enough ...


I've only recently started playing with LDAP but it sounds to me like
you probably have one of the 'hard' options set for the reconnect policy
in your nss_ldap.conf file.  I use 'bind_policy soft' so that if the
LDAP server isn't available we fail over to the next nsswitch service
immediately.

I don't think further discussion of this thread belongs on the
freebsd-current list.

Hope this helps.



bind_policy soft
is a bad solution. When you have network lags, you have chance to get 
flapping connection error.


http://www.liquidx.net/blog/2006/04/03/nss_ldap-undocumented-nss_reconnect_tries/
nss_reconnect_sleeptime 0
nss_reconnect_maxsleeptime 1
nss_reconnect_maxconntries 1

WBR
___
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 7.2 - stable postfix port updated problem

2009-09-22 Thread Jorge Medina
I update to postfix 2.6 from 2.5 and this don't work with VDA patch
and the port say: ported for 32 bit
port postfix25 use the 2.6 version too.

And after update don't exec this pipe never more:

autoreply   unix  -   n   n   -   -   pipe
flags=F  user=nobody
argv=/usr/local/autoresponder/main.php $sender $recipient

somebody have problems like this?

-- 
Jorge Andrés Medina Oliva.
___
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: network freebsd computers

2009-09-22 Thread David Kelly
On Tue, Sep 22, 2009 at 02:53:17PM -0400, Jerry McAllister wrote:
 On Tue, Sep 22, 2009 at 02:48:58PM -0400, Carmel NY wrote:
 
  On Tue, 22 Sep 2009 12:25:38 -0600 (MDT)
  Warren Block wbl...@wonkity.com wrote:
  
  [snip]
  
   It's still a little unclear.  If you want the FreeBSD systems to 
   participate in the Windows networking, look at mount_smbfs and Samba.
  
  I want to be able to access a FreeBSD box from another FreeBSD box. I
  rarely access a Windows machine from FreeBSD as it is just easier to do
  it the other way around.
 
 Am I missing something or would ssh, scp and directing your Xwindows
 display from the headless machine to a desktop X server cover
 everything you are asking for?

It would, but he's approaching the problem with Windows-colored glasses.

-- 
David Kelly N4HHE, dke...@hiwaay.net

Whom computers would destroy, they must first drive mad.
___
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: network freebsd computers

2009-09-22 Thread Roland Smith
On Tue, Sep 22, 2009 at 01:39:53PM -0400, Carmel NY wrote:
 Most of my networking experience is based on a Windows. Networking two
 or more PCs together in a Window's environment is easy. Unfortunately,
 I am not getting anywhere accomplishing the same with multiple FreeBSD
 machines. I can get them networked with Window's machines; however, not
 with each other.

FYI, syncronizing files between FreeBSD and other UNIX-like systems is quite
easy with rsync [http://www.samba.org/rsync/]. This is also quite easy to
automate (e.g. running rsync from cron).

For simple and fast data exchange, nothing beats netcat. [nc(1)]
For remote backups I tend to pipe the output of dump(8) through netcat
on one machine, and pipe the output from a listening netcat on another machine
to a file. Suppose I want to backup machine 'foo' to machine 'bar'. On 'bar' I
would start the following command: 
 'nc -l 65000 |bzip2 -c foo-root-20090922.dump.bz2'.
On 'foo' I would then start the following command as root: 
 'dump -0 -a -C 8 -L -u -f - /|nc bar 65000'

Typically I would be doing this sitting behind one of those machines with the
X window system running and a local terminal and a terminal running ssh to
the other machine open.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpm87CJEgLmr.pgp
Description: PGP signature


Re: /sys/modules/mii/nsgphy.c compilation errors

2009-09-22 Thread Lowell Gilbert
Scott Bennett benn...@cs.niu.edu writes:

  An update committed since Friday appears to have broken mii/nsgphy.c
 in the kernel.  When I try to build a kernel now, I get the following errors
 during the compilations of mii/nsgphy.c.

 /usr/src/sys/modules/mii/../../dev/mii/nsgphy.c:104: error: 
 'MII_MODEL_NATSEMI_DP83865' undeclared here (not in a function)
 /usr/src/sys/modules/mii/../../dev/mii/nsgphy.c:104: error: 
 'MII_STR_NATSEMI_DP83865' undeclared here (not in a function)
 *** Error code 1
 1 error
 *** Error code 2
 1 error
 *** Error code 2
 1 error

  Having run cvsup just a few minutes ago and then having tried again to
 build a kernel, I see that the errors persist.  Is this something that someone
 is already fixing?  Or should I try to submit a PR?

You don't mention which branch you're on, but it sounds like it's
probably a local issue for your installation.  I built and installed
from the latest RELENG_7 today, and there are new bug reports on
RELENG_8 since Friday.  Those failing identifiers *are* present in the
correct sources; it looks like your miidevs.h isn't being regenerated
properly.  You *are* remembering to do a buildworld before a
buildkernel, right?

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
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: network freebsd computers

2009-09-22 Thread Carmel NY
On Tue, 22 Sep 2009 14:53:17 -0400
Jerry McAllister jerr...@msu.edu wrote:

[snip]

 Am I missing something or would ssh, scp and directing your Xwindows
 display from the headless machine to a desktop X server cover
 everything you are asking for?

I was just playing around with ssh. Would it be possible to store
multiple keys in the ~/.ssh/authorized_keys file?

-- 
Carmel
car...@hotmail.com

Lady Luck brings added income today. Lady friend takes it away tonight.
___
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


Fwd: Wake up time

2009-09-22 Thread Anselm Strauss

Begin forwarded message:


From: Anselm Strauss amsiba...@gmail.com
Date: September 22, 2009 8:55:42 PM GMT+02:00
To: Don Brearley donbrear...@hibbing.edu
Subject: Re: Wake up time

Good idea. Would work for my setup, my router should be always on.  
And I think there is a wakeonlan port for FreeBSD.


The advantage of this solution would be that I can trigger a wakeup  
on very dynamic events. If I set the wakeup time in the BIOS it's  
rather static, and I have to know the next wakeup before I shut down  
the host.



On Sep 21, 2009, at 23:25 , Don Brearley wrote:


Roland Smith rsm...@xs4all.nl 09/21/09 4:06 PM 

On Mon, Sep 21, 2009 at 10:06:28PM +0200, Anselm Strauss wrote:

Hi,

anybody knows if it's possible to set BIOS wake up time in  
FreeBSD. I

have a machine I would like to regularly shutdown and wake up at
different times depending the on the day of week.



Could you enable Wake-On-LAN in the BIOS and then configure  
another box

to wake it up via the LAN at your specified time?

- Don
___
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: network freebsd computers

2009-09-22 Thread Lowell Gilbert
Carmel NY carmel...@hotmail.com writes:

 On Tue, 22 Sep 2009 14:53:17 -0400
 Jerry McAllister jerr...@msu.edu wrote:

 [snip]

 Am I missing something or would ssh, scp and directing your Xwindows
 display from the headless machine to a desktop X server cover
 everything you are asking for?

 I was just playing around with ssh. Would it be possible to store
 multiple keys in the ~/.ssh/authorized_keys file?

Of course.

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
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: network freebsd computers

2009-09-22 Thread Neal Hogan
On Tue, Sep 22, 2009 at 2:27 PM, Carmel NY carmel...@hotmail.com wrote:
 On Tue, 22 Sep 2009 14:53:17 -0400
 Jerry McAllister jerr...@msu.edu wrote:

 [snip]

 Am I missing something or would ssh, scp and directing your Xwindows
 display from the headless machine to a desktop X server cover
 everything you are asking for?

 I was just playing around with ssh. Would it be possible to store
 multiple keys in the ~/.ssh/authorized_keys file?

Yes.

But, before this thread turns into your personal tutorial, have a look
at the documentation on freebsd.org.


 --
 Carmel
 car...@hotmail.com

 Lady Luck brings added income today. Lady friend takes it away tonight.
 ___
 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: network freebsd computers

2009-09-22 Thread Carmel NY
On Tue, 22 Sep 2009 14:08:21 -0500
David Kelly dke...@hiwaay.net wrote:

[snip]

 It would, but he's approaching the problem with Windows-colored
 glasses.

I am not sure what that is even suppose to mean, so I'll just ignore it.

-- 
Carmel
car...@hotmail.com

Beware of friends who are false and deceitful.
___
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: network freebsd computers

2009-09-22 Thread Carmel NY
On Tue, 22 Sep 2009 21:08:44 +0200
Roland Smith rsm...@xs4all.nl wrote:

 On Tue, Sep 22, 2009 at 01:39:53PM -0400, Carmel NY wrote:
  Most of my networking experience is based on a Windows. Networking
  two or more PCs together in a Window's environment is easy.
  Unfortunately, I am not getting anywhere accomplishing the same
  with multiple FreeBSD machines. I can get them networked with
  Window's machines; however, not with each other.
 
 FYI, syncronizing files between FreeBSD and other UNIX-like systems
 is quite easy with rsync [http://www.samba.org/rsync/]. This is also
 quite easy to automate (e.g. running rsync from cron).

I use rsync quite often. It is not relevant to this discussion however.
 
 For simple and fast data exchange, nothing beats netcat. [nc(1)]
 For remote backups I tend to pipe the output of dump(8) through netcat
 on one machine, and pipe the output from a listening netcat on
 another machine to a file. Suppose I want to backup machine 'foo' to
 machine 'bar'. On 'bar' I would start the following command: 
  'nc -l 65000 |bzip2 -c foo-root-20090922.dump.bz2'.
 On 'foo' I would then start the following command as root: 
  'dump -0 -a -C 8 -L -u -f - /|nc bar 65000'

Useful information; however, not relevant.

 Typically I would be doing this sitting behind one of those machines
 with the X window system running and a local terminal and a terminal
 running ssh to the other machine open.

I have not experimented with that yet. If needed, would I be able to
run a program that required a GUI on the remote machine, or would I
need to install and load all the X programs also?

-- 
Carmel
car...@hotmail.com

The person who marries for money usually earns every penny of it.
___
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: Booting ZFS and GPT

2009-09-22 Thread Anselm Strauss
My next question is: Is it actually the plan to use ZFS as official  
root filesystem in FreeBSD, eventually replacing UFS? Is ZFS actually  
designed for that use?


Anselm


On Sep 17, 2009, at 22:25 , krad wrote:


2009/9/17 Anselm Strauss amsiba...@gmail.com
Hi,

I've read and tried out that FreeBSD is able to boot from ZFS  
directly, also with GPT partitions, through zfsboot and gptzfsboot.  
When I tried the last time 8-CURRENT it was however not built into  
the release CD. Will this be included in the final release image? Is  
there any plan to include GPT and ZFS setup in sysinstall during an  
initial installation?


Cheers,
Anselm
___
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 



To big a rewrite needed i think. I've heard of plans to potentially  
release a graphical installer based on pc-bsd, which will do all the  
bells an whistles. Not sure what stage its at though.


The biggest thing we need for the release is for the loader to be  
compiled with zfs support in. It seems to have been in and out over  
the past few months so i try to make sure i have my own version  
specially compiled with it in.


___
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: network freebsd computers

2009-09-22 Thread Roland Smith
On Tue, Sep 22, 2009 at 03:35:44PM -0400, Carmel NY wrote:
  Typically I would be doing this sitting behind one of those machines
  with the X window system running and a local terminal and a terminal
  running ssh to the other machine open.
 
 I have not experimented with that yet. If needed, would I be able to
 run a program that required a GUI on the remote machine, or would I
 need to install and load all the X programs also?

You can run a program on the remote machine and have it display on your local
machine. If you set the DISPLAY variable on the remote machine to point to
your local machine it should work, provided that you are not blocking the
ports used by X (6000-6063, IIRC). You can also use xon(1) to start an X
program on a remote machine. Keep in mind that not all X protocol extensions
are supported over the network, though. You will need the X11 libraries on the
remote machine, but not the server. If you are connecting via ssh, you can
also configure that to allow X11 forwarding, if you want to keep the
connection secure.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpN3a6NW5BnV.pgp
Description: PGP signature


zyd TEW-424UB

2009-09-22 Thread Albert Shih
Hi all

I'm using FreeBSD 7-stable on my laptop. The wifi card is not working with
FreeBSD. 

So I just buy a 

Trendnet TEW-424UB

wifi usb adapter. I find this in the 

man zyd

but when I plug my adapter (after add if_zyd_load=YES in my loader.conf
and reboot) it's not working. 

Anyone have a idea why this f(*!@)(# adapter don't work ?

Regards.
-- 
Albert SHIH
SIO batiment 15
Observatoire de Paris Meudon
5 Place Jules Janssen
92195 Meudon Cedex
Téléphone : 01 45 07 76 26/06 86 69 95 71
Heure local/Local time:
Mar 22 sep 2009 21:52:24 CEST
___
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: network freebsd computers

2009-09-22 Thread Mikel King


On Sep 22, 2009, at 3:27 PM, Carmel NY wrote:


On Tue, 22 Sep 2009 14:53:17 -0400
Jerry McAllister jerr...@msu.edu wrote:

[snip]


Am I missing something or would ssh, scp and directing your Xwindows
display from the headless machine to a desktop X server cover
everything you are asking for?


I was just playing around with ssh. Would it be possible to store
multiple keys in the ~/.ssh/authorized_keys file?

--
Carmel
car...@hotmail.com


Absolutely. 


___
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: Booting ZFS and GPT

2009-09-22 Thread krad
2009/9/22 Anselm Strauss amsiba...@gmail.com

 My next question is: Is it actually the plan to use ZFS as official root
 filesystem in FreeBSD, eventually replacing UFS? Is ZFS actually designed
 for that use?

 Anselm



 On Sep 17, 2009, at 22:25 , krad wrote:

  2009/9/17 Anselm Strauss amsiba...@gmail.com
 Hi,

 I've read and tried out that FreeBSD is able to boot from ZFS directly,
 also with GPT partitions, through zfsboot and gptzfsboot. When I tried the
 last time 8-CURRENT it was however not built into the release CD. Will this
 be included in the final release image? Is there any plan to include GPT and
 ZFS setup in sysinstall during an initial installation?

 Cheers,
 Anselm
 ___
 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

 To big a rewrite needed i think. I've heard of plans to potentially
 release a graphical installer based on pc-bsd, which will do all the bells
 an whistles. Not sure what stage its at though.

 The biggest thing we need for the release is for the loader to be compiled
 with zfs support in. It seems to have been in and out over the past few
 months so i try to make sure i have my own version specially compiled with
 it in.



I dont think there are any specific plans at present, as its not deemed
stable enough. Its also a complete resource hog compared to ufs, so for the
foreseeable future I can't see it happening.

One of the good things about freebsd is the range of hardware it supports.
If you made zfs the default option you would be making most hardware over a
few years old unusable without tinkering with the default options.

However  two or three years (ish)  when the average new purchase its a 16
core system with 16 GB ram, a few ssds and 10 TB of disk and the older
systems are the hi spec systems from today then there would be a good case
for it i guess.
___
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: LDAP server gone - impossible to login locally!

2009-09-22 Thread Erik Norgaard

Daniel O'Connor wrote:

On Tue, 22 Sep 2009, O. Hartmann wrote:

I run into trouble with FreeBSD and LDAP on a regular basis!

Sometimes it is necessary to log in onto a bunch of servers with no
LDAP service responding, due to service, crash, eletrically
disconnetion, whatever. The problem is: I can't.
Using all prerequisits from ports (pam_ldap/nss_ldap/ldap as most
recent) my /etc/nsswitch.conf looks like this as it has been the most
reasonable (and only working!) solution for the past 2 years:

passwd: ldap [unavail=continue notfound=continue] files
[success=return notfound=return]


I just have
passwd: cache files ldap
group: cache files ldap

and I can login as root locally without any delay.

That said my LDAP server is on the same machine so perhaps it fails 
faster. I am using uri ldapi://%2fvar%2frun%2fopenldap%2fldapi/ to 
connect to.




This sounds like the correct solution, AFAIK it's the same concept as 
for NIS, first check local files, then ldap. You don't want your root 
credentials possibly be leaked accross the network. On the other hand 
you don't want or need user accounts in the local files.


Default first check local files which is fast, then fall back on ldap if 
the user is not found.


BR, Erik
--
Erik Nørgaard
Ph: +34.666334818/+34.915211157  http://www.locolomo.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: network freebsd computers

2009-09-22 Thread David Kelly
On Tue, Sep 22, 2009 at 03:29:43PM -0400, Carmel NY wrote:
 On Tue, 22 Sep 2009 14:08:21 -0500
 David Kelly dke...@hiwaay.net wrote:
 
 [snip]
 
  It would, but he's approaching the problem with Windows-colored
  glasses.
 
 I am not sure what that is even suppose to mean, so I'll just ignore it.

It means you are trying to make Unix conform to your Windows habits. For
security, simplicity, and security (yes, security twice) we are not in
the habit of wantonly sharing our file systems. Historically remote
login has been difficult on Windows systems while file(system) sharing
has been relatively easy so Windows Administrators learned how to manage
systems by pushing files around on shared file systems. I'm saying it
sounds an awful lot like that is what you are trying to do. If so then
you will quickly find Unix doesn't like to let root (Administrator)
easily cross system boundaries.

Meanwhile others have listed a multitude of utilities for shooting files
across multiple machines, including simple terminal login and more
advanced GUI X11 login. None of which use shared file systems as their
core connection method.

Expanding on what I said earlier, if joe is userid 1001, do not reuse
1001 on any other machine unless joe has an account there too. Unix
file ownership is by userid and groupid *numbers*. The number doesn't
have to be defined in the password or group databases to be used. Most
file sync and archivers only use the numbers.

-- 
David Kelly N4HHE, dke...@hiwaay.net

Whom computers would destroy, they must first drive mad.
___
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: network freebsd computers

2009-09-22 Thread Jerry McAllister
On Tue, Sep 22, 2009 at 03:40:41PM -0500, David Kelly wrote:

 On Tue, Sep 22, 2009 at 03:29:43PM -0400, Carmel NY wrote:
  On Tue, 22 Sep 2009 14:08:21 -0500
  David Kelly dke...@hiwaay.net wrote:
  
  [snip]
  
   It would, but he's approaching the problem with Windows-colored
   glasses.
  
  I am not sure what that is even suppose to mean, so I'll just ignore it.
 
 It means you are trying to make Unix conform to your Windows habits. For
 security, simplicity, and security (yes, security twice) we are not in
 the habit of wantonly sharing our file systems. Historically remote
 login has been difficult on Windows systems while file(system) sharing
 has been relatively easy so Windows Administrators learned how to manage
 systems by pushing files around on shared file systems. I'm saying it
 sounds an awful lot like that is what you are trying to do. If so then
 you will quickly find Unix doesn't like to let root (Administrator)
 easily cross system boundaries.

Really, it sounds like this guy is a candidate for AFS.
Actually probably serious over-kill for his situation, but
it does wonders.I think there is now (again) an OpenAFS
for FreeBSD. AFS plus X-windows  would more than do it.

jerry



 
 Meanwhile others have listed a multitude of utilities for shooting files
 across multiple machines, including simple terminal login and more
 advanced GUI X11 login. None of which use shared file systems as their
 core connection method.
 
 Expanding on what I said earlier, if joe is userid 1001, do not reuse
 1001 on any other machine unless joe has an account there too. Unix
 file ownership is by userid and groupid *numbers*. The number doesn't
 have to be defined in the password or group databases to be used. Most
 file sync and archivers only use the numbers.
 
 -- 
 David Kelly N4HHE, dke...@hiwaay.net
 
 Whom computers would destroy, they must first drive mad.
 ___
 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: network freebsd computers

2009-09-22 Thread Jerry McAllister
On Tue, Sep 22, 2009 at 03:27:35PM -0400, Carmel NY wrote:

 On Tue, 22 Sep 2009 14:53:17 -0400
 Jerry McAllister jerr...@msu.edu wrote:
 
 [snip]
 
  Am I missing something or would ssh, scp and directing your Xwindows
  display from the headless machine to a desktop X server cover
  everything you are asking for?
 
 I was just playing around with ssh. Would it be possible to store
 multiple keys in the ~/.ssh/authorized_keys file?

It will put a key there for every place you go to with ssh.
The only annoyance is when you upgrade a machine, or otherwise
cause the key for a machine to change, you may have to go in to
that file and manually delete the old key before it will store
another one for the same address.   That is easy, but I always
forget to do it until the key is refused, and of course, I am
in a hurry.

jerry


 
 -- 
 Carmel
 car...@hotmail.com
 
 Lady Luck brings added income today. Lady friend takes it away tonight.
 ___
 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: internet access from FreeBSD

2009-09-22 Thread Chad Perrin
On Tue, Sep 22, 2009 at 08:32:04AM +, gs_stol...@juno.com wrote:
  I have a copy of Greg Lehey's online book about FreeBSD,
  but I believe it is from February 2006.  Is there a later
  copy, and if so, where can I find a copy (URL please)?  I
  searched my copy for the word internet and couldn't find
  it.  I did access the internet with a take-off copy of
  FreeBSD, but I don't have access to it any more.  Can I
  access the internet with a currently gettable copy of
  FreeBSD, and if so, for what versions is that true (my
  personal version is old, but it works well so I never
  upgraded)?  Since I get my mail via  juno , can I access
  them nicely from FreeBSD or do I need something to
  interface to it and present me with my mailbox, listing
  the items in it and telling me the usual stuff about
  envelop mail (sender, subject, when received)?

I think you might have left out some important information we could use
to better help you.

Are you talking about the ISP Juno?  (Do they still exist?)

Are you in the US?

Are you asking about how to connect to your ISP via a dial-up connection?
I think most of us are using DSL or cable broadband, so people may not be
making the same assumptions about what connect to the Internet as what
you expect.

What is a take-off copy of FreeBSD?  Do you perhaps mean a LiveCD -- a
CD on which a bootable install of FreeBSD exists, so you can boot into
FreeBSD on the CD, but then take out the CD and reboot into whatever OS
is installed on the computer's hard drive?

I'm making some wild guesses here, because I really don't know what
you're asking.  Please help us clarify your needs so we can help you
satisfy them.

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]


pgpXyD1YX4zS9.pgp
Description: PGP signature


Re: Device naming on scbus using isp

2009-09-22 Thread Brent Bloxam

Brent Bloxam wrote:
I'm wondering about how device names are assigned on scbus, specifically 
when using the isp driver. It seems to me that there's potential when an 
HBA has access to multiple LUNs that on boot the scbus will have entries 
in /dev scrambled compared to the previous run (thus messing up mounts). 
My experience so far has been that da0 will be assigned to the first 
target scanned, da1 to the second, etc. Is this generally something 
countered with device.hints? If a LUN were to go away, but a device hint 
pointing to the target:unit remained, would that cause any issues on boot?


Thanks,
Brent


Thought I'd follow up with a bit of information I've determined about 
this, despite the lack of response from anyone on list. Maybe someone 
will find it useful :)


I can only speak for this applying to use of isp(4) with scbus(4).

Devices that operate in target mode appear to isp(4) and are assigned a 
target ID starting at 0. The order in which they appear depends on their 
fcid or what's known to isp(4) as PortID. This order is ascending, so 
the lower fcid takes precedence. isp(4) will then check the target to 
see if any LUNs are available to it. If not, the target disappears -- 
and here's the important thing to note -- but its target ID does not go 
away.


Say you have 5 devices with the following fcids, 4 in target mode:

0x00 - target
0x01 - target
0x02 - another server with an HBA
0xF0 - target with LUN
0xF1 - target with LUN

isp(4) is loaded at boot, and the following occurs:

0x00 appears, is assigned target 0, and disappears because there are no LUNs
0x01 appears, is assigned target 1, and disappears because there are no LUNs
0x02 appears and simply disappears because it is not a target
0xF0 appears, is assigned target 2, and is assigned to da0
0xF1 appears, is assigned target 3, and is assigned to da1

You can see because of this example that maintaining device names using 
/boot/device.hints is impossible if targets in the fabric change. If 
0x00 were to disappear, the target IDs would change and render 
/boot/device.hints invalid, or worse, the wrong LUN could be given the 
wrong device name.



Ideally, there would be a way to assign target IDs by fcid, but that 
does not exist presently.

___
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: network freebsd computers

2009-09-22 Thread David Kelly
On Tue, Sep 22, 2009 at 04:46:49PM -0400, Jerry McAllister wrote:
 On Tue, Sep 22, 2009 at 03:27:35PM -0400, Carmel NY wrote:
 
  I was just playing around with ssh. Would it be possible to store
  multiple keys in the ~/.ssh/authorized_keys file?
 
 It will put a key there for every place you go to with ssh.

I think this is the place one puts the public key of accounts (not the
host) from which one is *coming* from that one wishes to accept login
without further challenge.

~/.ssh/known_hosts automatically (prompted first time) records the host
public key of places you have been so as to warn you that the connection
is not to a previously known machine.

-- 
David Kelly N4HHE, dke...@hiwaay.net

Whom computers would destroy, they must first drive mad.
___
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: network freebsd computers

2009-09-22 Thread Neal Hogan
On Tue, Sep 22, 2009 at 4:22 PM, David Kelly dke...@hiwaay.net wrote:
 On Tue, Sep 22, 2009 at 04:46:49PM -0400, Jerry McAllister wrote:
 On Tue, Sep 22, 2009 at 03:27:35PM -0400, Carmel NY wrote:

  I was just playing around with ssh. Would it be possible to store
  multiple keys in the ~/.ssh/authorized_keys file?

 It will put a key there for every place you go to with ssh.

 I think this is the place one puts the public key of accounts (not the
 host) from which one is *coming* from that one wishes to accept login
 without further challenge.

 ~/.ssh/known_hosts automatically (prompted first time) records the host
 public key of places you have been so as to warn you that the connection
 is not to a previously known machine.

While this is correct, as I said before, let's not let this thread be
a regurgitation of the documentation. I think the M$/OP dude has been
lead down the right path and needs to reach the end (more or less) on
his own. Our bandwidth should be devoted to more important things,
like . . . . well . . . anything else.

(Yes, yes . . . I took up bandwidth to make this silly comment.
Nip-it-in-the-bud, so to speak)


 --
 David Kelly N4HHE, dke...@hiwaay.net
 
 Whom computers would destroy, they must first drive mad.
 ___
 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: Device naming on scbus using isp

2009-09-22 Thread Dan Nelson
In the last episode (Sep 22), Brent Bloxam said:
 Brent Bloxam wrote:
  I'm wondering about how device names are assigned on scbus, specifically
  when using the isp driver.  It seems to me that there's potential when
  an HBA has access to multiple LUNs that on boot the scbus will have
  entries in /dev scrambled compared to the previous run (thus messing up
  mounts).  My experience so far has been that da0 will be assigned to the
  first target scanned, da1 to the second, etc.  Is this generally
  something countered with device.hints?  If a LUN were to go away, but a
  device hint pointing to the target:unit remained, would that cause any
  issues on boot?

 Thought I'd follow up with a bit of information I've determined about 
 this, despite the lack of response from anyone on list. Maybe someone 
 will find it useful :)
 
 I can only speak for this applying to use of isp(4) with scbus(4).
 
 Devices that operate in target mode appear to isp(4) and are assigned a
 target ID starting at 0.  The order in which they appear depends on their
 fcid or what's known to isp(4) as PortID.  This order is ascending, so the
 lower fcid takes precedence.  isp(4) will then check the target to see if
 any LUNs are available to it.  If not, the target disappears -- and here's
 the important thing to note -- but its target ID does not go away.
 
 Say you have 5 devices with the following fcids, 4 in target mode:
 
 0x00 - target
 0x01 - target
 0x02 - another server with an HBA
 0xF0 - target with LUN
 0xF1 - target with LUN
 
 isp(4) is loaded at boot, and the following occurs:
 
 0x00 appears, is assigned target 0, and disappears because there are no LUNs
 0x01 appears, is assigned target 1, and disappears because there are no LUNs
 0x02 appears and simply disappears because it is not a target
 0xF0 appears, is assigned target 2, and is assigned to da0
 0xF1 appears, is assigned target 3, and is assigned to da1
 
 You can see because of this example that maintaining device names using 
 /boot/device.hints is impossible if targets in the fabric change. If 
 0x00 were to disappear, the target IDs would change and render 
 /boot/device.hints invalid, or worse, the wrong LUN could be given the 
 wrong device name.
 
 Ideally, there would be a way to assign target IDs by fcid, but that 
 does not exist presently.

If you're mounting UFS filesystems, you can label them and mount them by
label (see the tunefs and glabel manpages for more info).  ZFS should find
its pool devices automatically, but you can always manually label devices
with glabel and refer to the label instead of the da## name.

-- 
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: network freebsd computers

2009-09-22 Thread Jerry McAllister
On Tue, Sep 22, 2009 at 04:22:54PM -0500, David Kelly wrote:

 On Tue, Sep 22, 2009 at 04:46:49PM -0400, Jerry McAllister wrote:
  On Tue, Sep 22, 2009 at 03:27:35PM -0400, Carmel NY wrote:
  
   I was just playing around with ssh. Would it be possible to store
   multiple keys in the ~/.ssh/authorized_keys file?
  
  It will put a key there for every place you go to with ssh.
 
 I think this is the place one puts the public key of accounts (not the
 host) from which one is *coming* from that one wishes to accept login
 without further challenge.
 
 ~/.ssh/known_hosts automatically (prompted first time) records the host
 public key of places you have been so as to warn you that the connection
 is not to a previously known machine.

You are right.   
I didn't look at the file name closely.

You can still have more than one.

jerry

 
 -- 
 David Kelly N4HHE, dke...@hiwaay.net
 
 Whom computers would destroy, they must first drive mad.
 ___
 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: network freebsd computers

2009-09-22 Thread Chad Perrin
On Tue, Sep 22, 2009 at 02:12:48PM -0400, Carmel NY wrote:
 
 Presently, I have Samba set up on my FreeBSD machines. Windows can
 access the shared directories without any problems. I also have Putty
 installed on the Windows machines so I can directly access the FreeBSD
 boxes when required.
 
 I want the same functionality between the FreeBSD boxes. Eventually, at
 least one of them will be run headless; the mail server in particular.
 
 I can find a virtual cornucopia of information on networking Windows
 machines; Microsoft even includes a wizard to accomplish it. However,
 there does not seem to be as much information regarding non-Windows
 products.
 
 At present, all machines are connected, either wired or wireless,
 through a linksys router.

Okay, so it sounds like you want to be able to do two things between your
FreeBSD systems:

1. You want to be able to log into them remotely, as you do from MS
Windows machines using PuTTY.  This is trivially accomplished using a
tool that is already installed on all your FreeBSD machines, unless you
have a very abnormal install.  It's called OpenSSH.  Assuming you have
either DHCP managing hostname resolution on your network or all the
appropriate entries in your /etc/hosts file, you can log into remote
machine bar as username foo like so:

ssh f...@bar

2. You want to be able to access the remote filesystem as an extension of
however you browse local filesystems (using Dolphin, Konqueror, the
shell, whatever).  To do this, you must mount the remote filesystem on
the local system.  To do *that*, you must have some kind of network
filesystem software running -- a server on the remote machine, and a
client on the local machine.  NFS is the generally accepted normal way
to do so on Unix systems.  If you're using Samba on your FreeBSD machines
anyway, you should be able to use Samba to do so between FreeBSD machines
as well (and others in this discussion have mentioned some starting
points for doing so).  Another option is to use sshfs, which is a network
filesystem tool that uses the SSH protocol to let you mount remote
filesystems locally.

Of course, depending on what you *actually* want to do from one moment to
the next with your remote filesystem, you could use SCP and SFTP (part of
the OpenSSH suite of remote access utilities) to transfer files back and
forth.  I use SSH and SCP quite extensively, and occasionally use sshfs
(for things like using Herrie to play music on the local machine from a
directory on a remote fileserver).  I haven't had need for Samba for
several years, because I just interact with MS Windows that much.  Your
mileage may vary.

I hope this helps get you on the track to solving the problem.

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]


pgpoi1uW3xZGH.pgp
Description: PGP signature


Re: network freebsd computers

2009-09-22 Thread Chad Perrin
On Tue, Sep 22, 2009 at 09:51:42PM +0200, Roland Smith wrote:
 On Tue, Sep 22, 2009 at 03:35:44PM -0400, Carmel NY wrote:
   Typically I would be doing this sitting behind one of those machines
   with the X window system running and a local terminal and a terminal
   running ssh to the other machine open.
  
  I have not experimented with that yet. If needed, would I be able to
  run a program that required a GUI on the remote machine, or would I
  need to install and load all the X programs also?
 
 You can run a program on the remote machine and have it display on your local
 machine. If you set the DISPLAY variable on the remote machine to point to
 your local machine it should work, provided that you are not blocking the
 ports used by X (6000-6063, IIRC). You can also use xon(1) to start an X
 program on a remote machine. Keep in mind that not all X protocol extensions
 are supported over the network, though. You will need the X11 libraries on the
 remote machine, but not the server. If you are connecting via ssh, you can
 also configure that to allow X11 forwarding, if you want to keep the
 connection secure.

I keep X forwarding disabled in configuration and, when necessary, enable
it for one specific connection using the -X option for SSH.

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]


pgpD3pmBpJtpC.pgp
Description: PGP signature


Re: internet access from FreeBSD

2009-09-22 Thread Adam Vande More
On Tue, Sep 22, 2009 at 3:32 AM, gs_stol...@juno.com gs_stol...@juno.comwrote:

 I have a copy of Greg Lehey's online book about FreeBSD, but
 I believe it is from February 2006.  Is there a later copy, and if so, where
 can I find a copy (URL please)?  I searched my copy for the word internet
 and couldn't find it.  I did access the internet with a take-off copy of
 FreeBSD, but I don't have access to it any more.  Can I access the internet
 with a currently gettable copy of FreeBSD, and if so, for what versions is
 that true (my personal version is old, but it works well so I never
 upgraded)?  Since I get my mail via  juno , can I access them nicely from
 FreeBSD or do I need something to interface to it and present me with my
 mailbox, listing the items in it and telling me the usual stuff about
 envelop mail (sender, subject, when received)?
 
 $5,000 a Week For Life
 Publishers Clearing House winner annouced on NBC. Enter now.

 http://thirdpartyoffers.juno.com/TGL2141/c?cp=NJLnQx9Yu8C9A0FjGKLJHAAAJ1CMuunOdcztR0sdySRQWupwAAQFAArXIzwACQGZAA==


The handbook is available in ports here

/usr/ports/misc/freebsd-doc-en

or you may be more interesting in this:

http://www.absolutefreebsd.com/

which I believe is more current than Mr Lehey's fine but aging work.


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


seeing a wireless router when building a 7.2 system

2009-09-22 Thread Henry Olyer
I am putting up 7.2 and I am attempting to use a wireless router.
How do I tell the 7.2  configurator to use my router, wirelessly?

--jg

I am using an Atheros chip-set, so I am not expecting trouble.  I just need
FBSD to see my system.  I know my wireless 'name'.  What do I do??
___
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: Device naming on scbus using isp

2009-09-22 Thread Brent Bloxam

Dan Nelson wrote:

If you're mounting UFS filesystems, you can label them and mount them by
label (see the tunefs and glabel manpages for more info).  ZFS should find
its pool devices automatically, but you can always manually label devices
with glabel and refer to the label instead of the da## name.
  
Thanks Dan, I'm using UFS so looks like labeling will be the solution to 
this issue

___
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: Help configuring sendmail to send only using authorization to smart host

2009-09-22 Thread Giorgos Keramidas
On Tue, 22 Sep 2009 12:37:27 -0500, Phusion phusio...@gmail.com wrote:
 I recompiled sendmail and now get the following when running sendmail -d0.1 
 -bv.
 I now have added the following to sendmail.mc.

 FEATURE(masquerade_envelope)
 FEATURE(genericstable, `hash -o /etc/mail/genericstable')
 GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')
 TRUST_AUTH_MECH(`LOGIN PLAIN')dnl
 define(`confAUTH_MECHANISMS',`LOGIN PLAIN')dnl
 FEATURE(authinfo, `hash -o /etc/mail/auth/authinfo')
 define(`SMART_HOST', `mail.test.com')
 define(`confCW_FILE', `-o /etc/mail/local-host-names')
 dnl DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Modifiers=O')

 I created /etc/mail/auth/authinfo and then did the makemaps to create
 the hashd .db file. When trying to email outbound, I still get the
 same error in the logs.

 ...relay=mail.test.com. [public_IP_address], dsn=5.6.0, stat=Data format error

More about this later.

 The /etc/mail/auth/authinfo file looks like the following.

 
 AuthInfo:mail.test.com U:usern...@isp.com P:password
 

This looks ok.

The ``dsn=5.6.0, stat=Data format error'' error code is described (along
with other SMTP error codes) in RFC 1893 as:

   5.X.X   Permanent Failure

   A permanent failure is one which is not likely to be resolved by
   resending the message in the current form.  Some change to the
   message or the destination must be made for successful delivery.

   X.6.X   Message Content or Media Status

   The message content or media status codes report failures
   involving the content of the message.  These codes report
   failures due to translation, transcoding, or otherwise
   unsupported message media.  Message content or media issues are
   under the control of both the sender and the receiver, both of
   whom must support a common set of supported content-types.

   X.6.0   Other or undefined media error

   Something about the content of a message caused it to be
   considered undeliverable and the problem cannot be well expressed
   with any of the other provided detail codes.

A few things to check are:

  * Can you resolve your own IP address correctly?

  * Can you resolve 'mail.test.com' correctly?

  * Can you connect to `mail.test.com' at port 25?

  * Can you connect to port 587 of `mail.test.com'?

  * Is `mail.test.com' the actual ISP mail server name?  If not, please
tell us its _real_ name, so we can also check if there are DNS or
other problems.

It may even be useful to show us tcpdump output obtained with:

tcpdump -n -v -l -X -i em0 'host a.b.c.d  port 25'

Where 'em0' is replaced by your outgoing interface, 'a.b.c.d' is
replaced by the IP address of 'mail.test.com' and you have carefully
edited the log file to _hide_ any occurrence of your password *only*.

___
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: LDAP server gone - impossible to login locally!

2009-09-22 Thread Daniel O'Connor
On Wed, 23 Sep 2009, Erik Norgaard wrote:
 This sounds like the correct solution, AFAIK it's the same concept as
 for NIS, first check local files, then ldap. You don't want your root
 credentials possibly be leaked accross the network. On the other hand
 you don't want or need user accounts in the local files.

 Default first check local files which is fast, then fall back on ldap
 if the user is not found.

Actually I wrote them the wrong way, how odd!
I actually have..
group: cache ldap files
passwd: cache ldap files

I think that if it fails ldap, it does so very quickly - it certainly 
did this morning when I rebooted uncleanly.

I believe I did try it as cache files ldap but I had some issues, I 
can't recall what they were though. I had quite a bit of difficulty 
getting it to work acceptably so when it did I left it alone :)

On a related note, why is slapd so damn fragile? It's a righteous pain 
in the bum the way you have to run db_recover-X.Y /var/db/openldap-data 
if slapd fails to start.

It wouldn't be so bad if it logged anything, but even with full logging 
it gives a very cryptic message and if you have logging disabled (which 
is recommended for performance!) it won't say _anything_.

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C


signature.asc
Description: This is a digitally signed message part.


Re: LDAP server gone - impossible to login locally!

2009-09-22 Thread Tim Judd
On 9/22/09, Daniel O'Connor docon...@gsoft.com.au wrote:
 On Wed, 23 Sep 2009, Erik Norgaard wrote:
 This sounds like the correct solution, AFAIK it's the same concept as
 for NIS, first check local files, then ldap. You don't want your root
 credentials possibly be leaked accross the network. On the other hand
 you don't want or need user accounts in the local files.

 Default first check local files which is fast, then fall back on ldap
 if the user is not found.

 Actually I wrote them the wrong way, how odd!
 I actually have..
 group: cache ldap files
 passwd: cache ldap files

 I think that if it fails ldap, it does so very quickly - it certainly
 did this morning when I rebooted uncleanly.

 I believe I did try it as cache files ldap but I had some issues, I
 can't recall what they were though. I had quite a bit of difficulty
 getting it to work acceptably so when it did I left it alone :)

 On a related note, why is slapd so damn fragile? It's a righteous pain
 in the bum the way you have to run db_recover-X.Y /var/db/openldap-data
 if slapd fails to start.

I run OpenLDAP on a few boxes.  I don't recall the power failures or
rude shutdowns to ever give me problems...  Course, I don't have
anything hi-traffic, so I would definately have time for softupdates
to flush to disk before a crash is inevitable.


I've marked this thread, it's been useful already with the
'[unavail=continue notfound=continue]' pieces after the ldap
dictionary in nsswitch.conf


Now I have another command, db_recover

 It wouldn't be so bad if it logged anything, but even with full logging
 it gives a very cryptic message and if you have logging disabled (which
 is recommended for performance!) it won't say _anything_.

To have OpenLDAP logging, you have to insert local4.* statements in
syslog.conf, touch the given file, and restart syslog.  Any logging
that OpenLDAP would need to send, is then recorded in syslog.

Why they picked 4, of 1 through 7, I'm not sure.


I'd help you with that, if you'd like.


 --
 Daniel O'Connor software and network engineer
 for Genesis Software - http://www.gsoft.com.au
 The nice thing about standards is that there
 are so many of them to choose from.
   -- Andrew Tanenbaum
 GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C

___
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: LDAP server gone - impossible to login locally!

2009-09-22 Thread Daniel O'Connor
On Wed, 23 Sep 2009, Tim Judd wrote:
  On a related note, why is slapd so damn fragile? It's a righteous
  pain in the bum the way you have to run db_recover-X.Y
  /var/db/openldap-data if slapd fails to start.

 I run OpenLDAP on a few boxes.  I don't recall the power failures or
 rude shutdowns to ever give me problems...  Course, I don't have
 anything hi-traffic, so I would definately have time for softupdates
 to flush to disk before a crash is inevitable.

This isn't high traffic, it's basically read only.

 I've marked this thread, it's been useful already with the
 '[unavail=continue notfound=continue]' pieces after the ldap
 dictionary in nsswitch.conf

man nsswitch.conf :)

 Now I have another command, db_recover

You can benefit from my torn out hair from when I went looking for it :)

  disabled (which is recommended for performance!) it won't say
  _anything_.

 To have OpenLDAP logging, you have to insert local4.* statements in
 syslog.conf, touch the given file, and restart syslog.  Any logging
 that OpenLDAP would need to send, is then recorded in syslog.

 Why they picked 4, of 1 through 7, I'm not sure.

Thanks, I've enabled it, normally I just fish through all.log :)

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C


signature.asc
Description: This is a digitally signed message part.


Re: seeing a wireless router when building a 7.2 system

2009-09-22 Thread Warren Block

On Tue, 22 Sep 2009, Henry Olyer wrote:


I am putting up 7.2 and I am attempting to use a wireless router.
How do I tell the 7.2  configurator to use my router, wirelessly?

--jg

I am using an Atheros chip-set, so I am not expecting trouble.  I just need
FBSD to see my system.  I know my wireless 'name'.  What do I do??


If you're using WPA, create your /etc/wpa_supplicant.conf:

network={
  ssid=myssid
  psk=mykey
}

Then you need the entries in /etc/rc.conf to create the wlan0 interface 
and set it up for WPA and DHCP:


wlans_ath0=wlan0
ifconfig_wlan0=WPA DHCP

If you're not using WPA, well, why not?

See the Handbook for more:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-wireless.html

-Warren Block * Rapid City, South Dakota USA
___
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