Re: PPPoE equivalent?

2007-05-21 Thread snowcrash+freebsd

hi,


I'm not sure there is, I've had a similar problem like this before,
and I got around
it by writing a simple script that would try and ping a local site 4
times, and if no
responses got back it would killall ppp and delete the default routes
and tell ppp
to reconnect. It worked quite well when put into cron to run at 1
minute intervals.


i'm getting all this set up as well, and following this thread ...

(1) are not ppp.linkup  ppp.linkdown supposed to be the 'place' to
deal with this?

(2) could you share your simple script?

thanks!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PPPoE equivalent?

2007-05-21 Thread Brian Walker

Here is my /etc/ppp/ppp.conf  it has been worked on but so far seems
to have been OK. As for regularly: it basically means several times a day
for no reason that is apparent to me.

default:
   set timeout 180
   enable dns
   set log Phase Chat IPCP tun command
   set redial 15 0
   set reconnect 15 10

internet:
   set device PPPoE:rl0
   set authname [EMAIL PROTECTED]
   set authkey **
   set ifaddr 0 0
   add default HISADDR
   disable acfcomp protocomp
   deny acfcomp
   set speed sync
#   set mtu max 1476
#   set mru max 1430
   enable lqr
   set lqrperiod 5
   set cd 5
   set dial
   set login
   set timeout 0

/etc/rc.conf looks like this:

keymap=us.iso
linux_enable=YES
sshd_enable=YES
usbd_enable=YES
sendmail_enable=YES
pf_enable=YES
pf_rules=/etc/pf.conf
pf_flags=
pflog_enable=YES
pflog_logfile=/var/log/pflog
pflog_flags=
ntpdate_enable=YES
ntpdate_flags=hk.pool.ntp.org
ntpd_enable=YES
devd_enable=YES

Yes, it puzzles me why it happens in the first place, but as it hits the XP,
linux and BSD connections equally frequenly, I am assuming it is a function
of hardware or IP provider.

Thanks for the replies so far!

Brian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: just general questions about fbsd

2007-05-21 Thread Garrett Cooper

Chad Perrin wrote:

On Sun, May 20, 2007 at 08:09:19PM -0400, Tamouh H. wrote:

On the other hand, Windows has the ability to change the administrator user or completely 
disable it. Something not available in Unix systems. For example, a cracker or hacker 
targeting UNIX system will automatically try to compromise the root user. It 
is 100% guaranteed to be there. On the other hand in Windows, good sys admins will rename 
or complete disable the administrator user hence making it more difficult to know the 
administrator user.



Actually . . . technically, root users can be renamed and can, in many
ways, be disabled.  They can certainly be made inaccessible remotely.



That can break many scripts though, can't it, if the dev improperly 
looks up the name, not the UID?


-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PPPoE equivalent?

2007-05-21 Thread snowcrash+freebsd

Yes, it puzzles me why it happens in the first place, but as it hits the XP,
linux and BSD connections equally frequenly, I am assuming it is a function
of hardware or IP provider.


fwiw, looking at your conf, my ppp.conf contains one setting that
yours does not ...

 enable tcpmssfixup

there's a bit of discussion abt it here:

 http://lists.apple.com/archives/Darwin-development/2001/Aug/msg00502.html

dunno if this is related -- just throwing it out there.

cheers.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PPPoE equivalent?

2007-05-21 Thread Nikola Lecic
On Mon, 21 May 2007 14:39:06 +0800
Brian Walker [EMAIL PROTECTED] wrote:

 Here is my /etc/ppp/ppp.conf  it has been worked on but so far
 seems to have been OK. As for regularly: it basically means several
 times a day for no reason that is apparent to me.
 
 default:
 set timeout 180
 enable dns
 set log Phase Chat IPCP tun command
 set redial 15 0
 set reconnect 15 10
 
 internet:
 set device PPPoE:rl0
 set authname [EMAIL PROTECTED]
 set authkey **
 set ifaddr 0 0
 add default HISADDR
 disable acfcomp protocomp
 deny acfcomp
 set speed sync
 #   set mtu max 1476
 #   set mru max 1430
 enable lqr
 set lqrperiod 5

I'd try to disable this:

  disable lqr

(with lqrperiod commented out, of course).

 set cd 5
 set dial
 set login
 set timeout 0
 
 /etc/rc.conf looks like this:
 
 keymap=us.iso
 linux_enable=YES
 sshd_enable=YES
 usbd_enable=YES
 sendmail_enable=YES
 pf_enable=YES
 pf_rules=/etc/pf.conf
 pf_flags=
 pflog_enable=YES
 pflog_logfile=/var/log/pflog
 pflog_flags=
 ntpdate_enable=YES
 ntpdate_flags=hk.pool.ntp.org
 ntpd_enable=YES
 devd_enable=YES

You might consider adding these lines here:

  ppp_enable=YES
  ppp_mode=ddial
  ppp_profile=internet
 
 Yes, it puzzles me why it happens in the first place, but as it hits
 the XP, linux and BSD connections equally frequenly, I am assuming it
 is a function of hardware or IP provider.

The Handbook explains what parameters can be tuned with the help of
your ISP. AFAIK tuning mru/mtu parametres can help.

Nikola Lečić
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Outage on FreeBSD 6.1 / dell sc 1425

2007-05-21 Thread Nico -telmich- Schottelius
Hello list,

I've some problems with two dell sc1425, using two u320 scsi hardisks,
freebsd 6.1, gmirror raid1 mounted at /, a dual core xeon 3.2ghz:

- the production server started to get really really slow last week
  and started to print those [0] messages to dmesg
- after I rebooted that server it seemed to work normally
- yesterday it freezed or was extremly slow:
   * no services via tcp where reachable
   * it was still reachable via icmp
   * it was *not* possible to login via console
   * it was possible to switch virtual consoles
   
   * after rebooting it, it hung in the fsck, which did not print any
 status messages
   * we rebooted it in single user mode, where we could see the fsck
 doing its work
   * we rebooted it then again in normal mode and after short time for
 fsck it is up and running again

I am wondering whether this is a hardware or software problem. The
system is a heavily used mailserver offering
imap(s)/pop3(s)/smtp(s)/webmail.

I am currently somehow deterred to continue using this server, so any
hint how to debug this issue are appreciated.

Sincerly

Nico

[0]: http://home.schottelius.org/~nico/unix/freebsd/dmesg-systems-hanging

-- 
Think about Free and Open Source Software (FOSS).
http://nico.schottelius.org/documentations/foss/the-term-foss/

PGP: BFE4 C736 ABE5 406F 8F42  F7CF B8BE F92A 9885 188C


signature.asc
Description: Digital signature


Errors on FreeBSD 4.8 and Squid 2.5

2007-05-21 Thread Jonathan Phiri
Hi,

 

My machine runs FreeBSD 4.8 as shown below;

 

FreeBSD Oneworld.zamnet.zm 4.8 - RELEASE FreeBSD 4.8 RELEASE # Mon Oct
13:10:42:50CAT 2003

 

[EMAIL PROTECTED]:/usr/src/sys/compile/LOCAL
mailto:[EMAIL PROTECTED]:/usr/src/sys/compile/LOCAL%20i386  i386

 

My machine is generation the following errors:

 

Error 1

 

May 21 03:02:20 oneworld sendmail[7750]: 14L12KXx007750: SYSERR(root):
queueup: Cannot create queue temp file tf14L12KXx007750, uid=25: No space on
device

 

Error 2

 

Oneworld squid error: Unknown policy GDSF

 

 

Kindly assist.

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


Re: disk too big to mount

2007-05-21 Thread Duane Hill

On Sun, 20 May 2007, Yanko Sanchez wrote:


Hello,

I have a 400GB seagate IDE hdd with backed up data that I need to load onto
a machine running freebsd 6.2

The drive is formated for fat32 and when I run the command:

mount -t msdos /dev/ad2s2 /mnt/audio/

I get the following error:

mountmsdosfs(): disk too big, sorry

Is there a solution to this?


The mailing list archives are your friend. I checked the archives and 
found that you have to recompile your kernel with:


option MSDOSFS_LARGE

If you do not know how to do that, I would suggest reading up on how to 
build a new kernel:


http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: disk too big to mount

2007-05-21 Thread Duane Hill
Disreguard my previous response. I didn't see your next response to Ray. 
Sorry.


On Sun, 20 May 2007, Yanko Sanchez wrote:


Hello,

I have a 400GB seagate IDE hdd with backed up data that I need to load onto
a machine running freebsd 6.2

The drive is formated for fat32 and when I run the command:

mount -t msdos /dev/ad2s2 /mnt/audio/

I get the following error:

mountmsdosfs(): disk too big, sorry

Is there a solution to this?
Thanks.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]




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


Re: PPPoE equivalent?

2007-05-21 Thread RW
On Mon, 21 May 2007 14:39:06 +0800
Brian Walker [EMAIL PROTECTED] wrote:

 Here is my /etc/ppp/ppp.conf  it has been worked on but so far
 seems to have been OK. As for regularly: it basically means several
 times a day for no reason that is apparent to me.
 

I'd try simplifing first. I have just have:


default:
  set log Phase tun command
adsl:
  set device PPPoE:vr0
  set authname ...
  set authkey ...
  add default HISADDR

and in rc.conf:

ppp_enable=YES
ppp_mode=ddial
ppp_profile=adsl

PPP connects at start-up and, for me, reconnects without any problems
when the connection is interrupted from either end. 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Errors on FreeBSD 4.8 and Squid 2.5

2007-05-21 Thread Johan Hendriks
Hi,

My machine runs FreeBSD 4.8 as shown below;

My machine is generation the following errors:

Error 1

May 21 03:02:20 oneworld sendmail[7750]: 14L12KXx007750: SYSERR(root):
queueup: Cannot create queue temp file tf14L12KXx007750, uid=25: No
space on
device

Error 2

Oneworld squid error: Unknown policy GDSF


Kindly assist.

The first error says it all I guess no space on device.
So check your disks usage with df -h

The second one I am not sure but do you have GDSF support compiled in?
Make config from the ports directory of squid shows your compiled
options!

Regards,
Johan

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


GCC 4.2

2007-05-21 Thread Robert Huff

Can someone confirm GCC 4.2 is now in the -CURRENT source, and
if so effective what date?
Thanks.


Robert Huff
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: kill won't kill

2007-05-21 Thread Björn König
Bill schrieb:
 On Linux systems I frequently use ``strace -p pid'' to see what
 a process is doing. I don't know the FreeBSD equivalent of strace.

strace is not a program that is dedicated to Linux. You can use strace
with FreeBSD too. You only need to install it and mount procfs:

  # pkg_add -r strace
  # mount_procfs procfs /proc

Regards
Björn


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


Old 4.2 user, with 6.2 newbie questions

2007-05-21 Thread Chuck Grimes
On 18-May-07 [EMAIL PROTECTED] wrote:
 On Fri, May 18, 2007 at 07:33:14AM -0700, Chuck Grimes wrote:
 enabled in inetd.conf. 
 
 My problem is that using the modem to connect to my isp, I can not get
 fetchmail, rsh, rlogin, or ftp to work. They all start just fine and
 then hang. I have to kill the user1 to get the tty1 back. 
 
 I set this new box (6.2) up with a network connection to my old box
 (4.2) as a gateway. When the 4.2 box connects to the isp, I can use
 rsh, rlogin, fetchmail from the new box using the old box as the
 connection. This implies there is something wrong with the new box
 serial connection to my isp. 
 
 However, from the new box (6.2) after starting the dial up connection
 on the serial port, I can use telnet to get to the isp shell account.
 
 What is the difference between how rsh uses the various ip/tcp
 protocols and how telnet? 
 
 Sounds like a routing problem to me, i,e., your ISP is part of a local
 network connection (so you can telnet to it) but your ISP's gateway is
 not set as a default route on the 6.2 box like it is on the 4.2 box.
 
 HTH,
 
 Steve

Thanks for the response. Sorry about my long delayed response. I
worked most of Saturday playing around with ppp and various options in
rc.conf trying to narrow the problem down to some kind of route
problem. In the process I did find some routing problems and fixed
them. 

But there was no improvement in the failure to keep an rsh or
ftp session going over a serial port connection with my isp.

I am going to start another thread under the title ``sio problems?''
and try to figure out what's wrong with my serial port. I suspect
while sio4 works enough to start a link with my isp, it somehow
fails at some point. I think the problem is the serial port
configuration. I suspect the swap during bootup sio0 - sio4 is the
heart of the problem.

With that in mind, I think you are right about a routing problem in
the sense that the mapping of physical serial device (modem) to its
virtual serial device (sio0 - sio4) is mixed up somehow and that in
turn creats the effect of a routing problem. 

Even if a fixed serial port system doesn't help, at least it will be
one more problem fixed.

CG

(this was also delayed by the list server as spam?)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


gstreamer-plugins80 problem

2007-05-21 Thread Tsu-Fan Cheng

hi,
  sorry i have many problems during this xorg upgrade.

  i seemed to have done most, if not all, my upgrade due to xorg, and now
it comes to gstreamer stuff. what i have is gstreamer-plugins80 that is
required by wxgtk. By running the command, portupgrade -Rr 'gstreamer*',  I
got an error, here is what it's like:

[edit]..
Making all in ext
gmake[2]: Entering directory
`/usr/ports/multimedia/gstreamer-plugins80/work/gst-plugins-0.8.12/ext'
Making all in libcaca
gmake[3]: Entering directory
`/usr/ports/multimedia/gstreamer-plugins80/work/gst-plugins-0.8.12
/ext/libcaca'
if /bin/sh /usr/local/bin/libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H
-I. -I. -I../..   -I/usr/local/include -I/usr/local/include
-I../../gst-libs -I../../gst-libs -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-D_REENTRANT -I/usr/local/include/gstreamer-0.8 -I/usr/local/include/glib-
2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/libxml2
-I/usr/local/include   -DGST_DISABLE_DEPRECATED  -Wall -I/usr/local/include/
-O2 -fno-strict-aliasing -pipe  -I/usr/local/include -MT libgstcacasink_la-
gstcacasink.lo -MD -MP -MF .deps/libgstcacasink_la-gstcacasink.Tpo -c -o
libgstcacasink_la-gstcacasink.lo `test -f 'gstcacasink.c' || echo
'./'`gstcacasink.c; \
   then mv -f .deps/libgstcacasink_la-gstcacasink.Tpo
.deps/libgstcacasink_la-gstcacasink.Plo; else rm -f
.deps/libgstcacasink_la-gstcacasink.Tpo; exit 1; fi
mkdir .libs
cc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/local/include
-I/usr/local/include -I../../gst-libs -I../../gst-libs -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_REENTRANT
-I/usr/local/include/gstreamer-0.8-I/usr/local/include/glib-
2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/libxml2
-I/usr/local/include -DGST_DISABLE_DEPRECATED -Wall -I/usr/local/include/
-O2 -fno-strict-aliasing -pipe -I/usr/local/include -MT libgstcacasink_la-
gstcacasink.lo -MD -MP -MF .deps/libgstcacasink_la-gstcacasink.Tpo -c
gstcacasink.c  -fPIC -DPIC -o .libs/libgstcacasink_la-gstcacasink.o
gstcacasink.c: In function `gst_cacasink_sinkconnect':
gstcacasink.c:280: warning: implicit declaration of function
`caca_free_bitmap'
gstcacasink.c:283: warning: implicit declaration of function
`caca_create_bitmap'
gstcacasink.c:287: warning: assignment makes pointer from integer without a
cast
gstcacasink.c: In function `gst_cacasink_chain':
gstcacasink.c:339: warning: implicit declaration of function `caca_clear'
gstcacasink.c:340: warning: implicit declaration of function
`caca_draw_bitmap'
gstcacasink.c:342: warning: implicit declaration of function `caca_refresh'
gstcacasink.c: In function `gst_cacasink_set_property':
gstcacasink.c:361: warning: implicit declaration of function
`caca_set_dithering'
gstcacasink.c:361: error: `CACA_DITHERING_NONE' undeclared (first use in
this function)
gstcacasink.c:361: error: (Each undeclared identifier is reported only once
gstcacasink.c:361: error: for each function it appears in.)
gstcacasink.c:367: warning: implicit declaration of function
`caca_set_feature'
gstcacasink.c:367: error: `CACA_ANTIALIASING_MAX' undeclared (first use in
this function)
gstcacasink.c:371: error: `CACA_ANTIALIASING_MIN' undeclared (first use in
this function)
gstcacasink.c: In function `gst_cacasink_open':
gstcacasink.c:419: warning: implicit declaration of function `caca_init'
gstcacasink.c:421: warning: implicit declaration of function
`caca_get_width'
gstcacasink.c:422: warning: implicit declaration of function
`caca_get_height'
gstcacasink.c:424: error: `CACA_ANTIALIASING_MAX' undeclared (first use in
this function)
gstcacasink.c:426: error: `CACA_DITHERING_NONE' undeclared (first use in
this function)
gstcacasink.c: In function `gst_cacasink_close':
gstcacasink.c:443: warning: implicit declaration of function `caca_end'
gmake[3]: *** [libgstcacasink_la-gstcacasink.lo] Error 1
gmake[3]: Leaving directory
`/usr/ports/multimedia/gstreamer-plugins80/work/gst-plugins-0.8.12
/ext/libcaca'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory
`/usr/ports/multimedia/gstreamer-plugins80/work/gst-plugins-0.8.12/ext'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
`/usr/ports/multimedia/gstreamer-plugins80/work/gst-plugins-0.8.12'
gmake: *** [all] Error 2
*** Error code 2
.

could it be some other xorg component that i missed? any advice is
appreciated!!

TFC
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: GCC 4.2

2007-05-21 Thread Harald Schmalzbauer
Am Montag, 21. Mai 2007 schrieb Robert Huff:
   Can someone confirm GCC 4.2 is now in the -CURRENT source, and
 if so effective what date?
   Thanks.

It is there! Thanks to the good guys for that work!
I think it hit the tree on saturday.

-Harry
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ....

2007-05-21 Thread Jerry McAllister
On Sun, May 20, 2007 at 09:49:49PM +0200, * ** wrote:

 Hello.
 idont know if this is right mail. nut i try anyway. =)
 im trying to install freebsd on my computer, but when the installation
 is finish and i should login. i type in my account name and password.
 byt then i only get to something that looks lika
 a terminal (i use linux now and it looks the same like
 a terminal there) but ofcourse i would lika it to look like a
 regular desktop with gnome ore kde, but i dont know
 what im doing wrong. i hope you can helt me.

This is normal.
FreeBSD does not automatically start a GUI environment by default.
It is command line oriented.   You need to install and configure
your choice of GUI environment.  They are all based on the X-windows
system.

First you install and configure X-Windows.  In FreeBSD that would now 
be the system called Xorg.   The installation gives you an opportunity
to install X right when the system is installed.  You should select that.
But, then after installation, it still need configuring to match your
Graphics card and monitor, etc.
Check the handbook for detailed instructions.

Then you install and start up a X-Windows manager.  There are several
of them to choose from.   It depends on how you want to work and what
you are doing.Gnome and KDE are popular amongst people who want
something like an MS Windows or MAC-ish environment.   Those are too
overblown for me since I mostly use a bunch of Xterm windows and only
occasionally something as graphic as a web browser.   I use Afterstep
which gives an environment somewhat reminiscent of the old NextStep
system on NeXt computers.   Other popular window managers are Xfce
and Fluxbox.All are in ports at /usr/ports/x11-wm/

When you configure your window manager, you can also configure
it to start certain things when it first comes up.   I automatically
start certain X-terms for specific work and remote logins I need 
most often, for example.

The last thing you need to do is configure how you will start the
window manager.   Usually you make it the one that will begin when
you enter the   'startx'  on the command line, but it can be set up
to launch upon login if you want.   You might not want that, though
because then it would always start on login and could get in the
way of some debugging other other system work.   That can be set up
on a per-user basis.   

All this is covered in the manuals.   The configuration of X and
the setup of the window managers could be a little better covered.
Some trial and error may be in order.

jerry


 sorry aboyut my english, but im swedish.  =)
 
 mikael
 
 _
 Fräscha middagstips på MSN http://arla.msn.se/
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: gstreamer-plugins80 problem

2007-05-21 Thread Garrett Cooper

Tsu-Fan Cheng wrote:

hi,
  sorry i have many problems during this xorg upgrade.

  i seemed to have done most, if not all, my upgrade due to xorg, and now
it comes to gstreamer stuff. what i have is gstreamer-plugins80 that is
required by wxgtk. By running the command, portupgrade -Rr 'gstreamer*',  I
got an error, here is what it's like:

[edit]..
Making all in ext
gmake[2]: Entering directory
`/usr/ports/multimedia/gstreamer-plugins80/work/gst-plugins-0.8.12/ext'
Making all in libcaca
gmake[3]: Entering directory
`/usr/ports/multimedia/gstreamer-plugins80/work/gst-plugins-0.8.12
/ext/libcaca'
if /bin/sh /usr/local/bin/libtool --tag=CC --mode=compile cc 
-DHAVE_CONFIG_H

-I. -I. -I../..   -I/usr/local/include -I/usr/local/include
-I../../gst-libs -I../../gst-libs -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64

-D_REENTRANT -I/usr/local/include/gstreamer-0.8 -I/usr/local/include/glib-
2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/libxml2
-I/usr/local/include   -DGST_DISABLE_DEPRECATED  -Wall 
-I/usr/local/include/

-O2 -fno-strict-aliasing -pipe  -I/usr/local/include -MT libgstcacasink_la-
gstcacasink.lo -MD -MP -MF .deps/libgstcacasink_la-gstcacasink.Tpo -c -o
libgstcacasink_la-gstcacasink.lo `test -f 'gstcacasink.c' || echo
'./'`gstcacasink.c; \
   then mv -f .deps/libgstcacasink_la-gstcacasink.Tpo
.deps/libgstcacasink_la-gstcacasink.Plo; else rm -f
.deps/libgstcacasink_la-gstcacasink.Tpo; exit 1; fi
mkdir .libs
cc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/local/include
-I/usr/local/include -I../../gst-libs -I../../gst-libs -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_REENTRANT
-I/usr/local/include/gstreamer-0.8-I/usr/local/include/glib-
2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/libxml2
-I/usr/local/include -DGST_DISABLE_DEPRECATED -Wall -I/usr/local/include/
-O2 -fno-strict-aliasing -pipe -I/usr/local/include -MT libgstcacasink_la-
gstcacasink.lo -MD -MP -MF .deps/libgstcacasink_la-gstcacasink.Tpo -c
gstcacasink.c  -fPIC -DPIC -o .libs/libgstcacasink_la-gstcacasink.o
gstcacasink.c: In function `gst_cacasink_sinkconnect':
gstcacasink.c:280: warning: implicit declaration of function
`caca_free_bitmap'
gstcacasink.c:283: warning: implicit declaration of function
`caca_create_bitmap'
gstcacasink.c:287: warning: assignment makes pointer from integer without a
cast
gstcacasink.c: In function `gst_cacasink_chain':
gstcacasink.c:339: warning: implicit declaration of function `caca_clear'
gstcacasink.c:340: warning: implicit declaration of function
`caca_draw_bitmap'
gstcacasink.c:342: warning: implicit declaration of function `caca_refresh'
gstcacasink.c: In function `gst_cacasink_set_property':
gstcacasink.c:361: warning: implicit declaration of function
`caca_set_dithering'
gstcacasink.c:361: error: `CACA_DITHERING_NONE' undeclared (first use in
this function)
gstcacasink.c:361: error: (Each undeclared identifier is reported only once
gstcacasink.c:361: error: for each function it appears in.)
gstcacasink.c:367: warning: implicit declaration of function
`caca_set_feature'
gstcacasink.c:367: error: `CACA_ANTIALIASING_MAX' undeclared (first use in
this function)
gstcacasink.c:371: error: `CACA_ANTIALIASING_MIN' undeclared (first use in
this function)
gstcacasink.c: In function `gst_cacasink_open':
gstcacasink.c:419: warning: implicit declaration of function `caca_init'
gstcacasink.c:421: warning: implicit declaration of function
`caca_get_width'
gstcacasink.c:422: warning: implicit declaration of function
`caca_get_height'
gstcacasink.c:424: error: `CACA_ANTIALIASING_MAX' undeclared (first use in
this function)
gstcacasink.c:426: error: `CACA_DITHERING_NONE' undeclared (first use in
this function)
gstcacasink.c: In function `gst_cacasink_close':
gstcacasink.c:443: warning: implicit declaration of function `caca_end'
gmake[3]: *** [libgstcacasink_la-gstcacasink.lo] Error 1
gmake[3]: Leaving directory
`/usr/ports/multimedia/gstreamer-plugins80/work/gst-plugins-0.8.12
/ext/libcaca'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory
`/usr/ports/multimedia/gstreamer-plugins80/work/gst-plugins-0.8.12/ext'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
`/usr/ports/multimedia/gstreamer-plugins80/work/gst-plugins-0.8.12'
gmake: *** [all] Error 2
*** Error code 2
.

could it be some other xorg component that i missed? any advice is
appreciated!!

TFC


Looks like you're missing some source for GST that should be present.

What version of GCC are you using?

-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: GCC 4.2

2007-05-21 Thread Garrett Cooper

Harald Schmalzbauer wrote:

Am Montag, 21. Mai 2007 schrieb Robert Huff:

Can someone confirm GCC 4.2 is now in the -CURRENT source, and
if so effective what date?
Thanks.


It is there! Thanks to the good guys for that work!
I think it hit the tree on saturday.

-Harry


It's there, but unless you want some major components to break I'd wait 
a bit... good job by the FreeBSD guys for the hard work, bad job by the 
GCC guys by breaking some code.


Also, there's a feature which is present in GCC that FreeBSD may be 
having issues with.


I'd subscribe to current@ and watch the GCC error threads (mostly the 
fPIE one now).


Cheers,

-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: disk too big to mount

2007-05-21 Thread Garrett Cooper

Duane Hill wrote:
Disreguard my previous response. I didn't see your next response to Ray. 
Sorry.


On Sun, 20 May 2007, Yanko Sanchez wrote:


Hello,

I have a 400GB seagate IDE hdd with backed up data that I need to load 
onto

a machine running freebsd 6.2

The drive is formated for fat32 and when I run the command:

mount -t msdos /dev/ad2s2 /mnt/audio/

I get the following error:

mountmsdosfs(): disk too big, sorry

Is there a solution to this?
Thanks.


Why on earth would you want to create a 400GB MSDOSFS formatted disk? 
MSDOSFS was quick but offered no protection against power outages or 
incomplete writes, and was horrible in terms of disk fragmentation..


If you really want MSDOSFS for whatever reason, just break up the disk 
into smaller chunks partition-wise (IIRC 100GB chunks are fine).


-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Hot to configure simple mail forwarder?

2007-05-21 Thread Maxim Khitrov

Hi everyone,

I have what I hope is a rather simple question. I'm not very familiar
with this area of system administration, so hopefully someone here can
point me in the right direction. I just got myself a FreeBSD VPS to
host a few of my websites. I need the processes on the server (PHP,
for example) to be able to send e-mail via /usr/sbin/sendmail. The
thing is that I don't actually want to run a mail server. My vps is
severely limited on disk space, and any mail I get I'll forward to my
gmail account anyway. I can obviously configure sendmail or postfix to
do this for me, but this seems a bit excessive for what I'm trying to
do. The mail load will be very light, and I'd prefer to conserve disk
space. Is there a port, perhaps, that will simply forward all mail
transmitted to /usr/sbin/sendmail to the destination SMTP server? The
only other thing it has to be able to do is use the aliases file to
determine the real e-mail of root, for example.

Like I said, I'm not too familiar with setting up mail servers, so if
this makes no sense to you please suggest an alternative. Just to
recap, I don't need local mail storage and I don't need the server to
accept mail from anything other than the local processes running on
the server. Just need it to read the destination e-mail address (or
get it via aliases), connect to the MX server for that domain, and
transmit the message. If there isn't any simple daemon that will do
this, can you recommend either how to configure sendmail or something
like postfix to do this? The idea is to minimize resource usage (disk
space, memory, cpu time).

Thanks,
Maxim Khitrov
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: gstreamer-plugins80 problem

2007-05-21 Thread Garrett Cooper

Tsu-Fan Cheng wrote:

it's gcc 3.4.6, is it too old??

but the real question is, the gstreamer-plugins80 is required by 
wxgtk26, though streamer itself is marked as obsolete, and gstreamer 
0.10 is recommended as a substitute. I installed gstreamer 0.10 and 
succeeded but didn't take care of the wxgtk dependency problem.


currently i just deinstall all of them, what the h***...

TFC

On 5/21/07, * Garrett Cooper* [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


Tsu-Fan Cheng wrote:
  hi,
sorry i have many problems during this xorg upgrade.
 
i seemed to have done most, if not all, my upgrade due to xorg,
and now
  it comes to gstreamer stuff. what i have is gstreamer-plugins80
that is
  required by wxgtk. By running the command, portupgrade -Rr
'gstreamer*',  I
  got an error, here is what it's like:
 
  [edit]..
  Making all in ext
  gmake[2]: Entering directory
 
`/usr/ports/multimedia/gstreamer-plugins80/work/gst-plugins-0.8.12/ext'
  Making all in libcaca
  gmake[3]: Entering directory
  `/usr/ports/multimedia/gstreamer-plugins80/work/gst-plugins-0.8.12
  /ext/libcaca'
  if /bin/sh /usr/local/bin/libtool --tag=CC --mode=compile cc
  -DHAVE_CONFIG_H
  -I. -I. -I../..   -I/usr/local/include -I/usr/local/include
  -I../../gst-libs -I../../gst-libs -D_LARGEFILE_SOURCE
  -D_FILE_OFFSET_BITS=64
  -D_REENTRANT -I/usr/local/include/gstreamer-0.8
-I/usr/local/include/glib-
  2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/libxml2
  -I/usr/local/include   -DGST_DISABLE_DEPRECATED  -Wall
  -I/usr/local/include/
  -O2 -fno-strict-aliasing -pipe  -I/usr/local/include -MT
libgstcacasink_la-
  gstcacasink.lo -MD -MP -MF
.deps/libgstcacasink_la-gstcacasink.Tpo -c -o
  libgstcacasink_la- gstcacasink.lo `test -f 'gstcacasink.c' || echo
  './'`gstcacasink.c; \
 then mv -f .deps/libgstcacasink_la-gstcacasink.Tpo
  .deps/libgstcacasink_la-gstcacasink.Plo ; else rm -f
  .deps/libgstcacasink_la-gstcacasink.Tpo; exit 1; fi
  mkdir .libs
  cc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/local/include
  -I/usr/local/include -I../../gst-libs -I../../gst-libs
-D_LARGEFILE_SOURCE
  -D_FILE_OFFSET_BITS=64 -D_REENTRANT
  -I/usr/local/include/gstreamer-0.8-I/usr/local/include/glib-
  2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/libxml2
  -I/usr/local/include -DGST_DISABLE_DEPRECATED -Wall
-I/usr/local/include/
  -O2 -fno-strict-aliasing -pipe -I/usr/local/include -MT
libgstcacasink_la-
  gstcacasink.lo -MD -MP -MF .deps/libgstcacasink_la-gstcacasink.Tpo -c
  gstcacasink.c  -fPIC -DPIC -o .libs/libgstcacasink_la- gstcacasink.o
  gstcacasink.c: In function `gst_cacasink_sinkconnect':
  gstcacasink.c:280: warning: implicit declaration of function
  `caca_free_bitmap'
  gstcacasink.c:283: warning: implicit declaration of function
  `caca_create_bitmap'
  gstcacasink.c:287: warning: assignment makes pointer from integer
without a
  cast
  gstcacasink.c: In function `gst_cacasink_chain':
  gstcacasink.c:339: warning: implicit declaration of function
`caca_clear'
  gstcacasink.c:340: warning: implicit declaration of function
  `caca_draw_bitmap'
  gstcacasink.c:342: warning: implicit declaration of function
`caca_refresh'
  gstcacasink.c: In function `gst_cacasink_set_property':
  gstcacasink.c:361: warning: implicit declaration of function
  `caca_set_dithering'
  gstcacasink.c:361: error: `CACA_DITHERING_NONE' undeclared (first
use in
  this function)
  gstcacasink.c :361: error: (Each undeclared identifier is
reported only once
  gstcacasink.c:361: error: for each function it appears in.)
  gstcacasink.c:367: warning: implicit declaration of function
  `caca_set_feature'
  gstcacasink.c:367: error: `CACA_ANTIALIASING_MAX' undeclared
(first use in
  this function)
  gstcacasink.c:371: error: `CACA_ANTIALIASING_MIN' undeclared
(first use in
  this function)
  gstcacasink.c: In function `gst_cacasink_open':
  gstcacasink.c:419: warning: implicit declaration of function
`caca_init'
  gstcacasink.c:421: warning: implicit declaration of function
  `caca_get_width'
  gstcacasink.c:422: warning: implicit declaration of function
  `caca_get_height'
  gstcacasink.c:424: error: `CACA_ANTIALIASING_MAX' undeclared
(first use in
  this function)
  gstcacasink.c :426: error: `CACA_DITHERING_NONE' undeclared
(first use in
  this function)
  gstcacasink.c: In function `gst_cacasink_close':
  gstcacasink.c:443: warning: implicit declaration of function
`caca_end'
  gmake[3]: *** [libgstcacasink_la-gstcacasink.lo] Error 1
  gmake[3]: Leaving directory
  

Re: disk too big to mount

2007-05-21 Thread Reid Linnemann

Written by Garrett Cooper on 05/21/07 10:12

Duane Hill wrote:
Disreguard my previous response. I didn't see your next response to 
Ray. Sorry.


On Sun, 20 May 2007, Yanko Sanchez wrote:


Hello,

I have a 400GB seagate IDE hdd with backed up data that I need to 
load onto

a machine running freebsd 6.2

The drive is formated for fat32 and when I run the command:

mount -t msdos /dev/ad2s2 /mnt/audio/

I get the following error:

mountmsdosfs(): disk too big, sorry

Is there a solution to this?
Thanks.


Why on earth would you want to create a 400GB MSDOSFS formatted disk? 
MSDOSFS was quick but offered no protection against power outages or 
incomplete writes, and was horrible in terms of disk fragmentation..


If you really want MSDOSFS for whatever reason, just break up the disk 
into smaller chunks partition-wise (IIRC 100GB chunks are fine).


-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]


You can add large msdosfs support into your kernel by adding options 
MSDOSFS_LARGE to your kernel configuration.


-Reid
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: disk too big to mount

2007-05-21 Thread Andreas Rudisch
On Mon, 21 May 2007 17:12:52 +0200, Garrett Cooper  
[EMAIL PROTECTED] wrote:


Why on earth would you want to create a 400GB MSDOSFS formatted disk?  
MSDOSFS was quick but offered no protection against power outages or  
incomplete writes, and was horrible in terms of disk fragmentation..


Not to mention the fact that you cannot create files larger than 4GB on it.

Andreas
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Hot to configure simple mail forwarder?

2007-05-21 Thread Per olof Ljungmark

Maxim Khitrov wrote:

Hi everyone,

I have what I hope is a rather simple question. I'm not very familiar
with this area of system administration, so hopefully someone here can
point me in the right direction. I just got myself a FreeBSD VPS to
host a few of my websites. I need the processes on the server (PHP,
for example) to be able to send e-mail via /usr/sbin/sendmail. The
thing is that I don't actually want to run a mail server. My vps is
severely limited on disk space, and any mail I get I'll forward to my
gmail account anyway. I can obviously configure sendmail or postfix to
do this for me, but this seems a bit excessive for what I'm trying to
do. The mail load will be very light, and I'd prefer to conserve disk
space. Is there a port, perhaps, that will simply forward all mail
transmitted to /usr/sbin/sendmail to the destination SMTP server? The
only other thing it has to be able to do is use the aliases file to
determine the real e-mail of root, for example.

Like I said, I'm not too familiar with setting up mail servers, so if
this makes no sense to you please suggest an alternative. Just to
recap, I don't need local mail storage and I don't need the server to
accept mail from anything other than the local processes running on
the server. Just need it to read the destination e-mail address (or
get it via aliases), connect to the MX server for that domain, and
transmit the message. If there isn't any simple daemon that will do
this, can you recommend either how to configure sendmail or something
like postfix to do this? The idea is to minimize resource usage (disk
space, memory, cpu time).


Sounds to me you just have to enter the proper aliases (in 
/etc/mail/aliases), run newaliases, and you're done, i.e. point 
everything to your own e-mail address?

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


Re: Hot to configure simple mail forwarder?

2007-05-21 Thread Maxim Khitrov

On 5/21/07, Per olof Ljungmark [EMAIL PROTECTED] wrote:

Maxim Khitrov wrote:
 Hi everyone,

 I have what I hope is a rather simple question. I'm not very familiar
 with this area of system administration, so hopefully someone here can
 point me in the right direction. I just got myself a FreeBSD VPS to
 host a few of my websites. I need the processes on the server (PHP,
 for example) to be able to send e-mail via /usr/sbin/sendmail. The
 thing is that I don't actually want to run a mail server. My vps is
 severely limited on disk space, and any mail I get I'll forward to my
 gmail account anyway. I can obviously configure sendmail or postfix to
 do this for me, but this seems a bit excessive for what I'm trying to
 do. The mail load will be very light, and I'd prefer to conserve disk
 space. Is there a port, perhaps, that will simply forward all mail
 transmitted to /usr/sbin/sendmail to the destination SMTP server? The
 only other thing it has to be able to do is use the aliases file to
 determine the real e-mail of root, for example.

 Like I said, I'm not too familiar with setting up mail servers, so if
 this makes no sense to you please suggest an alternative. Just to
 recap, I don't need local mail storage and I don't need the server to
 accept mail from anything other than the local processes running on
 the server. Just need it to read the destination e-mail address (or
 get it via aliases), connect to the MX server for that domain, and
 transmit the message. If there isn't any simple daemon that will do
 this, can you recommend either how to configure sendmail or something
 like postfix to do this? The idea is to minimize resource usage (disk
 space, memory, cpu time).

Sounds to me you just have to enter the proper aliases (in
/etc/mail/aliases), run newaliases, and you're done, i.e. point
everything to your own e-mail address?



Well I need sendmail running for that correct? Right now I've got it
disabled with sendmail_enable=NONE in my rc.conf. I was hoping to
use something a bit less resource intensive, and with a better
security history. I am not really at all familiar with sendmail. I
tried figuring out how to configure and tune it properly in the past,
and realized that I have neither the time or patience for that task. I
know that it will probably work the way it comes by default with
FreeBSD, but I really don't like running daemons that I don't
understand or don't know how to configure and monitor.

If this is the most efficient solution to my problem, then I guess
I'll head over to the handbook and try to figure sendmail out. If you
have other suggestions, by all means, let me know. Otherwise, are
there at least parts of sendmail that I can disable?

P.S. Sorry for the typo in the title.

- Max
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Can't get openssh-portable to use PAM

2007-05-21 Thread Matt Bostock
Hi all,

I'm using security/openssh-portable to provide chroot-ssh, but would now also
like to enable PAM for SSH so that I can take advantage of OPIE in certain
scenarios.

I've compiled openssh-portable with the PAM option (and something PAM-related
flashes by during 'configure'), and have ChallengeResponseAuthentication and
UsePAM set. When I run sshd in debug mode however, it claims that UsePAM is an
unsupported option. I'm running /usr/sbin/sshd; I have overwrite-base enabled
for openssh-portable.

The machine is running FreeBSD 6.2.

Any help is very much appreciated,
Matt :-)

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


Re: Hot to configure simple mail forwarder?

2007-05-21 Thread Roland Smith
On Mon, May 21, 2007 at 01:52:34PM -0400, Maxim Khitrov wrote:
  On 5/21/07, Per olof Ljungmark [EMAIL PROTECTED] wrote:
  Maxim Khitrov wrote:
   Hi everyone,
  
   I have what I hope is a rather simple question. I'm not very familiar
   with this area of system administration, so hopefully someone here can
   point me in the right direction. I just got myself a FreeBSD VPS to
   host a few of my websites. I need the processes on the server (PHP,
   for example) to be able to send e-mail via /usr/sbin/sendmail. The
   thing is that I don't actually want to run a mail server. My vps is
   severely limited on disk space, and any mail I get I'll forward to my
   gmail account anyway. I can obviously configure sendmail or postfix to
   do this for me, but this seems a bit excessive for what I'm trying to
   do. The mail load will be very light, and I'd prefer to conserve disk
   space. Is there a port, perhaps, that will simply forward all mail
   transmitted to /usr/sbin/sendmail to the destination SMTP server?

Maybe /usr/ports/mail/ssmtp or /usr/ports/mail/msmtp will do the trick?

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)


pgpfGRiS5b8nJ.pgp
Description: PGP signature


Re: disk too big to mount

2007-05-21 Thread Yanko Sanchez

because when the hdd was first formated it was inside of a PowerPC and
we knew that it was going to be on a server but we didn't know of what
kind so we just formated FAT32. I don't really care what the fomrmat
it is, if I could switch it to UFS I'd do it, but I need a hdd as big
as that one to copy the files and then be able to reformat with a new
FS.

On 5/21/07, Garrett Cooper [EMAIL PROTECTED] wrote:

Duane Hill wrote:
 Disreguard my previous response. I didn't see your next response to Ray.
 Sorry.

 On Sun, 20 May 2007, Yanko Sanchez wrote:

 Hello,

 I have a 400GB seagate IDE hdd with backed up data that I need to load
 onto
 a machine running freebsd 6.2

 The drive is formated for fat32 and when I run the command:

 mount -t msdos /dev/ad2s2 /mnt/audio/

 I get the following error:

 mountmsdosfs(): disk too big, sorry

 Is there a solution to this?
 Thanks.

Why on earth would you want to create a 400GB MSDOSFS formatted disk?
MSDOSFS was quick but offered no protection against power outages or
incomplete writes, and was horrible in terms of disk fragmentation..

If you really want MSDOSFS for whatever reason, just break up the disk
into smaller chunks partition-wise (IIRC 100GB chunks are fine).

-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


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


Security Run Output Setuid Differences

2007-05-21 Thread PeterPluta

I did a lot of port hacking yesterday. By that I mean screwing up and redoing
lots of things. Anyway, I woke up today to find this email in my inbox. 

Checking setuid files and devices:

mail.placidpublishing.net setuid diffs:
--- /var/log/setuid.today   Fri May 18 03:02:47 2007
+++ /tmp/security.207RUJmY  Mon May 21 03:02:30 2007
@@ -3,7 +3,6 @@
 70745 -r-sr-xr-x  1 root  wheel 21792 Jul 30 16:19:55 2006 /sbin/ping
 70746 -r-sr-xr-x  1 root  wheel 28660 Jul 30 16:19:55 2006 /sbin/ping6
 70721 -r-sr-x---  1 root  operator  10148 Jul 30 16:19:56 2006
/sbin/shutdown
-165583 -rws--x--x  1 root  wheel 268432 Apr 14 14:05:10 2007
/usr/X11R6/bin/xterm
 377219 -r-sr-xr-x  6 root  wheel 17532 Jul 30 16:19:56 2006
/usr/bin/chfn
 377219 -r-sr-xr-x  6 root  wheel 17532 Jul 30 16:19:56 2006
/usr/bin/chpass
 377219 -r-sr-xr-x  6 root  wheel 17532 Jul 30 16:19:56 2006
/usr/bin/chsh
@@ -19,9 +18,9 @@
 377219 -r-sr-xr-x  6 root  wheel 17532 Jul 30 16:19:56 2006
/usr/bin/ypchpass
 377219 -r-sr-xr-x  6 root  wheel 17532 Jul 30 16:19:56 2006
/usr/bin/ypchsh
 377398 -r-sr-xr-x  2 root  wheel  5828 Jul 30 16:19:57 2006
/usr/bin/yppasswd
-72750 -rwsr-xr-x  1 root  wheel 285580 Nov  2 01:21:29 2006
/usr/local/bin/screen
-71569 -rwxr-sr-x  1 root  kmem  112708 Feb  3 17:17:26 2007
/usr/local/sbin/lsof
-71923 -rwxr-sr-x  1 root  maildrop  142559 May 17 14:41:47 2007
/usr/local/sbin/postdrop
-71924 -rwxr-sr-x  1 root  maildrop  152477 May 17 14:41:47 2007
/usr/local/sbin/postqueue
+71112 -rwsr-xr-x  1 root  wheel 285580 May 20 18:23:48 2007
/usr/local/bin/screen
+70971 -rwxr-sr-x  1 root  kmem  112708 May 20 18:23:03 2007
/usr/local/sbin/lsof
+73170 -rwxr-sr-x  1 root  maildrop  142559 May 17 14:41:47 2007
/usr/local/sbin/postdrop
+73204 -rwxr-sr-x  1 root  maildrop  152477 May 17 14:41:47 2007
/usr/local/sbin/postqueue
 923168 -rwxr-sr-x  1 root  smmsp   5236 Jul 30 16:20:07 2006
/usr/sbin/mailwrapper
 923264 -r-sr-x---  1 root  network11636 Jul 30 16:20:07 2006
/usr/sbin/sliplogin


What exactly does this all mean? Specifically the @@ -19,9 +18,9 @@ stuff.
Also, why did this all of a sudden appear?
-- 
View this message in context: 
http://www.nabble.com/Security-Run-Output-Setuid-Differences-tf3792025.html#a10724342
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 [EMAIL PROTECTED]


Re: Security Run Output Setuid Differences

2007-05-21 Thread Bill Moran
On Mon, 21 May 2007 11:34:25 -0700 (PDT)
PeterPluta [EMAIL PROTECTED] wrote:

 
 I did a lot of port hacking yesterday. By that I mean screwing up and redoing
 lots of things. Anyway, I woke up today to find this email in my inbox. 
 
 Checking setuid files and devices:
 
 mail.placidpublishing.net setuid diffs:
 --- /var/log/setuid.today Fri May 18 03:02:47 2007
 +++ /tmp/security.207RUJmYMon May 21 03:02:30 2007
 @@ -3,7 +3,6 @@
  70745 -r-sr-xr-x  1 root  wheel 21792 Jul 30 16:19:55 2006 /sbin/ping
  70746 -r-sr-xr-x  1 root  wheel 28660 Jul 30 16:19:55 2006 /sbin/ping6
  70721 -r-sr-x---  1 root  operator  10148 Jul 30 16:19:56 2006
 /sbin/shutdown
 -165583 -rws--x--x  1 root  wheel 268432 Apr 14 14:05:10 2007
 /usr/X11R6/bin/xterm
  377219 -r-sr-xr-x  6 root  wheel 17532 Jul 30 16:19:56 2006
 /usr/bin/chfn
  377219 -r-sr-xr-x  6 root  wheel 17532 Jul 30 16:19:56 2006
 /usr/bin/chpass
  377219 -r-sr-xr-x  6 root  wheel 17532 Jul 30 16:19:56 2006
 /usr/bin/chsh
 @@ -19,9 +18,9 @@
  377219 -r-sr-xr-x  6 root  wheel 17532 Jul 30 16:19:56 2006
 /usr/bin/ypchpass
  377219 -r-sr-xr-x  6 root  wheel 17532 Jul 30 16:19:56 2006
 /usr/bin/ypchsh
  377398 -r-sr-xr-x  2 root  wheel  5828 Jul 30 16:19:57 2006
 /usr/bin/yppasswd
 -72750 -rwsr-xr-x  1 root  wheel 285580 Nov  2 01:21:29 2006
 /usr/local/bin/screen
 -71569 -rwxr-sr-x  1 root  kmem  112708 Feb  3 17:17:26 2007
 /usr/local/sbin/lsof
 -71923 -rwxr-sr-x  1 root  maildrop  142559 May 17 14:41:47 2007
 /usr/local/sbin/postdrop
 -71924 -rwxr-sr-x  1 root  maildrop  152477 May 17 14:41:47 2007
 /usr/local/sbin/postqueue
 +71112 -rwsr-xr-x  1 root  wheel 285580 May 20 18:23:48 2007
 /usr/local/bin/screen
 +70971 -rwxr-sr-x  1 root  kmem  112708 May 20 18:23:03 2007
 /usr/local/sbin/lsof
 +73170 -rwxr-sr-x  1 root  maildrop  142559 May 17 14:41:47 2007
 /usr/local/sbin/postdrop
 +73204 -rwxr-sr-x  1 root  maildrop  152477 May 17 14:41:47 2007
 /usr/local/sbin/postqueue
  923168 -rwxr-sr-x  1 root  smmsp   5236 Jul 30 16:20:07 2006
 /usr/sbin/mailwrapper
  923264 -r-sr-x---  1 root  network11636 Jul 30 16:20:07 2006
 /usr/sbin/sliplogin
 
 
 What exactly does this all mean? Specifically the @@ -19,9 +18,9 @@ stuff.
 Also, why did this all of a sudden appear?

Looks like you were portupgrading around with postfix, screen and xterm.

The output is diff(1).  See the man page for details, but it's basically
showing you the difference between last night's directory listing, and that
of the previous day.

For more gory details, see the scripts in /etc/periodic/security, which are
run every night from cron.  Some of the ports you changed resulted in
changes to setuid/setgid programs installed on the system.  As a security-
concious administrator, you should be interested in the programs on your
system that have elevated privilidges, so this script is provided to give
you a daily report on that.

-- 
Bill Moran
Potential Technologies
http://www.potentialtech.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


notebook cpu throttling

2007-05-21 Thread Ghirai
Hello list,

I'm running 6.2-RELEASE, SMP, on a
Fujitsu-Siemens Amilo Pro v3205 (Core Duo).

Everything works fine, except the cpu throttling,
which makes the fan start quite often.

Is there any way to fix this?

Any hints appreciated.

-- 
Best regards,
Ghirai.

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


Re: Security Run Output Setuid Differences

2007-05-21 Thread PeterPluta



Bill Moran wrote:
 
 On Mon, 21 May 2007 11:34:25 -0700 (PDT)
 PeterPluta [EMAIL PROTECTED] wrote:
 
 
 I did a lot of port hacking yesterday. By that I mean screwing up and
 redoing
 lots of things. Anyway, I woke up today to find this email in my inbox. 
 
 Checking setuid files and devices:
 
 mail.placidpublishing.net setuid diffs:
 --- /var/log/setuid.todayFri May 18 03:02:47 2007
 +++ /tmp/security.207RUJmY   Mon May 21 03:02:30 2007
 @@ -3,7 +3,6 @@
  70745 -r-sr-xr-x  1 root  wheel 21792 Jul 30 16:19:55 2006
 /sbin/ping
  70746 -r-sr-xr-x  1 root  wheel 28660 Jul 30 16:19:55 2006
 /sbin/ping6
  70721 -r-sr-x---  1 root  operator  10148 Jul 30 16:19:56 2006
 /sbin/shutdown
 -165583 -rws--x--x  1 root  wheel 268432 Apr 14 14:05:10 2007
 /usr/X11R6/bin/xterm
  377219 -r-sr-xr-x  6 root  wheel 17532 Jul 30 16:19:56 2006
 /usr/bin/chfn
  377219 -r-sr-xr-x  6 root  wheel 17532 Jul 30 16:19:56 2006
 /usr/bin/chpass
  377219 -r-sr-xr-x  6 root  wheel 17532 Jul 30 16:19:56 2006
 /usr/bin/chsh
 @@ -19,9 +18,9 @@
  377219 -r-sr-xr-x  6 root  wheel 17532 Jul 30 16:19:56 2006
 /usr/bin/ypchpass
  377219 -r-sr-xr-x  6 root  wheel 17532 Jul 30 16:19:56 2006
 /usr/bin/ypchsh
  377398 -r-sr-xr-x  2 root  wheel  5828 Jul 30 16:19:57 2006
 /usr/bin/yppasswd
 -72750 -rwsr-xr-x  1 root  wheel 285580 Nov  2 01:21:29 2006
 /usr/local/bin/screen
 -71569 -rwxr-sr-x  1 root  kmem  112708 Feb  3 17:17:26 2007
 /usr/local/sbin/lsof
 -71923 -rwxr-sr-x  1 root  maildrop  142559 May 17 14:41:47 2007
 /usr/local/sbin/postdrop
 -71924 -rwxr-sr-x  1 root  maildrop  152477 May 17 14:41:47 2007
 /usr/local/sbin/postqueue
 +71112 -rwsr-xr-x  1 root  wheel 285580 May 20 18:23:48 2007
 /usr/local/bin/screen
 +70971 -rwxr-sr-x  1 root  kmem  112708 May 20 18:23:03 2007
 /usr/local/sbin/lsof
 +73170 -rwxr-sr-x  1 root  maildrop  142559 May 17 14:41:47 2007
 /usr/local/sbin/postdrop
 +73204 -rwxr-sr-x  1 root  maildrop  152477 May 17 14:41:47 2007
 /usr/local/sbin/postqueue
  923168 -rwxr-sr-x  1 root  smmsp   5236 Jul 30 16:20:07 2006
 /usr/sbin/mailwrapper
  923264 -r-sr-x---  1 root  network11636 Jul 30 16:20:07 2006
 /usr/sbin/sliplogin
 
 
 What exactly does this all mean? Specifically the @@ -19,9 +18,9 @@
 stuff.
 Also, why did this all of a sudden appear?
 
 Looks like you were portupgrading around with postfix, screen and xterm.
 
 The output is diff(1).  See the man page for details, but it's basically
 showing you the difference between last night's directory listing, and
 that
 of the previous day.
 
 For more gory details, see the scripts in /etc/periodic/security, which
 are
 run every night from cron.  Some of the ports you changed resulted in
 changes to setuid/setgid programs installed on the system.  As a security-
 concious administrator, you should be interested in the programs on your
 system that have elevated privilidges, so this script is provided to give
 you a daily report on that.
 
 -- 
 Bill Moran
 Potential Technologies
 http://www.potentialtech.com
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]
 
 


I see, so basically after reinstalling the default uid/gid of some programs
changed? Is that a problem or anything? 

-- 
View this message in context: 
http://www.nabble.com/Security-Run-Output-Setuid-Differences-tf3792025.html#a10724835
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 [EMAIL PROTECTED]


Re: disk too big to mount

2007-05-21 Thread Yanko Sanchez

Thanks for anyone that  has helped so far, I'm a freebsd newbie coming
from linux.

So I basically re-compiled my kernel with the LARGE option on and it
seems to mount the drive fine. I encountered another problem tho.

Before I recompiled the kernel I updated the ports tree, basically cos
I just wanted to see how it was done and it seemed to be successful.
The problem is that after I recompiled the kernel a bunch of stuff
stoped working.  I have the server setup as a router and my to Network
cards isn't showing up anymore (both being the same type of cards, I
use to have rl0 and rl1) so It isn't routing anymore, and now im
getting a bunch of DHCPREQUEST messages on startup which I wasn't
getting before. And other errors saying that my network card isn't
configured. I checked /etc/rc.conf and the lines for ifconfig are
still in there...

Did I upgrade the kernel sources by doing an upgrade to the ports?
That would make sense, but what bugs me is that I copied the same
kernel config and just added the MSDOSFS_LARGE option once I booted up
I got the errors mentioned above. Shouldn't it have stayed pretty much
the same? I'm just trying to get a better understand if what happened
to that I don't make the same mistake.



On 5/21/07, Yanko Sanchez [EMAIL PROTECTED] wrote:

because when the hdd was first formated it was inside of a PowerPC and
we knew that it was going to be on a server but we didn't know of what
kind so we just formated FAT32. I don't really care what the fomrmat
it is, if I could switch it to UFS I'd do it, but I need a hdd as big
as that one to copy the files and then be able to reformat with a new
FS.

On 5/21/07, Garrett Cooper [EMAIL PROTECTED] wrote:
 Duane Hill wrote:
  Disreguard my previous response. I didn't see your next response to Ray.
  Sorry.
 
  On Sun, 20 May 2007, Yanko Sanchez wrote:
 
  Hello,
 
  I have a 400GB seagate IDE hdd with backed up data that I need to load
  onto
  a machine running freebsd 6.2
 
  The drive is formated for fat32 and when I run the command:
 
  mount -t msdos /dev/ad2s2 /mnt/audio/
 
  I get the following error:
 
  mountmsdosfs(): disk too big, sorry
 
  Is there a solution to this?
  Thanks.

 Why on earth would you want to create a 400GB MSDOSFS formatted disk?
 MSDOSFS was quick but offered no protection against power outages or
 incomplete writes, and was horrible in terms of disk fragmentation..

 If you really want MSDOSFS for whatever reason, just break up the disk
 into smaller chunks partition-wise (IIRC 100GB chunks are fine).

 -Garrett
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]



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


Re: Hot to configure simple mail forwarder?

2007-05-21 Thread Per olof Ljungmark

Maxim Khitrov wrote:

On 5/21/07, Per olof Ljungmark [EMAIL PROTECTED] wrote:

Maxim Khitrov wrote:
 Hi everyone,

 I have what I hope is a rather simple question. I'm not very familiar
 with this area of system administration, so hopefully someone here can
 point me in the right direction. I just got myself a FreeBSD VPS to
 host a few of my websites. I need the processes on the server (PHP,
 for example) to be able to send e-mail via /usr/sbin/sendmail. The
 thing is that I don't actually want to run a mail server. My vps is
 severely limited on disk space, and any mail I get I'll forward to my
 gmail account anyway. I can obviously configure sendmail or postfix to
 do this for me, but this seems a bit excessive for what I'm trying to
 do. The mail load will be very light, and I'd prefer to conserve disk
 space. Is there a port, perhaps, that will simply forward all mail
 transmitted to /usr/sbin/sendmail to the destination SMTP server? The
 only other thing it has to be able to do is use the aliases file to
 determine the real e-mail of root, for example.

 Like I said, I'm not too familiar with setting up mail servers, so if
 this makes no sense to you please suggest an alternative. Just to
 recap, I don't need local mail storage and I don't need the server to
 accept mail from anything other than the local processes running on
 the server. Just need it to read the destination e-mail address (or
 get it via aliases), connect to the MX server for that domain, and
 transmit the message. If there isn't any simple daemon that will do
 this, can you recommend either how to configure sendmail or something
 like postfix to do this? The idea is to minimize resource usage (disk
 space, memory, cpu time).

Sounds to me you just have to enter the proper aliases (in
/etc/mail/aliases), run newaliases, and you're done, i.e. point
everything to your own e-mail address?



Well I need sendmail running for that correct? Right now I've got it
disabled with sendmail_enable=NONE in my rc.conf. I was hoping to
use something a bit less resource intensive, and with a better
security history. I am not really at all familiar with sendmail. I
tried figuring out how to configure and tune it properly in the past,
and realized that I have neither the time or patience for that task. I
know that it will probably work the way it comes by default with
FreeBSD, but I really don't like running daemons that I don't
understand or don't know how to configure and monitor.

If this is the most efficient solution to my problem, then I guess
I'll head over to the handbook and try to figure sendmail out. If you
have other suggestions, by all means, let me know. Otherwise, are
there at least parts of sendmail that I can disable?


While it's true that sendmail is rather complicated to understand 
completely, it is already on your system, you do not need to add 
anything and as you say the default install is rather secure out of the 
box and updated with the system. Other mailers have other problems as 
well... just my SEK 0.02



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


Newbie to ssh questions

2007-05-21 Thread DSA - JCR
Hi all

I am new to SSH and I like to connect to my FreeBSD 6.2 box with SSH in
order to test secure connections (remote or not).

1.- Where can I found info about SSH configuration and connections?
2.- Is it possible to ssh connect to FBSD from a MS Windows system? How?
is any free programs outthere?


My intention is to login remotely to the FreeBSD box.


thanks in advance

Juan Coruña
Desarrollo de Software Atlantico



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


Re: Hot to configure simple mail forwarder?

2007-05-21 Thread Jerry McAllister
On Mon, May 21, 2007 at 01:52:34PM -0400, Maxim Khitrov wrote:

 On 5/21/07, Per olof Ljungmark [EMAIL PROTECTED] wrote:
 Maxim Khitrov wrote:
  Hi everyone,
 
  I have what I hope is a rather simple question. I'm not very familiar
  with this area of system administration, so hopefully someone here can
  point me in the right direction. I just got myself a FreeBSD VPS to
  host a few of my websites. I need the processes on the server (PHP,
  for example) to be able to send e-mail via /usr/sbin/sendmail. The
  thing is that I don't actually want to run a mail server. My vps is
  severely limited on disk space, and any mail I get I'll forward to my
  gmail account anyway. I can obviously configure sendmail or postfix to
  do this for me, but this seems a bit excessive for what I'm trying to
  do. The mail load will be very light, and I'd prefer to conserve disk
  space. Is there a port, perhaps, that will simply forward all mail
  transmitted to /usr/sbin/sendmail to the destination SMTP server? The
  only other thing it has to be able to do is use the aliases file to
  determine the real e-mail of root, for example.
 
  Like I said, I'm not too familiar with setting up mail servers, so if
  this makes no sense to you please suggest an alternative. Just to
  recap, I don't need local mail storage and I don't need the server to
  accept mail from anything other than the local processes running on
  the server. Just need it to read the destination e-mail address (or
  get it via aliases), connect to the MX server for that domain, and
  transmit the message. If there isn't any simple daemon that will do
  this, can you recommend either how to configure sendmail or something
  like postfix to do this? The idea is to minimize resource usage (disk
  space, memory, cpu time).
 
 Sounds to me you just have to enter the proper aliases (in
 /etc/mail/aliases), run newaliases, and you're done, i.e. point
 everything to your own e-mail address?
 
 
 Well I need sendmail running for that correct? Right now I've got it
 disabled with sendmail_enable=NONE in my rc.conf. I was hoping to
 use something a bit less resource intensive, and with a better
 security history. I am not really at all familiar with sendmail. I
 tried figuring out how to configure and tune it properly in the past,
 and realized that I have neither the time or patience for that task. I
 know that it will probably work the way it comes by default with
 FreeBSD, but I really don't like running daemons that I don't
 understand or don't know how to configure and monitor.
 
 If this is the most efficient solution to my problem, then I guess
 I'll head over to the handbook and try to figure sendmail out. If you
 have other suggestions, by all means, let me know. Otherwise, are
 there at least parts of sendmail that I can disable?

There is nothing wrong with using sendmail.
If you want to 'receive' email at the address and forward it to
some other address, then there is nothing you have to do to configure it.
Just leave it at its defaults.Then put the aliases in as indicated.

If you want to be able to send out Email - say from processes, but 
receive no email, not even to forward, then set it to 'no' in rc.conf.

jerry

 
 P.S. Sorry for the typo in the title.
 
 - Max
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Newbie to ssh questions

2007-05-21 Thread Dick Hoogendijk
On 21 May DSA - JCR wrote:
 1.- Where can I found info about SSH configuration and connections?

Read the handbook.

 2.- Is it possible to ssh connect to FBSD from a MS Windows system?
 How?  is any free programs outthere?

puTTY

-- 
Dick Hoogendijk -- PGP/GnuPG key: F86289CE
++ http://nagual.nl/ | Solaris 10 11/06 ++
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Newbie to ssh questions

2007-05-21 Thread Pietro Cerutti
DSA - JCR wrote:
 Hi all
 
 I am new to SSH and I like to connect to my FreeBSD 6.2 box with SSH in
 order to test secure connections (remote or not).
 
 1.- Where can I found info about SSH configuration and connections?
You can start here
http://www.freebsd.org/doc/en/books/handbook/openssh.html
and here
http://www.freebsd.org/cgi/man.cgi?query=ssh

 2.- Is it possible to ssh connect to FBSD from a MS Windows system? How?
 is any free programs outthere?

Yes, PuTTY is one of the most popular:
http://www.chiark.greenend.org.uk/~sgtatham/putty/

 thanks in advance
You're welcome

 
 Juan Coruña
 Desarrollo de Software Atlantico
 

-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp



signature.asc
Description: OpenPGP digital signature


Re: How to configure simple mail forwarder?

2007-05-21 Thread Maxim Khitrov

On 5/21/07, Jerry McAllister [EMAIL PROTECTED] wrote:

On Mon, May 21, 2007 at 01:52:34PM -0400, Maxim Khitrov wrote:

 On 5/21/07, Per olof Ljungmark [EMAIL PROTECTED] wrote:
 Maxim Khitrov wrote:
  Hi everyone,
 
  I have what I hope is a rather simple question. I'm not very familiar
  with this area of system administration, so hopefully someone here can
  point me in the right direction. I just got myself a FreeBSD VPS to
  host a few of my websites. I need the processes on the server (PHP,
  for example) to be able to send e-mail via /usr/sbin/sendmail. The
  thing is that I don't actually want to run a mail server. My vps is
  severely limited on disk space, and any mail I get I'll forward to my
  gmail account anyway. I can obviously configure sendmail or postfix to
  do this for me, but this seems a bit excessive for what I'm trying to
  do. The mail load will be very light, and I'd prefer to conserve disk
  space. Is there a port, perhaps, that will simply forward all mail
  transmitted to /usr/sbin/sendmail to the destination SMTP server? The
  only other thing it has to be able to do is use the aliases file to
  determine the real e-mail of root, for example.
 
  Like I said, I'm not too familiar with setting up mail servers, so if
  this makes no sense to you please suggest an alternative. Just to
  recap, I don't need local mail storage and I don't need the server to
  accept mail from anything other than the local processes running on
  the server. Just need it to read the destination e-mail address (or
  get it via aliases), connect to the MX server for that domain, and
  transmit the message. If there isn't any simple daemon that will do
  this, can you recommend either how to configure sendmail or something
  like postfix to do this? The idea is to minimize resource usage (disk
  space, memory, cpu time).
 
 Sounds to me you just have to enter the proper aliases (in
 /etc/mail/aliases), run newaliases, and you're done, i.e. point
 everything to your own e-mail address?
 

 Well I need sendmail running for that correct? Right now I've got it
 disabled with sendmail_enable=NONE in my rc.conf. I was hoping to
 use something a bit less resource intensive, and with a better
 security history. I am not really at all familiar with sendmail. I
 tried figuring out how to configure and tune it properly in the past,
 and realized that I have neither the time or patience for that task. I
 know that it will probably work the way it comes by default with
 FreeBSD, but I really don't like running daemons that I don't
 understand or don't know how to configure and monitor.

 If this is the most efficient solution to my problem, then I guess
 I'll head over to the handbook and try to figure sendmail out. If you
 have other suggestions, by all means, let me know. Otherwise, are
 there at least parts of sendmail that I can disable?

There is nothing wrong with using sendmail.
If you want to 'receive' email at the address and forward it to
some other address, then there is nothing you have to do to configure it.
Just leave it at its defaults.Then put the aliases in as indicated.

If you want to be able to send out Email - say from processes, but
receive no email, not even to forward, then set it to 'no' in rc.conf.

jerry


Fair enough, I'll give that a try. Just for my own info, when I set
sendmail_enable to NO and start it up I get sendmail_submit and
sendmail_clientmqueue starting. Am I correct in assuming that
clientmqueue is what accepts the messages from the processes on the
system (places them in /var/spool/mqueue), and submit is what actually
delivers them to other servers?

Thanks for your help guys!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Security Run Output Setuid Differences

2007-05-21 Thread Roland Smith
On Mon, May 21, 2007 at 11:59:33AM -0700, PeterPluta wrote:
snip
  Looks like you were portupgrading around with postfix, screen and xterm.
  
  The output is diff(1).  See the man page for details, but it's basically
  showing you the difference between last night's directory listing, and
  that
  of the previous day.
  
  For more gory details, see the scripts in /etc/periodic/security, which
  are
  run every night from cron.  Some of the ports you changed resulted in
  changes to setuid/setgid programs installed on the system.  As a security-
  concious administrator, you should be interested in the programs on your
  system that have elevated privilidges, so this script is provided to give
  you a daily report on that.
 
 I see, so basically after reinstalling the default uid/gid of some programs
 changed? Is that a problem or anything? 

It's not a problem. It's just something that you should be aware of from
a security standpoint.

In this case you caused it because you upgraded some ports, which is OK.

But if the size, date, ownership or permissions of a binary change
without any apparent cause, it _could_ be the work of an intruder or
rootkit trying to backdoor your system. That's why the system checks it.

In /etc/defaults/periodic.conf you see which settings there are
concerning security, and what the defaults are. If you want to disable
some of them, put the settings in /etc/periodic.conf with a NO value
instead of YES. But I would recommend to leave them as they are.

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)


pgp97mviUg63t.pgp
Description: PGP signature


building packages for dependencies

2007-05-21 Thread Erik Norgaard

Hi:

When I do a

# make install package

I only get a package built for the port in question, not for 
dependencies. How do I make packages of all dependencies too?


Thanks, Erik
--
Ph: +34.666334818  web: http://www.locolomo.org


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Build with debug symbols

2007-05-21 Thread Giorgos Keramidas
On 2007-05-20 07:41, White Hat [EMAIL PROTECTED] wrote:
 If I build a port with debugging information; i.e.
 'make -g', is that debugging information stripped out
 when the program is installed? If so, is there anyway
 to prevent this from happening?
 
 I have been attempting to build 'claws-mail' with
 debugging information; however, when I run the program
 under 'gdb' that information does not appear to be
 present. I heard that there was a 'STRIP' flag I could
 set; however, I cannot find any definitive information
 regarding it.

# env DEBUG_FLAGS='-g' CFLAGS='' ...

The DEBUG_FLAGS option turns off symbol stripping.

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


Re: building packages for dependencies

2007-05-21 Thread Danny Pansters
On Monday 21 May 2007 22:11:34 Erik Norgaard wrote:
 Hi:

 When I do a

 # make install package

 I only get a package built for the port in question, not for
 dependencies. How do I make packages of all dependencies too?

 Thanks, Erik

make package-recursive

Dan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Experience and thoughts on updating all ports (was Updating all ports)

2007-05-21 Thread doug
I just upgraded my laptop from kde 3.5.1 taking a shot at using portupgrade 
and/or portmanager. From my previous experience portupgrade has been greatly 
enhanced/simplified. portmanager builds a database that gives a great status 
report and identifies orphaned port/packages. IMO these packages compliment one 
another.


The problems with these tools are largely (I think) not of their own making. 
They depend on the ports tree and/or packages to accurately define requirements 
and dependencies. OpenOffice, to name one package, does not do this. Further, if 
you run kde (and probably any other comparable desktop), the interactions of 
dependencies are hopelessly complex.  If you do not stay 'reasonably' current, 
using these tools (even as good as they are now) is much more complex and takes 
longer that simply clearing things out and starting over. The PC-BSD project 
seems to address this issue by picking a working set of ports. In my case I 
upgrade when a have a spare moment or when kde is around a year old.


I decided I would install and look at port manager first, mostly because of my 
previous (and outdated) experience with portupgrade. portmanager currently does 
not allow (or attempt) to use packages, so I also installed portupgrade.


My plan of attack was to remove kde and OpenOffice and try to upgrade the 
remaining ports/packages. My next step was to use portmanager to remove the 
orphaned (leaf) ports. This is not a good plan because this does not 
(necessarily) yield the set of ports that the kde package requires, and some of 
the leaf ports were both up-to-date and later required.


Currently my laptop has nothing on it except kde 3.5.6, openopenoffice 2.2.0 and 
gaim. This requires something in excess of 200 ports. Starting from a base more 
than a year out of date, the upgrade tools did not have a chance to work 
(easily). I ended up with 2.5 days of building and required a second pass to 
clean up some dependencies. I then installed the kde package and had to 
uninstall one or two ports because dependency conflicts. OpenOffice installed 
with no issues other than the package from the OpenOffice site did not require 
its dependencies all of which I had erroneously removed as leafs.


For some, the above is a bit complex (if not daunting) and I certainly do not 
have enough resources to build kde and OpenOffice from scratch. that process 
would add at least a week to the time I spent building.


For a desktop system either constructed from packages or that has not been 
updated for several months, I think a viable alternative is to clear things out 
and install from packages starting with your desktop. This takes about two hours 
after you are familiar with the process and assumes using twm which is built 
into Xorg. If Xorg needs updating that must be done from the console. Xorg takes 
just a few minutes if a current version is available on cdrom.


Using portupgrade with the noexecute option will give a sense of how complex 
upgrading will be. In some cases I still find starting over to be a viable and 
easier option to portupgrade/portmanager. To me it has the advantage 
over PC-BSD of having a more current set of applications.


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


Re: just general questions about fbsd

2007-05-21 Thread Chad Perrin
On Sun, May 20, 2007 at 11:48:32PM -0700, Garrett Cooper wrote:
 Chad Perrin wrote:
 On Sun, May 20, 2007 at 08:09:19PM -0400, Tamouh H. wrote:
 On the other hand, Windows has the ability to change the administrator 
 user or completely disable it. Something not available in Unix systems. 
 For example, a cracker or hacker targeting UNIX system will automatically 
 try to compromise the root user. It is 100% guaranteed to be there. On 
 the other hand in Windows, good sys admins will rename or complete 
 disable the administrator user hence making it more difficult to know the 
 administrator user.
 
 
 Actually . . . technically, root users can be renamed and can, in many
 ways, be disabled.  They can certainly be made inaccessible remotely.
 
 
 That can break many scripts though, can't it, if the dev improperly 
 looks up the name, not the UID?

Probably -- if you're talking about disabling or renaming the root
account for users.  I've never personally done it, so can't really
comment on that.  I have, however, generally made the root account
inaccessible remotely -- and that hasn't cause me any problems at all.

-- 
CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ]
MacUser, Nov. 1990: There comes a time in the history of any project when
it becomes necessary to shoot the engineers and begin production.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: disk too big to mount

2007-05-21 Thread Reid Linnemann

Written by Yanko Sanchez on 05/21/07 14:03

Thanks for anyone that  has helped so far, I'm a freebsd newbie coming
from linux.

So I basically re-compiled my kernel with the LARGE option on and it
seems to mount the drive fine. I encountered another problem tho.

Before I recompiled the kernel I updated the ports tree, basically cos
I just wanted to see how it was done and it seemed to be successful.
The problem is that after I recompiled the kernel a bunch of stuff
stoped working.  I have the server setup as a router and my to Network
cards isn't showing up anymore (both being the same type of cards, I
use to have rl0 and rl1) so It isn't routing anymore, and now im
getting a bunch of DHCPREQUEST messages on startup which I wasn't
getting before. And other errors saying that my network card isn't
configured. I checked /etc/rc.conf and the lines for ifconfig are
still in there...

Did I upgrade the kernel sources by doing an upgrade to the ports?
That would make sense, but what bugs me is that I copied the same
kernel config and just added the MSDOSFS_LARGE option once I booted up
I got the errors mentioned above. Shouldn't it have stayed pretty much
the same? I'm just trying to get a better understand if what happened
to that I don't make the same mistake.





1. How did you upgrade your ports tree?
2. How did you recompile the kernel?
3. What does uname -a report?
4. what is the output of ifconfig -a?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


configuring nis

2007-05-21 Thread WarrenHead

Hi,

I have been having some trouble with getting NIS working on my freebsd 
server. Mainly because I have never before used this.


I now have it working, but there is an odd inconsistency which I don't 
know how to remove/update.


I changed the gid of a user with: 'pw usermod -n sam -g 1000', but this 
change is not reflected in the yp maps. I did recreate the maps again 
with 'ypinit -m', but I guess that was not the trick I needed to update 
the maps.


So, now when I run 'ypcat passwd', I see something like this:
sam:*:1000:1001:Sam Genter:/home/sam:/usr/local/bin/bash

while I also see this: 'id sam'
uid=1000(sam) gid=1000(sam) groups=1000(sam), 100(users)

The difference is thus the gid.

I can find information about updating/pushing the maps onto slave 
servers, but not about getting changes into the maps on the sole nis 
server I have.


Cheers, Warren


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


Re: building packages for dependencies

2007-05-21 Thread Randy Schultz
On Mon, 21 May 2007, Erik Norgaard spaketh thusly:

-}Hi:
-}
-}When I do a
-}
-}# make install package
-}
-}I only get a package built for the port in question, not for dependencies. How
-}do I make packages of all dependencies too?

portupgrade -N package

--
 Randy([EMAIL PROTECTED])  765.983.1283 *

Rain puts a hole in stone because of its constancy, not its force.
   - H. Joseph Gerber

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


[long] panic: corrupt spinlock

2007-05-21 Thread Robert Huff


 (This is happening on a -CURRENT box.  Before I bother the folks 
there, hopefully someone can see what I screwed up.)


	Attempting to update from -CURRENT/nid-March to -CURRENT/today (sources 
updated at midnight EST), the buildworld, buildkernel, and installkernel 
phases are sucessful.  (buildworld log available on request)
	However: upon reboot the kernel panics and drops into KDB.  (Whereupon 
the console freezes ... but that's an old problem.)  The specific context:


kbd0 at ukbd0
panic: corrupt spinlock
KDB: enter: panic
[threat pid 0 tid 0]
stopped at kdb_enter+0x32: leave
db

There's nothing in the logs or in dmesg.today.
	loader.conf, an old dmesg for the exact same hardware configuration, 
and the kernel config file are appended.   (In that order.)

Any ideas?
Thanks,


Robert Huff


*
loader_color=YES
accf_http_load=YES
if_re_load=YES
if_de_load=YES
loader_logo=beastie
debug.mpsafenet=1
nvidia_load=YES
linux_load=YES

*
Copyright (c) 1992-2007 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.0-CURRENT #0: Tue Mar 13 22:38:20 EST 2007
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/JERUSALEM
WARNING: WITNESS option enabled, expect reduced performance.
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) 4 CPU 2.26GHz (2266.76-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0xf24  Stepping = 4

Features=0x3febfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM
real memory  = 536854528 (511 MB)
avail memory = 515866624 (491 MB)
acpi0: ASUS P4S533 on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
Timecounter ACPI-safe frequency 3579545 Hz quality 1000
acpi_timer0: 24-bit timer at 3.579545MHz port 0xe408-0xe40b on acpi0
cpu0: ACPI CPU on acpi0
acpi_throttle0: ACPI CPU Throttling on cpu0
acpi_button0: Power Button on acpi0
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
agp0: SiS 645DX host to AGP bridge on hostb0
pcib1: ACPI PCI-PCI bridge at device 1.0 on pci0
pci1: ACPI PCI bus on pcib1
vgapci0: VGA-compatible display mem 
0xfc00-0xfdff,0xf380-0xf3803fff,0xf300-0xf37f irq 11 
at device 0.0 on pci1

drm0: Matrox G400/G450 (AGP) on vgapci0
info: [drm] AGP at 0xf400 64MB
info: [drm] Initialized mga 3.2.2 20060319
isab0: PCI-ISA bridge at device 2.0 on pci0
isa0: ISA bus on isab0
ohci0: SiS 5571 USB controller mem 0xf280-0xf2800fff irq 5 at 
device 2.2 on pci0

ohci0: [GIANT-LOCKED]
ohci0: [ITHREAD]
usb0: OHCI version 1.0, legacy support
usb0: SMM does not respond, resetting
usb0: SiS 5571 USB controller on ohci0
usb0: USB revision 1.0
uhub0: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb0
uhub0: 3 ports with 3 removable, self powered
ohci1: SiS 5571 USB controller mem 0xf200-0xf2000fff irq 9 at 
device 2.3 on pci0

ohci1: [GIANT-LOCKED]
ohci1: [ITHREAD]
usb1: OHCI version 1.0, legacy support
usb1: SMM does not respond, resetting
usb1: SiS 5571 USB controller on ohci1
usb1: USB revision 1.0
uhub1: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb1
uhub1: 3 ports with 3 removable, self powered
pci0: mass storage, ATA at device 2.5 (no driver attached)
pcm0: CMedia CMI8738 port 0xa800-0xa8ff irq 10 at device 5.0 on pci0
pcm0: [ITHREAD]
ahc0: Adaptec 2940 Ultra2 SCSI adapter port 0xa400-0xa4ff mem 
0xf100-0xf1000fff irq 11 at device 8.0 on pci0

ahc0: [GIANT-LOCKED]
ahc0: [ITHREAD]
aic7890/91: Ultra2 Wide Channel A, SCSI Id=7, 32/253 SCBs
ohci2: AcerLabs M5237 (Aladdin-V) USB controller mem 
0xf080-0xf0800fff irq 14 at device 10.0 on pci0

ohci2: [GIANT-LOCKED]
ohci2: [ITHREAD]
usb2: OHCI version 1.0, legacy support
usb2: AcerLabs M5237 (Aladdin-V) USB controller on ohci2
usb2: USB revision 1.0
uhub2: AcerLabs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb2
uhub2: 2 ports with 2 removable, self powered
ehci0: ALi M5239 USB 2.0 controller mem 0xf000-0xf0ff irq 15 
at device 10.3 on pci0

ehci0: [GIANT-LOCKED]
ehci0: [ITHREAD]
usb3: EHCI version 1.0
usb3: companion controller, 2 ports each: usb2
usb3: ALi M5239 USB 2.0 controller on ehci0
usb3: USB revision 2.0
uhub3: AcerLabs EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 on usb3
uhub3: 6 ports with 6 removable, self powered
umass0: Addonics Addonics USB Drive, class 0/0, rev 2.00/0.15, addr 2 
on uhub3
de0: Digital 21140 Fast Ethernet port 0xa000-0xa07f mem 
0xef80-0xef80007f irq 14 at device 11.0 on pci0

de0: ZNYX ZX34X 21140 [10-100Mb/s] pass 1.1
de0: using obsoleted if_watchdog interface
de0: Ethernet address: 00:c0:95:f8:17:af
de0: [ITHREAD]
re0: Linksys 

Re: configuring nis

2007-05-21 Thread WarrenHead

WarrenHead schreef:

Hi,

I have been having some trouble with getting NIS working on my freebsd 
server. Mainly because I have never before used this.


I now have it working, but there is an odd inconsistency which I don't 
know how to remove/update.


I changed the gid of a user with: 'pw usermod -n sam -g 1000', but this 
change is not reflected in the yp maps. I did recreate the maps again 
with 'ypinit -m', but I guess that was not the trick I needed to update 
the maps.


So, now when I run 'ypcat passwd', I see something like this:
sam:*:1000:1001:Sam Genter:/home/sam:/usr/local/bin/bash

while I also see this: 'id sam'
uid=1000(sam) gid=1000(sam) groups=1000(sam), 100(users)

The difference is thus the gid.

I can find information about updating/pushing the maps onto slave 
servers, but not about getting changes into the maps on the sole nis 
server I have.


Cheers, Warren




Oh and just running 'make -C /var/yp' doesn't solve it either.
This command is suggested here:
http://www.linux-nis.org/nis-howto/HOWTO/maps.html

Cheers, Warren

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


[freebsd-questions] Can't build php5?

2007-05-21 Thread Patrick Baldwin
Hi, I'm in the process of trying to build a Horde/IMP server.  I started 
by freshly installing  updating 6.2-RELEASE-p4 FreeBSD.  I then 
installed IMP package with pkg_add -r imp.  All seemed to go well.  I
then started working my way through configuring the various newly 
installed things.


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

I added:

LoadModule php5_modulelibexec/apache/libphp5.so

AddModule mod_php5.c
IfModule mod_php5.c
DirectoryIndex index.php index.html
/IfModule
IfModule mod_php5.c
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
/IfModule

To my /usr/local/etc/apache/httpd.conf file.

When I tried to restart Apache, I get:
 apachectl start
Syntax error on line 238 of /usr/local/etc/apache/httpd.conf:
Cannot load /usr/local/libexec/apache/libphp5.so into server: Cannot 
open /usr/local/libexec/apache/libphp5.so

/usr/local/sbin/apachectl start: httpd could not be started


And sure enough, it's not there.  I go to /usr/ports/lang/php5,
Run make config install, telling it to build Apache module, and
I get:

===  Vulnerability check disabled, database not found
===  Found saved configuration for php5-5.2.2
= suhosin-patch-5.2.2-0.9.6.2.patch.gz doesn't seem to exist in 
/usr/ports/distfiles/.

= Attempting to fetch from http://www.hardened-php.net/suhosin/_media/.
fetch: 
http://www.hardened-php.net/suhosin/_media/suhosin-patch-5.2.2-0.9.6.2.patch.gz: 
Connection refused
= Attempting to fetch from 
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/.
fetch: 
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/suhosin-patch-5.2.2-0.9.6.2.patch.gz: 
File unavailable (e.g., file not found, no access)

= Couldn't fetch it - please try to retrieve this
= port manually into /usr/ports/distfiles/ and try again.
*** Error code 1

Stop in /usr/ports/lang/php5.
*** Error code 1

Stop in /usr/ports/lang/php5.


My goal here is to get a working FreeBSD 6.2 Horde/IMP server.  I'm new
to all these things, so if I'm going about this the hard or the stupid
way, please don't hesitate to tell me.  It seemed like the easiest and
fastest way to get a working install would be to install the package,
but maybe I'm wrong.

Regards,

--
Patrick Baldwin
Systems Administrator
Studsvik Scandpower, Inc.
1087 Beacon St.
Newton, MA 02459
1-617-965-7455

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


Re: configuring nis

2007-05-21 Thread WarrenHead

Reid Linnemann schreef:

Written by WarrenHead on 05/21/07 15:34

Hi,

I have been having some trouble with getting NIS working on my freebsd 
server. Mainly because I have never before used this.


I now have it working, but there is an odd inconsistency which I don't 
know how to remove/update.


I changed the gid of a user with: 'pw usermod -n sam -g 1000', but 
this change is not reflected in the yp maps. I did recreate the maps 
again with 'ypinit -m', but I guess that was not the trick I needed to 
update the maps.


So, now when I run 'ypcat passwd', I see something like this:
sam:*:1000:1001:Sam Genter:/home/sam:/usr/local/bin/bash

while I also see this: 'id sam'
uid=1000(sam) gid=1000(sam) groups=1000(sam), 100(users)

The difference is thus the gid.

I can find information about updating/pushing the maps onto slave 
servers, but not about getting changes into the maps on the sole nis 
server I have.


Cheers, Warren



pw by default works on the local /etc/passwd, not the yp passwd 
database. I suggest reading about the -y option in the manpage:


-y path

This sets the pathname of the database used by NIS if you are not 
sharing the information from /etc/master.passwd directly with NIS. You 
should only set this option for NIS servers.




Ah ofcourse. I wasn't using the default /etc/master.passwd because that 
one contains way more users than I want to share among machines.

Thanks for the heads up!

Cheers, Warren
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: configuring nis

2007-05-21 Thread Reid Linnemann

Written by WarrenHead on 05/21/07 15:34

Hi,

I have been having some trouble with getting NIS working on my freebsd 
server. Mainly because I have never before used this.


I now have it working, but there is an odd inconsistency which I don't 
know how to remove/update.


I changed the gid of a user with: 'pw usermod -n sam -g 1000', but this 
change is not reflected in the yp maps. I did recreate the maps again 
with 'ypinit -m', but I guess that was not the trick I needed to update 
the maps.


So, now when I run 'ypcat passwd', I see something like this:
sam:*:1000:1001:Sam Genter:/home/sam:/usr/local/bin/bash

while I also see this: 'id sam'
uid=1000(sam) gid=1000(sam) groups=1000(sam), 100(users)

The difference is thus the gid.

I can find information about updating/pushing the maps onto slave 
servers, but not about getting changes into the maps on the sole nis 
server I have.


Cheers, Warren



pw by default works on the local /etc/passwd, not the yp passwd 
database. I suggest reading about the -y option in the manpage:


-y path

This sets the pathname of the database used by NIS if you are not 
sharing the information from /etc/master.passwd directly with NIS. You 
should only set this option for NIS servers.



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


Re: configuring nis

2007-05-21 Thread Lowell Gilbert
WarrenHead [EMAIL PROTECTED] writes:

 I have been having some trouble with getting NIS working on my freebsd
 server. Mainly because I have never before used this.

 I now have it working, but there is an odd inconsistency which I don't
 know how to remove/update.

 I changed the gid of a user with: 'pw usermod -n sam -g 1000', but
 this change is not reflected in the yp maps. I did recreate the maps
 again with 'ypinit -m', but I guess that was not the trick I needed to
 update the maps.

 So, now when I run 'ypcat passwd', I see something like this:
 sam:*:1000:1001:Sam Genter:/home/sam:/usr/local/bin/bash

 while I also see this: 'id sam'
 uid=1000(sam) gid=1000(sam) groups=1000(sam), 100(users)

 The difference is thus the gid.

 I can find information about updating/pushing the maps onto slave
 servers, but not about getting changes into the maps on the sole nis
 server I have.

This depends on where the sources for the maps are stored on the
master.  If NIS on the master is not getting its data directly from
/etc/master.passwd, then I think you need to give the -y option to
the pw(8) command to get it to change the maps.

[Or you can just edit the files directly.  That's what I do on my
(very small) home network.]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [freebsd-questions] Can't build php5?

2007-05-21 Thread Beech Rintoul
On Monday 21 May 2007, Patrick Baldwin said:
 Hi, I'm in the process of trying to build a Horde/IMP server.  I
 started by freshly installing  updating 6.2-RELEASE-p4 FreeBSD.  I
 then installed IMP package with pkg_add -r imp.  All seemed to go
 well.  I then started working my way through configuring the
 various newly installed things.

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

 I added:

 LoadModule php5_modulelibexec/apache/libphp5.so

 AddModule mod_php5.c
  IfModule mod_php5.c
  DirectoryIndex index.php index.html
  /IfModule
  IfModule mod_php5.c
  AddType application/x-httpd-php .php
  AddType application/x-httpd-php-source .phps
  /IfModule

 To my /usr/local/etc/apache/httpd.conf file.

 When I tried to restart Apache, I get:
   apachectl start
 Syntax error on line 238 of /usr/local/etc/apache/httpd.conf:
 Cannot load /usr/local/libexec/apache/libphp5.so into server:
 Cannot open /usr/local/libexec/apache/libphp5.so
 /usr/local/sbin/apachectl start: httpd could not be started


 And sure enough, it's not there.  I go to /usr/ports/lang/php5,
 Run make config install, telling it to build Apache module, and
 I get:

 ===  Vulnerability check disabled, database not found
 ===  Found saved configuration for php5-5.2.2
 = suhosin-patch-5.2.2-0.9.6.2.patch.gz doesn't seem to exist in
 /usr/ports/distfiles/.
 = Attempting to fetch from
 http://www.hardened-php.net/suhosin/_media/. fetch:
 http://www.hardened-php.net/suhosin/_media/suhosin-patch-5.2.2-0.9.
6.2.patch.gz: Connection refused
 = Attempting to fetch from
 ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/.
 fetch:
 ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/suhosin-patch-5.2
.2-0.9.6.2.patch.gz: File unavailable (e.g., file not found, no
 access)
 = Couldn't fetch it - please try to retrieve this
 = port manually into /usr/ports/distfiles/ and try again.
 *** Error code 1

 Stop in /usr/ports/lang/php5.
 *** Error code 1

 Stop in /usr/ports/lang/php5.


 My goal here is to get a working FreeBSD 6.2 Horde/IMP server.  I'm
 new to all these things, so if I'm going about this the hard or the
 stupid way, please don't hesitate to tell me.  It seemed like the
 easiest and fastest way to get a working install would be to
 install the package, but maybe I'm wrong.

 Regards,

The problem is there have been upgrades to php and their server is 
currently down. This has been reported by several people and all I 
can suggest is to try again later. FWIW, I just tried to fetch and 
it's still down.

Beech

-- 
---
Beech Rintoul - Port Maintainer - [EMAIL PROTECTED]
/\   ASCII Ribbon Campaign  | FreeBSD Since 4.x
\ / - NO HTML/RTF in e-mail   | http://www.freebsd.org
 X  - NO Word docs in e-mail | Latest Release:
/ \  - http://www.freebsd.org/releases/6.2R/announce.html
---



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


Re: configuring nis

2007-05-21 Thread Reid Linnemann

Written by WarrenHead on 05/21/07 16:11

Reid Linnemann schreef:

Written by WarrenHead on 05/21/07 15:34

Hi,

I have been having some trouble with getting NIS working on my 
freebsd server. Mainly because I have never before used this.


I now have it working, but there is an odd inconsistency which I 
don't know how to remove/update.


I changed the gid of a user with: 'pw usermod -n sam -g 1000', but 
this change is not reflected in the yp maps. I did recreate the maps 
again with 'ypinit -m', but I guess that was not the trick I needed 
to update the maps.


So, now when I run 'ypcat passwd', I see something like this:
sam:*:1000:1001:Sam Genter:/home/sam:/usr/local/bin/bash

while I also see this: 'id sam'
uid=1000(sam) gid=1000(sam) groups=1000(sam), 100(users)

The difference is thus the gid.

I can find information about updating/pushing the maps onto slave 
servers, but not about getting changes into the maps on the sole nis 
server I have.


Cheers, Warren



pw by default works on the local /etc/passwd, not the yp passwd 
database. I suggest reading about the -y option in the manpage:


-y path

This sets the pathname of the database used by NIS if you are not 
sharing the information from /etc/master.passwd directly with NIS. You 
should only set this option for NIS servers.




Ah ofcourse. I wasn't using the default /etc/master.passwd because that 
one contains way more users than I want to share among machines.

Thanks for the heads up!

Cheers, Warren


Also of interest should be the -Y option, which when used with the -y 
flag automatically triggers a 'make' in /var/yp.

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


Re: [freebsd-questions] Can't build php5?

2007-05-21 Thread doug

On Mon, 21 May 2007, Patrick Baldwin wrote:

Hi, I'm in the process of trying to build a Horde/IMP server.  I started by 
freshly installing  updating 6.2-RELEASE-p4 FreeBSD.  I then installed IMP 
package with pkg_add -r imp.  All seemed to go well.  I
then started working my way through configuring the various newly installed 
things.


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

I added:

LoadModule php5_modulelibexec/apache/libphp5.so

AddModule mod_php5.c
   IfModule mod_php5.c
   DirectoryIndex index.php index.html
   /IfModule
   IfModule mod_php5.c
   AddType application/x-httpd-php .php
   AddType application/x-httpd-php-source .phps
   /IfModule

To my /usr/local/etc/apache/httpd.conf file.

When I tried to restart Apache, I get:
apachectl start
Syntax error on line 238 of /usr/local/etc/apache/httpd.conf:
Cannot load /usr/local/libexec/apache/libphp5.so into server: Cannot open 
/usr/local/libexec/apache/libphp5.so

/usr/local/sbin/apachectl start: httpd could not be started


And sure enough, it's not there.  I go to /usr/ports/lang/php5,
Run make config install, telling it to build Apache module, and
I get:

===  Vulnerability check disabled, database not found
===  Found saved configuration for php5-5.2.2
= suhosin-patch-5.2.2-0.9.6.2.patch.gz doesn't seem to exist in 
/usr/ports/distfiles/.

= Attempting to fetch from http://www.hardened-php.net/suhosin/_media/.
fetch: 
http://www.hardened-php.net/suhosin/_media/suhosin-patch-5.2.2-0.9.6.2.patch.gz: 
Connection refused
= Attempting to fetch from 
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/.
fetch: 
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/suhosin-patch-5.2.2-0.9.6.2.patch.gz: 
File unavailable (e.g., file not found, no access)

= Couldn't fetch it - please try to retrieve this
= port manually into /usr/ports/distfiles/ and try again.
*** Error code 1

Stop in /usr/ports/lang/php5.
*** Error code 1

Stop in /usr/ports/lang/php5.


My goal here is to get a working FreeBSD 6.2 Horde/IMP server.  I'm new
to all these things, so if I'm going about this the hard or the stupid
way, please don't hesitate to tell me.  It seemed like the easiest and
fastest way to get a working install would be to install the package,
but maybe I'm wrong.



Build pgp5 from the ports. It does not take very long. I think, but am not sure, 
the problem is missing packages from the mirrors. In any case build php from 
source first will solve this. Make sure that your ports collection is 
up-to-date. If you want to go the package route, probably horde needs to be 
installed first and it will pull whatt it needs. With a server I would build 
from source.

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


Re[2]: notebook cpu throttling

2007-05-21 Thread Ghirai
Hello Roland,

Monday, May 21, 2007, 11:08:13 PM, you wrote:

 On Mon, May 21, 2007 at 09:52:22PM +0300, Ghirai wrote:
 Hello list,
 
 I'm running 6.2-RELEASE, SMP, on a
 Fujitsu-Siemens Amilo Pro v3205 (Core Duo).
 
 Everything works fine, except the cpu throttling,
 which makes the fan start quite often.
 
 Is there any way to fix this?

 You need to do three things (as root);

 1) Load the cpufreq module 'kldload cpufreq'.
 2) Put 'powerd_enable=YES' in your /etc/rc.conf
 2) Start powerd: '/etc/rc.d/powerd start'

 Roland

Thanks for the hint.

I did that, but now xorg constantly uses 20-30% CPU.

CPUs were running cooler indeed, but everything ran jerky,
because of the xorg cpu usage.

Note that i haven't upgraded to 7.2 yet,
but i don't think this is the problem.

-- 
Best regards,
Ghirai.

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


Re: notebook cpu throttling

2007-05-21 Thread Roland Smith
On Tue, May 22, 2007 at 12:56:08AM +0300, Ghirai wrote:
  Hello list,
  
  I'm running 6.2-RELEASE, SMP, on a
  Fujitsu-Siemens Amilo Pro v3205 (Core Duo).
  
  Everything works fine, except the cpu throttling,
  which makes the fan start quite often.
  
  Is there any way to fix this?
 
  You need to do three things (as root);
 
  1) Load the cpufreq module 'kldload cpufreq'.
  2) Put 'powerd_enable=YES' in your /etc/rc.conf
  2) Start powerd: '/etc/rc.d/powerd start'
 
  Roland
 
 Thanks for the hint.
 
 I did that, but now xorg constantly uses 20-30% CPU.

That's a lot. Are you doing anything to make it work hard? Such a
constantly high CPU usage is not normal, IMHO. Unless you're doing
something wacky like running xearth or xlock on your root window.

 CPUs were running cooler indeed, but everything ran jerky,
 because of the xorg cpu usage.

You can try to renice(8) the X server. That might make it less jerky.

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)


pgpONdiBnVYzt.pgp
Description: PGP signature


Re[2]: notebook cpu throttling

2007-05-21 Thread Ghirai
Hello Roland,

Tuesday, May 22, 2007, 1:12:10 AM, you wrote:

 On Tue, May 22, 2007 at 12:56:08AM +0300, Ghirai wrote:
  Hello list,
  
  I'm running 6.2-RELEASE, SMP, on a
  Fujitsu-Siemens Amilo Pro v3205 (Core Duo).
  
  Everything works fine, except the cpu throttling,
  which makes the fan start quite often.
  
  Is there any way to fix this?
 
  You need to do three things (as root);
 
  1) Load the cpufreq module 'kldload cpufreq'.
  2) Put 'powerd_enable=YES' in your /etc/rc.conf
  2) Start powerd: '/etc/rc.d/powerd start'
 
  Roland
 
 Thanks for the hint.
 
 I did that, but now xorg constantly uses 20-30% CPU.

 That's a lot. Are you doing anything to make it work hard? Such a
 constantly high CPU usage is not normal, IMHO. Unless you're doing
 something wacky like running xearth or xlock on your root window.

 You can try to renice(8) the X server. That might make it less jerky.

 Roland

No, i'm not doing anything at all.

KDE loads up, and after about 10 seconds (of me doing
nothing), xorg starts to use CPU, without any reason
(and no HD activity).

I tried it a couple of times, every time the same.

I renice-ed it, no use.

Are there any alternatives to powerd?

Also checked logs, nothing at all.


Oh, and thanks for your time :)

-- 
Best regards,
Ghirai.

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


Sendmail ignores hosts.allow

2007-05-21 Thread Maxim Khitrov

Hello,

I'm trying to restrict access to sendmail via hosts.allow. Don't need
a firewall, since I just want to block everyone but the localhost from
sending e-mail out. Anyway, it seems that sendmail ignores these
settings even though it was compiled with TCPWRAPPERS. I added
sendmail : all : deny as the very first line in hosts.allow, just to
see if it will let me connect from anywhere. It does - not just from
localhost, but from all remote locations as well. I have no problems
connecting and sending e-mail. Am I missing something?

I tested the same setup with sshd, and that works properly. After a
quick search on google it seems that I'm not the only one with this
problem, but I couldn't find any solution to this. Any help is greatly
appreciated.

- Maxim Khitrov
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: disk too big to mount

2007-05-21 Thread youshi10

On Mon, 21 May 2007, Reid Linnemann wrote:


Written by Yanko Sanchez on 05/21/07 14:03

Thanks for anyone that  has helped so far, I'm a freebsd newbie coming
from linux.

So I basically re-compiled my kernel with the LARGE option on and it
seems to mount the drive fine. I encountered another problem tho.

Before I recompiled the kernel I updated the ports tree, basically cos
I just wanted to see how it was done and it seemed to be successful.
The problem is that after I recompiled the kernel a bunch of stuff
stoped working.  I have the server setup as a router and my to Network
cards isn't showing up anymore (both being the same type of cards, I
use to have rl0 and rl1) so It isn't routing anymore, and now im
getting a bunch of DHCPREQUEST messages on startup which I wasn't
getting before. And other errors saying that my network card isn't
configured. I checked /etc/rc.conf and the lines for ifconfig are
still in there...

Did I upgrade the kernel sources by doing an upgrade to the ports?
That would make sense, but what bugs me is that I copied the same
kernel config and just added the MSDOSFS_LARGE option once I booted up
I got the errors mentioned above. Shouldn't it have stayed pretty much
the same? I'm just trying to get a better understand if what happened
to that I don't make the same mistake.





1. How did you upgrade your ports tree?
2. How did you recompile the kernel?
3. What does uname -a report?
4. what is the output of ifconfig -a?


Please change the subject name if your query differs from the original question.

Thanks,
-Garrett

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


Re: Build with debug symbols

2007-05-21 Thread youshi10

On Mon, 21 May 2007, Gerard wrote:


On Monday May 21, 2007 at 04:12:15 (PM) Giorgos Keramidas wrote:



If I build a port with debugging information; i.e.
'make -g', is that debugging information stripped out
when the program is installed? If so, is there anyway
to prevent this from happening?

I have been attempting to build 'claws-mail' with
debugging information; however, when I run the program
under 'gdb' that information does not appear to be
present. I heard that there was a 'STRIP' flag I could
set; however, I cannot find any definitive information
regarding it.


# env DEBUG_FLAGS='-g' CFLAGS='' ...

The DEBUG_FLAGS option turns off symbol stripping.


Would that also work if DEBUG_FLAGS='g' were placed in the
/etc/make.conf file or does it have to be placed in the environment prior
to building the port. I assume that the '-g' has to still be placed on
the 'make' command when doing the actual build.


--
Gerard


There's another flag in make.conf or pkgtools.conf that controls whether or not 
debug symbols are stripped post install, but I don't remember it right offhand. 
It should be in the relevant file's manpage though..
-Garrett

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


Re: notebook cpu throttling

2007-05-21 Thread Roland Smith
On Tue, May 22, 2007 at 01:23:02AM +0300, Ghirai wrote:
  That's a lot. Are you doing anything to make it work hard? Such a
  constantly high CPU usage is not normal, IMHO. Unless you're doing
  something wacky like running xearth or xlock on your root window.
 
  You can try to renice(8) the X server. That might make it less jerky.

 No, i'm not doing anything at all.
 
 KDE loads up, and after about 10 seconds (of me doing
 nothing), xorg starts to use CPU, without any reason
 (and no HD activity).

Well, KDE isn't exactly a fetherweight. :/

 I tried it a couple of times, every time the same.
 
 I renice-ed it, no use.

It wouldn't help with CPU usage, but it might implrove the jerkiness.

 Are there any alternatives to powerd?

Not that I know of. 

I don't see an obvious connection between powerd and the X server. Maybe
you should ask on the freebsd-x11 list.

Or you can run powerd in the foreground, and test it with several
parameters, especially -i and -r.

Run iostat to see if the time is spent mainly in system or interrupt
mode. If so, use ktrace on the X server for a while, and then use kdump
on the trace file to see what it's been doing.

 Also checked logs, nothing at all.

Bummer.

 Oh, and thanks for your time :)

You're welcome!

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)


pgpb8C2WAMyme.pgp
Description: PGP signature


Re: Build with debug symbols

2007-05-21 Thread Gerard
On Monday May 21, 2007 at 04:12:15 (PM) Giorgos Keramidas wrote:


  If I build a port with debugging information; i.e.
  'make -g', is that debugging information stripped out
  when the program is installed? If so, is there anyway
  to prevent this from happening?
  
  I have been attempting to build 'claws-mail' with
  debugging information; however, when I run the program
  under 'gdb' that information does not appear to be
  present. I heard that there was a 'STRIP' flag I could
  set; however, I cannot find any definitive information
  regarding it.
 
 # env DEBUG_FLAGS='-g' CFLAGS='' ...
 
 The DEBUG_FLAGS option turns off symbol stripping.

Would that also work if DEBUG_FLAGS='g' were placed in the
/etc/make.conf file or does it have to be placed in the environment prior
to building the port. I assume that the '-g' has to still be placed on
the 'make' command when doing the actual build.


-- 
Gerard
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: disk too big to mount

2007-05-21 Thread youshi10

On Mon, 21 May 2007, Yanko Sanchez wrote:


because when the hdd was first formated it was inside of a PowerPC and
we knew that it was going to be on a server but we didn't know of what
kind so we just formated FAT32. I don't really care what the fomrmat
it is, if I could switch it to UFS I'd do it, but I need a hdd as big
as that one to copy the files and then be able to reformat with a new
FS.

On 5/21/07, Garrett Cooper [EMAIL PROTECTED] wrote:

Duane Hill wrote:
 Disreguard my previous response. I didn't see your next response to Ray.
 Sorry.

 On Sun, 20 May 2007, Yanko Sanchez wrote:

 Hello,

 I have a 400GB seagate IDE hdd with backed up data that I need to load
 onto
 a machine running freebsd 6.2

 The drive is formated for fat32 and when I run the command:

 mount -t msdos /dev/ad2s2 /mnt/audio/

 I get the following error:

 mountmsdosfs(): disk too big, sorry

 Is there a solution to this?
 Thanks.

Why on earth would you want to create a 400GB MSDOSFS formatted disk?
MSDOSFS was quick but offered no protection against power outages or
incomplete writes, and was horrible in terms of disk fragmentation..

If you really want MSDOSFS for whatever reason, just break up the disk
into smaller chunks partition-wise (IIRC 100GB chunks are fine).

-Garrett


If by PowerPC you mean MacOSX, it supports UFS formatting as well as MSDOSFS 
formatting.

Some food for thought..

-Garrett

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


Re: Sendmail ignores hosts.allow

2007-05-21 Thread Maxim Khitrov

On 5/21/07, Mikhail Goriachev [EMAIL PROTECTED] wrote:

Maxim Khitrov wrote:
 Hello,

 I'm trying to restrict access to sendmail via hosts.allow. Don't need
 a firewall, since I just want to block everyone but the localhost from
 sending e-mail out. Anyway, it seems that sendmail ignores these
 settings even though it was compiled with TCPWRAPPERS. I added
 sendmail : all : deny as the very first line in hosts.allow, just to
 see if it will let me connect from anywhere. It does - not just from
 localhost, but from all remote locations as well. I have no problems
 connecting and sending e-mail. Am I missing something?

I followed your earlier thread (hopefully this is a related topic). This
is strange. By default, sendmail is disabled. You don't even have to put
anything into rc.conf:

# grep sendmail /etc/defaults/rc.conf

Sendmail listens and accepts local mail only. You can't connect to it
from another machine:

# telnet some.host.tld 25
Trying 1.2.3.4...
telnet: connect to address 1.2.3.4: Connection refused
telnet: Unable to connect to remote host

You must've tweaked something to make it behave differently.

 I tested the same setup with sshd, and that works properly. After a
 quick search on google it seems that I'm not the only one with this
 problem, but I couldn't find any solution to this. Any help is greatly
 appreciated.

Share with us your testing methodology. From previous thread, I
understand that you just want something to submit your local mail (from
daemons, scripts, etc). Then as others already said, a simple alias in
/etc/mail/aliases and executing newaliases is sufficient.


Ok, so here's my current setup. I have sendmail_enable=NO in rc.conf
(same as not having it there I guess), I've modified /etc/mail/aliases
to forward everything sent to root to my gmail account, and I added
sendmail : all : deny as the first line to /etc/hosts.allow while
I'm testing everything. Once I make sure that the deny rule works,
I'll allow access to sendmail only from localhost. This is all on
FreeBSD 6.2, but it's running in a jail, so that might have some
effect.


From my previous thread, sendmail is used only to accept messages sent

by processes running on the server, and send them to real e-mails
specified in /etc/aliases. That part works. However, even though
sendmail_enable is set to NO in rc.conf, sendmail still listens on
port 25, accepts mail from remote hosts, and the hosts.allow rule
doesn't seem to apply. Strange, isn't it? By the way, I just tried
removing sendmail_enable line from rc.conf completely and that had no
effect.

All I do for testing is basically start/restart sendmail, then telnet
to the server from my workstation at home. I get a standard reply, and
can then do the usual HELO, MAIL FROM, RCPT TO, DATA, and so on.
Relaying doesn't work, but sending to and all other aliases works fine
(which in this case is bad).

Think this might be some bug when sendmail is running in a jail? I
haven't modified anything beyond what's mentioned in this e-mail, and
I've checked all the settings. I can definitely connect to the server
from remote hosts despite the rc.conf and hosts.allow configuration.

- Maxim Khitrov
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sendmail ignores hosts.allow

2007-05-21 Thread Mikhail Goriachev
Maxim Khitrov wrote:
 Hello,
 
 I'm trying to restrict access to sendmail via hosts.allow. Don't need
 a firewall, since I just want to block everyone but the localhost from
 sending e-mail out. Anyway, it seems that sendmail ignores these
 settings even though it was compiled with TCPWRAPPERS. I added
 sendmail : all : deny as the very first line in hosts.allow, just to
 see if it will let me connect from anywhere. It does - not just from
 localhost, but from all remote locations as well. I have no problems
 connecting and sending e-mail. Am I missing something?

I followed your earlier thread (hopefully this is a related topic). This
is strange. By default, sendmail is disabled. You don't even have to put
anything into rc.conf:

# grep sendmail /etc/defaults/rc.conf

Sendmail listens and accepts local mail only. You can't connect to it
from another machine:

# telnet some.host.tld 25
Trying 1.2.3.4...
telnet: connect to address 1.2.3.4: Connection refused
telnet: Unable to connect to remote host

You must've tweaked something to make it behave differently.

 I tested the same setup with sshd, and that works properly. After a
 quick search on google it seems that I'm not the only one with this
 problem, but I couldn't find any solution to this. Any help is greatly
 appreciated.

Share with us your testing methodology. From previous thread, I
understand that you just want something to submit your local mail (from
daemons, scripts, etc). Then as others already said, a simple alias in
/etc/mail/aliases and executing newaliases is sufficient.



Regards,
Mikhail.

-- 
Mikhail Goriachev
Webanoide

Telephone: +61 (0)3 62252501
Mobile Phone: +61 (0)4 38255158
E-Mail: [EMAIL PROTECTED]
Web: www.webanoide.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


How to retrieve the list of files to merge by hand

2007-05-21 Thread Andrew Falanga

Hi,

I just upgraded my box here at home last night and I made a little
mistake (fortunately, not one large enough to keep things from
working).  I updated my source tree to 6.2-RELEASE-p4 and did the
make buildworld and make buildkernel.  Then I dropped to single
user mode to do the installs for both.  At the end, as per some
instructions from a friend, I did mergemaster -i -a.  At the end was
quite a long list of files left for me to merge by hand.  This was
actually a surprise to me because I'd updated two boxes at work
earlier in the week and the largest number of file to update by hand
was only 2.

At any rate, because I was in single user mode, and hadn't started
mergemaster with something like, mergemaster -i -a | tee
merge.output or something (that's the small mistake that won't happen
again), I don't have the list of files to merge.

At any rate, with exception to rc.conf and /etc/ttys, I haven't
modified anything the system uses anyway.  Is there a way of
retrieving this list?  As a side note, in an effort to get this list
(via a pipe command such as the one above), I reran the mergemaster
command, but got a much different set of results.  Did I completely
eliminate any chance I had at getting them?

Thanks,
Andy
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


HP 2605 printer and FreeBSD.

2007-05-21 Thread luisaia
Hi,
I would want to buy a color laser printer. The HP laserjet 2605 works well on 
Linux with CUPS.
On FreBSD it is the same?
Thanks.
Luciano. 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sendmail ignores hosts.allow

2007-05-21 Thread doug



On Mon, 21 May 2007, Maxim Khitrov wrote:


On 5/21/07, Mikhail Goriachev [EMAIL PROTECTED] wrote:

Maxim Khitrov wrote:
 Hello,

 I'm trying to restrict access to sendmail via hosts.allow. Don't need
 a firewall, since I just want to block everyone but the localhost from
 sending e-mail out. Anyway, it seems that sendmail ignores these
 settings even though it was compiled with TCPWRAPPERS. I added
 sendmail : all : deny as the very first line in hosts.allow, just to
 see if it will let me connect from anywhere. It does - not just from
 localhost, but from all remote locations as well. I have no problems
 connecting and sending e-mail. Am I missing something?

I followed your earlier thread (hopefully this is a related topic). This
is strange. By default, sendmail is disabled. You don't even have to put
anything into rc.conf:

# grep sendmail /etc/defaults/rc.conf

Sendmail listens and accepts local mail only. You can't connect to it
from another machine:

# telnet some.host.tld 25
Trying 1.2.3.4...
telnet: connect to address 1.2.3.4: Connection refused
telnet: Unable to connect to remote host

You must've tweaked something to make it behave differently.

 I tested the same setup with sshd, and that works properly. After a
 quick search on google it seems that I'm not the only one with this
 problem, but I couldn't find any solution to this. Any help is greatly
 appreciated.

Share with us your testing methodology. From previous thread, I
understand that you just want something to submit your local mail (from
daemons, scripts, etc). Then as others already said, a simple alias in
/etc/mail/aliases and executing newaliases is sufficient.


Ok, so here's my current setup. I have sendmail_enable=NO in rc.conf
(same as not having it there I guess), I've modified /etc/mail/aliases
to forward everything sent to root to my gmail account, and I added
sendmail : all : deny as the first line to /etc/hosts.allow while
I'm testing everything. Once I make sure that the deny rule works,
I'll allow access to sendmail only from localhost. This is all on
FreeBSD 6.2, but it's running in a jail, so that might have some
effect.


sendmail_enable=NO means there is no sendmail daemon running. You can verify 
this via ps -aux | grep sendmail. Remove that statement. Without a reboot you 
can start sendmail by cd /etc/mail;   make start.


Unless you have changed the freebsd.mc file and done a 'make install' I do not 
believe sendmail will accept from any connections except except on 127.0.0.1 
(localhost). This is what you want I think. If that's it as others have said, 
there is no reason to use the hosts.allow mechanism. This is independent of the 
jail environment.


  sockstat|grep sendmail

and you can see whats going on.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: freebsd broken after kernel re-compile.

2007-05-21 Thread Yanko Sanchez

@youshi10:
yeah, I'm aware that MacOSX supports for unix, but at the time that we
transfered the data to the hdd we didn't know which server was gonna
be running the hdd... Fat32 was the only FS that we know would be
compatible with any OS (but we didn't know of the size limit) so if
the server had been a Windows 2003 server, I don't think I would have
had any chance of opening that FS (unless 3rd party software if there
is any)


Anyways, here is the info that Reid asked for.

1: I updated the ports tree following the instructions of freebsd wiki

2:  I recompiled the kernel following the instructions of freebsd wiki:
cp /usr/src/sys/i386/conf/BASTION /usr/src/sys/i386/conf/BASTION2
vim /usr/src/sys/i386/conf/BASTION2
added option MSDOSFS_LARGE

cd /usr/src
make buildkernel KERNCONF=BASTION2

make installkernel KERNCONF=BASTION2
reboot

3: uname -a:
FreeBSD bastion 6.2-STABLE FreeBSD 6.2-STABLE #2L Mon May 21 00:30:39
PDT 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/BASTION2  i386

4: iffconfig -a:
bastion# ifconfig -a

rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=8VLAN_MTU
atalk 65280.205 range 0-65534 phase 2 broadcast 0.255
ether 00:e0:18:8d:10:8f
media: Ethernet autoselect (100baseTX full-duplex)
status: active
fwe0: flags=108802BROADCAST,SIMPLEX,MULTICAST,NEEDSGIANT mtu 1500
options=8VLAN_MTU
ether 0a:00:46:29:6f:02
ch 1 dma -1
plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT mtu 1500
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff00
atalk 0.0 range 0-0 phase 2

Also, I think my network card that shows up took the place of the
otherone, in other words, rl1 is now rl0 and rl1 is gone... I don't
know if that just changed cos it can't find the other network card.


On 5/21/07, Reid Linnemann  [EMAIL PROTECTED] wrote:

Written by Yanko Sanchez on 05/21/07 14:03
 Thanks for anyone that  has helped so far, I'm a freebsd newbie coming
 from linux.


  So I basically re-compiled my kernel with the LARGE option on and it

 seems to mount the drive fine. I encountered another problem tho.

 Before I recompiled the kernel I updated the ports tree, basically cos
 I just wanted to see how it was done and it seemed to be successful.
 The problem is that after I recompiled the kernel a bunch of stuff
 stoped working.  I have the server setup as a router and my to Network
 cards isn't showing up anymore (both being the same type of cards, I
 use to have rl0 and rl1) so It isn't routing anymore, and now im
 getting a bunch of DHCPREQUEST messages on startup which I wasn't
 getting before. And other errors saying that my network card isn't
 configured. I checked /etc/rc.conf and the lines for ifconfig are
 still in there...

 Did I upgrade the kernel sources by doing an upgrade to the ports?
 That would make sense, but what bugs me is that I copied the same
 kernel config and just added the MSDOSFS_LARGE option once I booted up
 I got the errors mentioned above. Shouldn't it have stayed pretty much
 the same? I'm just trying to get a better understand if what happened
 to that I don't make the same mistake.




1. How did you upgrade your ports tree?
2. How did you recompile the kernel?
3. What does uname -a report?
4. what is the output of ifconfig -a?


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


Re: Sendmail ignores hosts.allow

2007-05-21 Thread Maxim Khitrov

On 5/21/07, doug [EMAIL PROTECTED] wrote:

sendmail_enable=NO means there is no sendmail daemon running. You can verify
this via ps -aux | grep sendmail. Remove that statement. Without a reboot you
can start sendmail by cd /etc/mail;   make start.

Unless you have changed the freebsd.mc file and done a 'make install' I do not
believe sendmail will accept from any connections except except on 127.0.0.1
(localhost). This is what you want I think. If that's it as others have said,
there is no reason to use the hosts.allow mechanism. This is independent of the
jail environment.

   sockstat|grep sendmail

and you can see whats going on.



Not the case for me, having sendmail_enable=NO and not having it in
rc.conf results in the same behavior. Here's sendmail rcvar output:

Without sendmail_enable in rc.conf:
# sendmail
$sendmail_enable=NO
# sendmail_submit
$sendmail_submit_enable=YES
# sendmail_clientmqueue
$sendmail_msp_queue_enable=YES

With sendmail_enable=NO:
# sendmail
$sendmail_enable=NO
# sendmail_submit
$sendmail_submit_enable=YES
# sendmail_clientmqueue
$sendmail_msp_queue_enable=YES

With sendmail_enable=NONE:
# sendmail
$sendmail_enable=NO
# sendmail_clientmqueue
$sendmail_msp_queue_enable=NO

So the first two are identical (I don't see why they wouldn't be). As
for the sendmail daemon, here's what grep tells me after the server is
started:

[EMAIL PROTECTED] [/]# ps -aux | grep sendmail
smmsp 16473  0.0  0.1  3384  2276  ??  IsJ   4:47PM   0:00.00
sendmail: Queue [EMAIL PROTECTED]:30:00 for /var/spool/clientmqueue (sendmail
root  20951  0.0  0.1  3484  2480  ??  SsJ   5:37PM   0:00.00
sendmail: accepting connections (sendmail)
root  21303  0.0  0.0  1592   912  pn  S+J   5:37PM   0:00.00 grep sendmail

And here's sockstat output:

[EMAIL PROTECTED] [/]# sockstat -l4
USER COMMANDPID   FD PROTO  LOCAL ADDRESS FOREIGN ADDRESS
root sendmail   20951 4  tcp4   ip:25   *:*
root syslogd45182 6  udp4   ip:514  *:*
root sshd   60371 3  tcp4   ip:22   *:*

As you can see, sendmail is happily listening for all incoming
connections with the NO setting. If it would only listen on
localhost, then that would be the end of my problems. However,
remember that the jail environment doesn't have localhost. In other
words 127.0.0.1 does not refer to the jail. Loopback for me is the
server's wan ip (hey that rhymes :), which is why I think that not
having 127.0.0.1 may be confusing to sendmail.

- Max
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sendmail ignores hosts.allow

2007-05-21 Thread Mikhail Goriachev
Maxim Khitrov wrote:
 On 5/21/07, Mikhail Goriachev [EMAIL PROTECTED] wrote:
 Maxim Khitrov wrote:
 Hello,

 I'm trying to restrict access to sendmail via hosts.allow. Don't need
 a firewall, since I just want to block everyone but the localhost from
 sending e-mail out. Anyway, it seems that sendmail ignores these
 settings even though it was compiled with TCPWRAPPERS. I added
 sendmail : all : deny as the very first line in hosts.allow, just to
 see if it will let me connect from anywhere. It does - not just from
 localhost, but from all remote locations as well. I have no problems
 connecting and sending e-mail. Am I missing something?
 I followed your earlier thread (hopefully this is a related topic). This
 is strange. By default, sendmail is disabled. You don't even have to put
 anything into rc.conf:

 # grep sendmail /etc/defaults/rc.conf

 Sendmail listens and accepts local mail only. You can't connect to it
 from another machine:

 # telnet some.host.tld 25
 Trying 1.2.3.4...
 telnet: connect to address 1.2.3.4: Connection refused
 telnet: Unable to connect to remote host

 You must've tweaked something to make it behave differently.

 I tested the same setup with sshd, and that works properly. After a
 quick search on google it seems that I'm not the only one with this
 problem, but I couldn't find any solution to this. Any help is greatly
 appreciated.
 Share with us your testing methodology. From previous thread, I
 understand that you just want something to submit your local mail (from
 daemons, scripts, etc). Then as others already said, a simple alias in
 /etc/mail/aliases and executing newaliases is sufficient.
 
 Ok, so here's my current setup. I have sendmail_enable=NO in rc.conf
 (same as not having it there I guess), I've modified /etc/mail/aliases
 to forward everything sent to root to my gmail account, and I added
 sendmail : all : deny as the first line to /etc/hosts.allow while
 I'm testing everything. Once I make sure that the deny rule works,
 I'll allow access to sendmail only from localhost. This is all on
 FreeBSD 6.2, but it's running in a jail, so that might have some
 effect.
 
From my previous thread, sendmail is used only to accept messages sent
 by processes running on the server, and send them to real e-mails
 specified in /etc/aliases. That part works. However, even though
 sendmail_enable is set to NO in rc.conf, sendmail still listens on
 port 25, accepts mail from remote hosts, and the hosts.allow rule
 doesn't seem to apply. Strange, isn't it? By the way, I just tried
 removing sendmail_enable line from rc.conf completely and that had no
 effect.
 
 All I do for testing is basically start/restart sendmail, then telnet
 to the server from my workstation at home. I get a standard reply, and
 can then do the usual HELO, MAIL FROM, RCPT TO, DATA, and so on.
 Relaying doesn't work, but sending to and all other aliases works fine
 (which in this case is bad).
 
 Think this might be some bug when sendmail is running in a jail? I
 haven't modified anything beyond what's mentioned in this e-mail, and
 I've checked all the settings. I can definitely connect to the server
 from remote hosts despite the rc.conf and hosts.allow configuration.

This is a different story now. On your host machine (as in jails' host),
sendmail binds to localhost and never responds to outside world. This is
expected. However, sendmail in a jail, binds to jail's IP address and
that is why you can talk to it from outside.

Run this on your host:

# sockstat -4l | grep sendmail

The output should look like this:

root sendmail   1624  4  tcp4   1.2.3.5:25*:*
root sendmail   1624  4  tcp4   1.2.3.4:25*:*
root sendmail   1624  4  tcp4   1.2.3.3:25*:*
root sendmail   1624  4  tcp4   1.2.3.2:25*:*
root sendmail   1208  3  tcp4   127.0.0.1:25  *:*

The first four are jails. The last one is host's sendmail being disabled.


I'd suggest using a firewall to protect your jails instead of trying to
completely disable sendmails.


Regards,
Mikhail.

-- 
Mikhail Goriachev
Webanoide

Telephone: +61 (0)3 62252501
Mobile Phone: +61 (0)4 38255158
E-Mail: [EMAIL PROTECTED]
Web: www.webanoide.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sendmail ignores hosts.allow

2007-05-21 Thread Mikhail Goriachev
doug wrote:
 
 On Mon, 21 May 2007, Maxim Khitrov wrote:
 
 On 5/21/07, Mikhail Goriachev [EMAIL PROTECTED] wrote:
 Maxim Khitrov wrote:
 Hello,

 I'm trying to restrict access to sendmail via hosts.allow. Don't need
 a firewall, since I just want to block everyone but the localhost from
 sending e-mail out. Anyway, it seems that sendmail ignores these
 settings even though it was compiled with TCPWRAPPERS. I added
 sendmail : all : deny as the very first line in hosts.allow, just to
 see if it will let me connect from anywhere. It does - not just from
 localhost, but from all remote locations as well. I have no problems
 connecting and sending e-mail. Am I missing something?
 I followed your earlier thread (hopefully this is a related topic). This
 is strange. By default, sendmail is disabled. You don't even have to put
 anything into rc.conf:

 # grep sendmail /etc/defaults/rc.conf

 Sendmail listens and accepts local mail only. You can't connect to it
 from another machine:

 # telnet some.host.tld 25
 Trying 1.2.3.4...
 telnet: connect to address 1.2.3.4: Connection refused
 telnet: Unable to connect to remote host

 You must've tweaked something to make it behave differently.

 I tested the same setup with sshd, and that works properly. After a
 quick search on google it seems that I'm not the only one with this
 problem, but I couldn't find any solution to this. Any help is greatly
 appreciated.
 Share with us your testing methodology. From previous thread, I
 understand that you just want something to submit your local mail (from
 daemons, scripts, etc). Then as others already said, a simple alias in
 /etc/mail/aliases and executing newaliases is sufficient.
 Ok, so here's my current setup. I have sendmail_enable=NO in rc.conf
 (same as not having it there I guess), I've modified /etc/mail/aliases
 to forward everything sent to root to my gmail account, and I added
 sendmail : all : deny as the first line to /etc/hosts.allow while
 I'm testing everything. Once I make sure that the deny rule works,
 I'll allow access to sendmail only from localhost. This is all on
 FreeBSD 6.2, but it's running in a jail, so that might have some
 effect.
 
 sendmail_enable=NO means there is no sendmail daemon running. You can 
 verify 
 this via ps -aux | grep sendmail. Remove that statement. Without a reboot 
 you 
 can start sendmail by cd /etc/mail;   make start.


sendmail_enable=NO tells sendmail to bind to localhost only (hence it
becomes unreachable from the outside):

# sockstat -4l | grep sendmail
root sendmail   42310 4  tcp4   127.0.0.1:25  *:*

sendmail_enable=YES starts/adds the submit capability:

# sockstat -4l | grep sendmail
root sendmail   42262 4  tcp4   *:25  *:*
root sendmail   42262 5  tcp4   *:587 *:*


In both cases, executing ps -aux shows sendmail daemon is running.


The first knob is the default as per /etc/defaults/rc.conf



 Unless you have changed the freebsd.mc file and done a 'make install' I do 
 not 
 believe sendmail will accept from any connections except except on 127.0.0.1 
 (localhost). This is what you want I think. If that's it as others have said, 
 there is no reason to use the hosts.allow mechanism. This is independent of 
 the 
 jail environment.
 
sockstat|grep sendmail
 
 and you can see whats going on.



-- 
Mikhail Goriachev
Webanoide

Telephone: +61 (0)3 62252501
Mobile Phone: +61 (0)4 38255158
E-Mail: [EMAIL PROTECTED]
Web: www.webanoide.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sendmail ignores hosts.allow

2007-05-21 Thread Mikhail Goriachev
Maxim Khitrov wrote:
 On 5/21/07, doug [EMAIL PROTECTED] wrote:
 sendmail_enable=NO means there is no sendmail daemon running. You can 
 verify
 this via ps -aux | grep sendmail. Remove that statement. Without a reboot 
 you
 can start sendmail by cd /etc/mail;   make start.

 Unless you have changed the freebsd.mc file and done a 'make install' I do 
 not
 believe sendmail will accept from any connections except except on 127.0.0.1
 (localhost). This is what you want I think. If that's it as others have said,
 there is no reason to use the hosts.allow mechanism. This is independent of 
 the
 jail environment.

sockstat|grep sendmail

 and you can see whats going on.

 
 Not the case for me, having sendmail_enable=NO and not having it in
 rc.conf results in the same behavior. Here's sendmail rcvar output:


Same behaviour because sendmail_enable=NO is already present in
/etc/defaults/rc.conf so putting in /etc/rc.conf or removing it from
there is the same thing.


 Without sendmail_enable in rc.conf:
 # sendmail
 $sendmail_enable=NO
 # sendmail_submit
 $sendmail_submit_enable=YES
 # sendmail_clientmqueue
 $sendmail_msp_queue_enable=YES
 
 With sendmail_enable=NO:
 # sendmail
 $sendmail_enable=NO
 # sendmail_submit
 $sendmail_submit_enable=YES
 # sendmail_clientmqueue
 $sendmail_msp_queue_enable=YES
 
 With sendmail_enable=NONE:
 # sendmail
 $sendmail_enable=NO
 # sendmail_clientmqueue
 $sendmail_msp_queue_enable=NO
 
 So the first two are identical (I don't see why they wouldn't be). As
 for the sendmail daemon, here's what grep tells me after the server is
 started:
 
 [EMAIL PROTECTED] [/]# ps -aux | grep sendmail
 smmsp 16473  0.0  0.1  3384  2276  ??  IsJ   4:47PM   0:00.00
 sendmail: Queue [EMAIL PROTECTED]:30:00 for /var/spool/clientmqueue (sendmail
 root  20951  0.0  0.1  3484  2480  ??  SsJ   5:37PM   0:00.00
 sendmail: accepting connections (sendmail)
 root  21303  0.0  0.0  1592   912  pn  S+J   5:37PM   0:00.00 grep sendmail
 
 And here's sockstat output:
 
 [EMAIL PROTECTED] [/]# sockstat -l4
 USER COMMANDPID   FD PROTO  LOCAL ADDRESS FOREIGN ADDRESS
 root sendmail   20951 4  tcp4   ip:25   *:*
 root syslogd45182 6  udp4   ip:514  *:*
 root sshd   60371 3  tcp4   ip:22   *:*
 
 As you can see, sendmail is happily listening for all incoming
 connections with the NO setting. If it would only listen on
 localhost, then that would be the end of my problems. However,
 remember that the jail environment doesn't have localhost. In other
 words 127.0.0.1 does not refer to the jail. Loopback for me is the
 server's wan ip (hey that rhymes :), which is why I think that not
 having 127.0.0.1 may be confusing to sendmail.


There you go. You just answered yourself.


-- 
Mikhail Goriachev
Webanoide

Telephone: +61 (0)3 62252501
Mobile Phone: +61 (0)4 38255158
E-Mail: [EMAIL PROTECTED]
Web: www.webanoide.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sendmail ignores hosts.allow

2007-05-21 Thread Maxim Khitrov

On 5/21/07, Mikhail Goriachev [EMAIL PROTECTED] wrote:

Maxim Khitrov wrote:
 On 5/21/07, Mikhail Goriachev [EMAIL PROTECTED] wrote:
 Maxim Khitrov wrote:
 Hello,

 I'm trying to restrict access to sendmail via hosts.allow. Don't need
 a firewall, since I just want to block everyone but the localhost from
 sending e-mail out. Anyway, it seems that sendmail ignores these
 settings even though it was compiled with TCPWRAPPERS. I added
 sendmail : all : deny as the very first line in hosts.allow, just to
 see if it will let me connect from anywhere. It does - not just from
 localhost, but from all remote locations as well. I have no problems
 connecting and sending e-mail. Am I missing something?
 I followed your earlier thread (hopefully this is a related topic). This
 is strange. By default, sendmail is disabled. You don't even have to put
 anything into rc.conf:

 # grep sendmail /etc/defaults/rc.conf

 Sendmail listens and accepts local mail only. You can't connect to it
 from another machine:

 # telnet some.host.tld 25
 Trying 1.2.3.4...
 telnet: connect to address 1.2.3.4: Connection refused
 telnet: Unable to connect to remote host

 You must've tweaked something to make it behave differently.

 I tested the same setup with sshd, and that works properly. After a
 quick search on google it seems that I'm not the only one with this
 problem, but I couldn't find any solution to this. Any help is greatly
 appreciated.
 Share with us your testing methodology. From previous thread, I
 understand that you just want something to submit your local mail (from
 daemons, scripts, etc). Then as others already said, a simple alias in
 /etc/mail/aliases and executing newaliases is sufficient.

 Ok, so here's my current setup. I have sendmail_enable=NO in rc.conf
 (same as not having it there I guess), I've modified /etc/mail/aliases
 to forward everything sent to root to my gmail account, and I added
 sendmail : all : deny as the first line to /etc/hosts.allow while
 I'm testing everything. Once I make sure that the deny rule works,
 I'll allow access to sendmail only from localhost. This is all on
 FreeBSD 6.2, but it's running in a jail, so that might have some
 effect.

From my previous thread, sendmail is used only to accept messages sent
 by processes running on the server, and send them to real e-mails
 specified in /etc/aliases. That part works. However, even though
 sendmail_enable is set to NO in rc.conf, sendmail still listens on
 port 25, accepts mail from remote hosts, and the hosts.allow rule
 doesn't seem to apply. Strange, isn't it? By the way, I just tried
 removing sendmail_enable line from rc.conf completely and that had no
 effect.

 All I do for testing is basically start/restart sendmail, then telnet
 to the server from my workstation at home. I get a standard reply, and
 can then do the usual HELO, MAIL FROM, RCPT TO, DATA, and so on.
 Relaying doesn't work, but sending to and all other aliases works fine
 (which in this case is bad).

 Think this might be some bug when sendmail is running in a jail? I
 haven't modified anything beyond what's mentioned in this e-mail, and
 I've checked all the settings. I can definitely connect to the server
 from remote hosts despite the rc.conf and hosts.allow configuration.

This is a different story now. On your host machine (as in jails' host),
sendmail binds to localhost and never responds to outside world. This is
expected. However, sendmail in a jail, binds to jail's IP address and
that is why you can talk to it from outside.

Run this on your host:

# sockstat -4l | grep sendmail

The output should look like this:

root sendmail   1624  4  tcp4   1.2.3.5:25*:*
root sendmail   1624  4  tcp4   1.2.3.4:25*:*
root sendmail   1624  4  tcp4   1.2.3.3:25*:*
root sendmail   1624  4  tcp4   1.2.3.2:25*:*
root sendmail   1208  3  tcp4   127.0.0.1:25  *:*

The first four are jails. The last one is host's sendmail being disabled.


I'd suggest using a firewall to protect your jails instead of trying to
completely disable sendmails.


I cna't run that on my host, because I only have access to the jail
(I'm paying for a vps server with another host). That makes sense
however, I had a feeling that it was jail-related. But what about the
hosts.allow problem? I can run a firewall, of course, but hosts.allow
seems like a more efficient way of doing the same thing. I've already
got it configured and working with sshd, so I see no reason why
sendmail doesn't want to work the same way.

- Max
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


xorg 7.2 start problem

2007-05-21 Thread Andriy Babiy
Hi everybody,

To upgrade xorg, I followed the procedure described in 
the /usr/ports/UPDATING file. The build went smooth, without any build 
errors. At the merge step, the script complained about mime.info files, so 
I made backup copy of those and deleted the duplicates.
But after reboot I cannot start X. On that machine, I use xfce4. When I 
issue startxfce4, I receive messages that modules kbd, mouse, and mga 
haven't been found.
During the build I didn't see any errors; presumably, it's a configuration 
error. Could you advise me on where I should look for an error?
It's i386 machine, with 6.2 stable. The Xorg.0.log file is enclosed. Errors 
are at the end pf the file.
Thank you very much in advance!

Andriy


_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/S01060040ca14628b:0
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6

X Window System Version 7.2.0
Release Date: 22 January 2007
X Protocol Version 11, Revision 0, Release 7.2
Build Operating System: FreeBSD 6.2-STABLE i386 
Current Operating System: FreeBSD S01060040ca14628b 6.2-STABLE FreeBSD 
6.2-STABLE #0: Fri May 11 03:30:47 PDT 2007 
root@:/usr/obj/usr/src/sys/HP386 i386
Build Date: 20 May 2007
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: /var/log/Xorg.0.log, Time: Mon May 21 16:42:21 2007
(==) Using config file: /etc/X11/xorg.conf
(==) ServerLayout Simple Layout
(**) |--Screen Screen 1 (0)
(**) |   |--Monitor HP-D8896
(**) |   |--Device Matrox
(**) |--Input Device Mouse1
(**) |--Input Device Keyboard1
(WW) `fonts.dir' not found (or not valid) 
in /usr/local/lib/X11/fonts/local/.
Entry deleted from font path.
(Run 'mkfontdir' on /usr/local/lib/X11/fonts/local/).
(**) FontPath set to:
/usr/local/lib/X11/fonts/misc/,
/usr/local/lib/X11/fonts/TTF/,
/usr/local/lib/X11/fonts/OTF,
/usr/local/lib/X11/fonts/Type1/,
/usr/local/lib/X11/fonts/100dpi/,
/usr/local/lib/X11/fonts/75dpi/
(==) RgbPath set to /usr/local/share/X11/rgb
(==) ModulePath set to /usr/local/lib/xorg/modules
(II) Loader magic: 0x81c0340
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.3
X.Org Video Driver: 1.1
X.Org XInput driver : 0.7
X.Org Server Extension : 0.3
X.Org Font Renderer : 0.5
(II) Loader running on freebsd
(II) LoadModule: pcidata
(II) Loading /usr/local/lib/xorg/modules//libpcidata.so
(II) Module pcidata: vendor=X.Org Foundation
compiled for 7.2.0, module version = 1.0.0
ABI class: X.Org Video Driver, version 1.1
(--) Using syscons driver with X support (version 2.0)
(--) using VT number 9

(II) PCI: Probing config type using method 1
(II) PCI: Config type is 1
(II) PCI: stages = 0x03, oldVal1 = 0x, mode1Res1 = 0x8000
(II) PCI: PCI scan (all values are in hex)
(II) PCI: 00:00:0: chip 8086,7190 card , rev 03 class 06,00,00 hdr 
00
(II) PCI: 00:01:0: chip 8086,7191 card , rev 03 class 06,04,00 hdr 
01
(II) PCI: 00:04:0: chip 8086,7110 card , rev 02 class 06,01,00 hdr 
80
(II) PCI: 00:04:1: chip 8086,7111 card , rev 01 class 01,01,80 hdr 
00
(II) PCI: 00:04:2: chip 8086,7112 card , rev 01 class 0c,03,00 hdr 
00
(II) PCI: 00:04:3: chip 8086,7113 card , rev 02 class 06,80,00 hdr 
00
(II) PCI: 00:06:0: chip 1013,6003 card 1013,4280 rev 01 class 04,01,00 hdr 
00
(II) PCI: 00:0b:0: chip 10b7,9055 card 10b7,9055 rev 30 class 02,00,00 hdr 
00
(II) PCI: 01:00:0: chip 102b,0521 card 102b,ff00 rev 03 class 03,00,00 hdr 
00
(II) PCI: End of PCI scan
(II) Host-to-PCI bridge:
(II) Bus 0: bridge is at (0:0:0), (0,0,1), BCTRL: 0x0008 (VGA_EN is set)
(II) Bus 0 I/O range:
[0] -1  0   0x - 0x (0x1) IX[B]
(II) Bus 0 non-prefetchable memory range:
[0] -1  0   0x - 0x (0x0) MX[B]
(II) Bus 0 prefetchable memory range:
[0] -1  0   0x - 0x (0x0) MX[B]
(II) PCI-to-PCI bridge:
(II) Bus 1: bridge is at (0:1:0), (0,1,1), BCTRL: 0x008c (VGA_EN is set)
(II) Bus 1 non-prefetchable memory range:
[0] -1  0   0xf420 - 0xf4ff (0xe0) MX[B]
(II) Bus 1 prefetchable memory range:
[0] -1  0   0xf500 - 0xf5ff (0x100) MX[B]
(II) PCI-to-ISA bridge:
(II) Bus -1: bridge is at (0:4:0), (0,-1,-1), BCTRL: 0x0008 (VGA_EN is set)
(--) PCI:*(1:0:0) Matrox Graphics, Inc. MGA G200 AGP rev 3, Mem @ 
0xf500/24, 0xf420/14, 0xf480/23
(II) Addressable bus resource ranges are
[0] -1  0   0x - 0x (0x0) MX[B]
[1] -1  0   0x - 0x (0x1) IX[B]
(II) 

Re: Sendmail ignores hosts.allow

2007-05-21 Thread Mikhail Goriachev
Maxim Khitrov wrote:
 On 5/21/07, Mikhail Goriachev [EMAIL PROTECTED] wrote:
 Maxim Khitrov wrote:
 On 5/21/07, Mikhail Goriachev [EMAIL PROTECTED] wrote:
 Maxim Khitrov wrote:
 Hello,

 I'm trying to restrict access to sendmail via hosts.allow. Don't need
 a firewall, since I just want to block everyone but the localhost from
 sending e-mail out. Anyway, it seems that sendmail ignores these
 settings even though it was compiled with TCPWRAPPERS. I added
 sendmail : all : deny as the very first line in hosts.allow, just to
 see if it will let me connect from anywhere. It does - not just from
 localhost, but from all remote locations as well. I have no problems
 connecting and sending e-mail. Am I missing something?
 I followed your earlier thread (hopefully this is a related topic). This
 is strange. By default, sendmail is disabled. You don't even have to put
 anything into rc.conf:

 # grep sendmail /etc/defaults/rc.conf

 Sendmail listens and accepts local mail only. You can't connect to it
 from another machine:

 # telnet some.host.tld 25
 Trying 1.2.3.4...
 telnet: connect to address 1.2.3.4: Connection refused
 telnet: Unable to connect to remote host

 You must've tweaked something to make it behave differently.

 I tested the same setup with sshd, and that works properly. After a
 quick search on google it seems that I'm not the only one with this
 problem, but I couldn't find any solution to this. Any help is greatly
 appreciated.
 Share with us your testing methodology. From previous thread, I
 understand that you just want something to submit your local mail (from
 daemons, scripts, etc). Then as others already said, a simple alias in
 /etc/mail/aliases and executing newaliases is sufficient.
 Ok, so here's my current setup. I have sendmail_enable=NO in rc.conf
 (same as not having it there I guess), I've modified /etc/mail/aliases
 to forward everything sent to root to my gmail account, and I added
 sendmail : all : deny as the first line to /etc/hosts.allow while
 I'm testing everything. Once I make sure that the deny rule works,
 I'll allow access to sendmail only from localhost. This is all on
 FreeBSD 6.2, but it's running in a jail, so that might have some
 effect.

 From my previous thread, sendmail is used only to accept messages sent
 by processes running on the server, and send them to real e-mails
 specified in /etc/aliases. That part works. However, even though
 sendmail_enable is set to NO in rc.conf, sendmail still listens on
 port 25, accepts mail from remote hosts, and the hosts.allow rule
 doesn't seem to apply. Strange, isn't it? By the way, I just tried
 removing sendmail_enable line from rc.conf completely and that had no
 effect.

 All I do for testing is basically start/restart sendmail, then telnet
 to the server from my workstation at home. I get a standard reply, and
 can then do the usual HELO, MAIL FROM, RCPT TO, DATA, and so on.
 Relaying doesn't work, but sending to and all other aliases works fine
 (which in this case is bad).

 Think this might be some bug when sendmail is running in a jail? I
 haven't modified anything beyond what's mentioned in this e-mail, and
 I've checked all the settings. I can definitely connect to the server
 from remote hosts despite the rc.conf and hosts.allow configuration.
 This is a different story now. On your host machine (as in jails' host),
 sendmail binds to localhost and never responds to outside world. This is
 expected. However, sendmail in a jail, binds to jail's IP address and
 that is why you can talk to it from outside.

 Run this on your host:

 # sockstat -4l | grep sendmail

 The output should look like this:

 root sendmail   1624  4  tcp4   1.2.3.5:25*:*
 root sendmail   1624  4  tcp4   1.2.3.4:25*:*
 root sendmail   1624  4  tcp4   1.2.3.3:25*:*
 root sendmail   1624  4  tcp4   1.2.3.2:25*:*
 root sendmail   1208  3  tcp4   127.0.0.1:25  *:*

 The first four are jails. The last one is host's sendmail being disabled.


 I'd suggest using a firewall to protect your jails instead of trying to
 completely disable sendmails.
 
 I cna't run that on my host, because I only have access to the jail
 (I'm paying for a vps server with another host). That makes sense
 however, I had a feeling that it was jail-related. But what about the
 hosts.allow problem? I can run a firewall, of course, but hosts.allow
 seems like a more efficient way of doing the same thing. I've already
 got it configured and working with sshd, so I see no reason why
 sendmail doesn't want to work the same way.


Oh... right. Can't tell you much about hosts.allow, especially in jails,
but I reckon someone else will.


Good luck!


Regards,
Mikhail.

-- 
Mikhail Goriachev
Webanoide

Telephone: +61 (0)3 62252501
Mobile Phone: +61 (0)4 38255158
E-Mail: [EMAIL PROTECTED]
Web: www.webanoide.org
___
freebsd-questions@freebsd.org mailing list

Re: xorg 7.2 start problem

2007-05-21 Thread Beech Rintoul
On Monday 21 May 2007, Andriy Babiy said:
 Hi everybody,

 To upgrade xorg, I followed the procedure described in
 the /usr/ports/UPDATING file. The build went smooth, without any
 build errors. At the merge step, the script complained about
 mime.info files, so I made backup copy of those and deleted the
 duplicates.
 But after reboot I cannot start X. On that machine, I use xfce4.
 When I issue startxfce4, I receive messages that modules kbd,
 mouse, and mga haven't been found.
 During the build I didn't see any errors; presumably, it's a
 configuration error. Could you advise me on where I should look for
 an error? It's i386 machine, with 6.2 stable. The Xorg.0.log file
 is enclosed. Errors are at the end pf the file.
 Thank you very much in advance!

 Andriy

 
 _XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
 _XSERVTransOpen: transport open failed for
 inet6/S01060040ca14628b:0 _XSERVTransMakeAllCOTSServerListeners:
 failed to open listener for inet6

 X Window System Version 7.2.0
 Release Date: 22 January 2007
 X Protocol Version 11, Revision 0, Release 7.2
 Build Operating System: FreeBSD 6.2-STABLE i386
 Current Operating System: FreeBSD S01060040ca14628b 6.2-STABLE
 FreeBSD 6.2-STABLE #0: Fri May 11 03:30:47 PDT 2007
 root@:/usr/obj/usr/src/sys/HP386 i386
 Build Date: 20 May 2007
   Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
 Module Loader present
 Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
 (==) Log file: /var/log/Xorg.0.log, Time: Mon May 21 16:42:21
 2007 (==) Using config file: /etc/X11/xorg.conf
 (==) ServerLayout Simple Layout
 (**) |--Screen Screen 1 (0)
 (**) |   |--Monitor HP-D8896
 (**) |   |--Device Matrox
 (**) |--Input Device Mouse1
 (**) |--Input Device Keyboard1
 (WW) `fonts.dir' not found (or not valid)
 in /usr/local/lib/X11/fonts/local/.
   Entry deleted from font path.
   (Run 'mkfontdir' on /usr/local/lib/X11/fonts/local/).
 (**) FontPath set to:
   /usr/local/lib/X11/fonts/misc/,
   /usr/local/lib/X11/fonts/TTF/,
   /usr/local/lib/X11/fonts/OTF,
   /usr/local/lib/X11/fonts/Type1/,
   /usr/local/lib/X11/fonts/100dpi/,
   /usr/local/lib/X11/fonts/75dpi/
 (==) RgbPath set to /usr/local/share/X11/rgb
 (==) ModulePath set to /usr/local/lib/xorg/modules
 (II) Loader magic: 0x81c0340
 (II) Module ABI versions:
   X.Org ANSI C Emulation: 0.3
   X.Org Video Driver: 1.1
   X.Org XInput driver : 0.7
   X.Org Server Extension : 0.3
   X.Org Font Renderer : 0.5
 (II) Loader running on freebsd
 (II) LoadModule: pcidata
 (II) Loading /usr/local/lib/xorg/modules//libpcidata.so
 (II) Module pcidata: vendor=X.Org Foundation
   compiled for 7.2.0, module version = 1.0.0
   ABI class: X.Org Video Driver, version 1.1
 (--) Using syscons driver with X support (version 2.0)
 (--) using VT number 9

 (II) PCI: Probing config type using method 1
 (II) PCI: Config type is 1
 (II) PCI: stages = 0x03, oldVal1 = 0x, mode1Res1 =
 0x8000 (II) PCI: PCI scan (all values are in hex)
 (II) PCI: 00:00:0: chip 8086,7190 card , rev 03 class
 06,00,00 hdr 00
 (II) PCI: 00:01:0: chip 8086,7191 card , rev 03 class
 06,04,00 hdr 01
 (II) PCI: 00:04:0: chip 8086,7110 card , rev 02 class
 06,01,00 hdr 80
 (II) PCI: 00:04:1: chip 8086,7111 card , rev 01 class
 01,01,80 hdr 00
 (II) PCI: 00:04:2: chip 8086,7112 card , rev 01 class
 0c,03,00 hdr 00
 (II) PCI: 00:04:3: chip 8086,7113 card , rev 02 class
 06,80,00 hdr 00
 (II) PCI: 00:06:0: chip 1013,6003 card 1013,4280 rev 01 class
 04,01,00 hdr 00
 (II) PCI: 00:0b:0: chip 10b7,9055 card 10b7,9055 rev 30 class
 02,00,00 hdr 00
 (II) PCI: 01:00:0: chip 102b,0521 card 102b,ff00 rev 03 class
 03,00,00 hdr 00
 (II) PCI: End of PCI scan
 (II) Host-to-PCI bridge:
 (II) Bus 0: bridge is at (0:0:0), (0,0,1), BCTRL: 0x0008 (VGA_EN is
 set) (II) Bus 0 I/O range:
   [0] -1  0   0x - 0x (0x1) IX[B]
 (II) Bus 0 non-prefetchable memory range:
   [0] -1  0   0x - 0x (0x0) MX[B]
 (II) Bus 0 prefetchable memory range:
   [0] -1  0   0x - 0x (0x0) MX[B]
 (II) PCI-to-PCI bridge:
 (II) Bus 1: bridge is at (0:1:0), (0,1,1), BCTRL: 0x008c (VGA_EN is
 set) (II) Bus 1 non-prefetchable memory range:
   [0] -1  0   0xf420 - 0xf4ff (0xe0) MX[B]
 (II) Bus 1 prefetchable memory range:
   [0] -1  0   0xf500 - 0xf5ff (0x100) MX[B]
 (II) PCI-to-ISA bridge:
 (II) Bus -1: bridge is at (0:4:0), (0,-1,-1), BCTRL: 0x0008 (VGA_EN
 is set) (--) PCI:*(1:0:0) Matrox Graphics, Inc. MGA G200 AGP rev 3,
 Mem @ 0xf500/24, 0xf420/14, 0xf480/23
 (II) Addressable bus resource ranges are
   [0] -1  0   0x - 0x 

Re: How to retrieve the list of files to merge by hand

2007-05-21 Thread Mikhail Goriachev
Andrew Falanga wrote:
 Hi,
 
 I just upgraded my box here at home last night and I made a little
 mistake (fortunately, not one large enough to keep things from
 working).  I updated my source tree to 6.2-RELEASE-p4 and did the
 make buildworld and make buildkernel.  Then I dropped to single
 user mode to do the installs for both.  At the end, as per some
 instructions from a friend, I did mergemaster -i -a.  At the end was
 quite a long list of files left for me to merge by hand.  This was
 actually a surprise to me because I'd updated two boxes at work
 earlier in the week and the largest number of file to update by hand
 was only 2.
 
 At any rate, because I was in single user mode, and hadn't started
 mergemaster with something like, mergemaster -i -a | tee
 merge.output or something (that's the small mistake that won't happen
 again), I don't have the list of files to merge.
 
 At any rate, with exception to rc.conf and /etc/ttys, I haven't
 modified anything the system uses anyway.  Is there a way of
 retrieving this list?  As a side note, in an effort to get this list
 (via a pipe command such as the one above), I reran the mergemaster
 command, but got a much different set of results.  Did I completely
 eliminate any chance I had at getting them?


Just run mergemaster again:

# cd /usr/src
# mergemaster

That should do it.


Regards,
Mikhail.

-- 
Mikhail Goriachev
Webanoide

Telephone: +61 (0)3 62252501
Mobile Phone: +61 (0)4 38255158
E-Mail: [EMAIL PROTECTED]
Web: www.webanoide.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: xorg 7.2 start problem

2007-05-21 Thread Kris Kennaway
On Mon, May 21, 2007 at 06:23:29PM -0700, Andriy Babiy wrote:
 Hi everybody,
 
 To upgrade xorg, I followed the procedure described in 
 the /usr/ports/UPDATING file. The build went smooth, without any build 
 errors. At the merge step, the script complained about mime.info files, so 
 I made backup copy of those and deleted the duplicates.
 But after reboot I cannot start X. On that machine, I use xfce4. When I 
 issue startxfce4, I receive messages that modules kbd, mouse, and mga 
 haven't been found.
 During the build I didn't see any errors; presumably, it's a configuration 
 error. Could you advise me on where I should look for an error?
 It's i386 machine, with 6.2 stable. The Xorg.0.log file is enclosed. Errors 
 are at the end pf the file.
 Thank you very much in advance!

Hard to guess without the information requested in UPDATING, but it
could be that you don't have the complete xorg installed (i.e. missing
/usr/ports/x11/xorg).

Kris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]