Re: Accessing the complete log (rlog)

2009-02-11 Thread Mel
On Tuesday 10 February 2009 22:13:09 Yann-Gaël Guéhéneuc wrote:

   Is it possible that you CVS server does not support rlog because of
 recursion? Do you think it could be possible to enable rlog?

Easy work-around:
hop over to /usr/share/examples/cvs/cvs-supfile. Read/edit.
Install /usr/ports/net/cvsup-without-gui.
Run cvsup -L2 /path/to/edited/cvs-supfile

cvs log locally, all you want ;)

Space needed:
# du -sh /home/ncvs
3.7G/home/ncvs

(Though I think reading the commitlogs for starters would help a lot. 
Committers are actually providing proper(tm) information there).

-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


reread newsyslog.conf without reboot

2009-02-11 Thread Fbsd1
How do I get the system to reread /etc/newsyslog.conf file with out 
rebooting the system?

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


Re: reread newsyslog.conf without reboot

2009-02-11 Thread Paul Procacci
newsyslog is spawn'd via cron every hour.  It isn't daemonized and 
doesn't require any signals to be sent to any process.


/etc/crontab

~Paul

Fbsd1 wrote:
How do I get the system to reread /etc/newsyslog.conf file with out 
rebooting the system?

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


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


Re: reread newsyslog.conf without reboot

2009-02-11 Thread s.g.
Fbsd1 wrote:
 How do I get the system to reread /etc/newsyslog.conf file with out
 rebooting the system?

/etc/rc.d/newsyslog restart

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


Monaco Anti-Aging Medicine World Congress - March 19-20-21, 2009

2009-02-11 Thread AMWC 2009

  By sending this e-mail we save trees. Thanks for understanding - If
 you cannot see this message, follow this [1]link

   .
   .
   .
   .
   .

  [LogoEMC150.gif]
 .
  World Leading Events in
  GLOBAL AGING MANAGEMENT
 .
EuroMediCom
   Promoting science for tomorrow
 .

 .
 AMWC 2009 - MONACO
  7^th ANTI-AGING MEDICINE WORLD CONGRESS
   Global Anti-Ageing Management
 .
March 19-20-21, 2009
 .
Monte-Carlo, MONACO, Grimaldi Forum
 .
 Early Bird Rate until February 20 - 10 days left!
 .

 [AMWC.gif]
[2]Ver el email en español [3]Afficher le mail en Français 

   .
   .
   .
   .
   .

 .

  EARLY BIRD REGISTRATION

 .
 430 Euros
instead of 520 Euros
 .
Special rate until:
 February 20, 2009
 .
   [4]REGISTER ON LINE
 .
  [5]Download [6]Final[7] Program
 .

 .
   ¡Traducción simultánea en Español! - Traduction simultanée en Français
 !
 .
  Traduzione simultanea in italiano - sinhronnyj perevod po-russki
 .

   .
   Created in 2003, the AMWC is recognized as the largest scientific
   conference and exhibition in the World for Global Anti-Aging
   Management.
   .
   Join the most important scientific International congress in Aesthetic
Anti-aging medicine  Medical Spa!
   .

   _ o Over 3,500 participants
   .
   _ o 6 rooms in parallel
   .
   _ o 300 Leading Companies
   .
   _ o + 250 Speakers
   .
   _ o + 45 Practical Workshops

 .
  Do not miss this exceptional conference
in MONACO in March!
  SEE THE FINAL PROGRAM[8]
  MORE INFORMATION ABOUT AMWC 2009
 .

   All rights reserved
   © o EuroMediCom - 2008

Do not answer to this email, you can SEND A MESSAGE by using this
   [9]CONTACT
 Follow this link to [10]UNSUBSCRIBE your email from our database

   .
   .
   .
   .
   .
   This e-mail is not a spam. We do have your e-mail which we collected
   either after your registration on our website, or during an exchange
   of e-mails with one of our associates. We do not communicate your
   e-mail and we inform your that you can oppose to appear in our
   broadcasting list. According to the article 34 of the IT and
   liberties of January 6, 1978, you can ask at any time to access, to
   make rectify or delete your personal information by contacting us.

   ---

References

   Visible links
   1. 
http://ks35551.kimsufi.com/oempro/link.php?URL=aHR0cDovL3d3dy5ldXJvbWVkaWNvbS5jb20vRW1haWxpbmdzL0FBV0MvQU1XQzA5LTA5MDIwOS5odG1sName=EncryptedMemberID=MjYyOTAxCampaignID=56CampaignStatisticsID=210Demo=0email=freebsd-questi...@freebsd.org
   2. 
http://ks35551.kimsufi.com/oempro/link.php?URL=aHR0cDovL3d3dy5ldXJvbWVkaWNvbS5jb20vRW1haWxpbmdzL0FBV0MvQU1XQzA5LTA5MDIwOUVTLmh0bWw%3DName=EncryptedMemberID=MjYyOTAxCampaignID=56CampaignStatisticsID=210Demo=0email=freebsd-questi...@freebsd.org
   3. 
http://ks35551.kimsufi.com/oempro/link.php?URL=aHR0cDovL3d3dy5ldXJvbWVkaWNvbS5jb20vRW1haWxpbmdzL0FBV0MvQU1XQzA5LTA5MDIwOUZSLmh0bWw%3DName=EncryptedMemberID=MjYyOTAxCampaignID=56CampaignStatisticsID=210Demo=0email=freebsd-questi...@freebsd.org
   4. 
http://ks35551.kimsufi.com/oempro/link.php?URL=aHR0cDovL3d3dy5ldXJvbWVkaWNvbS5jb20vaW5kZXgucGhwP3J1Yj02JmFtcDtudW09NTA%3DName=EncryptedMemberID=MjYyOTAxCampaignID=56CampaignStatisticsID=210Demo=0email=freebsd-questi...@freebsd.org
   5. 
http://ks35551.kimsufi.com/oempro/link.php?URL=aHR0cDovL3d3dy5ldXJvbWVkaWNvbS5jb20vQU1XQzIwMDkucGRmName=EncryptedMemberID=MjYyOTAxCampaignID=56CampaignStatisticsID=210Demo=0email=freebsd-questi...@freebsd.org
   6. 

Re: reread newsyslog.conf without reboot

2009-02-11 Thread Wojciech Puchar

you don't have to. it's reread by newsyslog which is usually run by cron

On Sat, 14 Mar 2009, Fbsd1 wrote:

How do I get the system to reread /etc/newsyslog.conf file with out rebooting 
the system?

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



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


Re: reread newsyslog.conf without reboot

2009-02-11 Thread Wojciech Puchar

How do I get the system to reread /etc/newsyslog.conf file with out
rebooting the system?


/etc/rc.d/newsyslog restart

no it's not needed

/etc/rc.d/newsyslog just runs it at start
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: please remove all search results with name Constantin Stalzer

2009-02-11 Thread Don Read
On Tue, 10 Feb 2009 20:54:18 -0500 michael copeland said:

 On Tue, Feb 10, 2009 at 8:52 PM, prad p...@towardsfreedom.com wrote:

 i agree now that i think about it.
 but what about the ipv6?!
 

vi versus Emacs?


-- 
Don Read   donr...@sbcglobal.net
 It's always darkest before the dawn. So if you are going to 
 steal the neighbor's newspaper, that's the time to do it.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: reread newsyslog.conf without reboot

2009-02-11 Thread s.g.
Wojciech Puchar wrote:
 How do I get the system to reread /etc/newsyslog.conf file with out
 rebooting the system?

 /etc/rc.d/newsyslog restart
 no it's not needed

 /etc/rc.d/newsyslog just runs it at start

Right, it won't do. Really sorry about that, guys.

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


Re: mysqld out of memory

2009-02-11 Thread Vincent Hoffman
On 10/2/09 16:58, Ivan Voras wrote:
 Valentin Bud wrote:

   
 I noticed that it is already at 1GB. Now my problem is how can i avoid this
 in the future because
 on that production server mysql is crucial or in case it happens how ca I be
 the first to know
 of that problem?
 

 If you examine the mysql-server script in /usr/local/etc/rc.d you'll see
 it supports the mysql_limits option for rc.conf. Set
 mysql_limits=YES to /etc/rc.conf and the server start with removed limits.

 You can increase maxdsiz (which is different than limits) by adding a
 line to loader.conf, something like:

 kern.maxdsiz=2GB
 kern.dfldsiz=2GB

 Note that you can't increase it to more than 3 GB on i386.

 Another thing is that mysql shouldn't take infinite amounts of memory to
 work. You need to configure entries in my.cnf to match your limits and
 maxdsiz (in steady state + estimated spikes).

   
I'd highly recommend databases/mysqltuner if only because it will tell
you the maximum possible memory your config will use (as well as
sensible config recommendations.)


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


XDM login freezes on boot

2009-02-11 Thread Warren Liddell

AMD64 4gig RAM FreeBSD 7.1 KDE 4.2

I've noticed of late when i have had the misfortune of rebooting this 
machine due to severre storms and blackouts, when it boots everything 
loads fine, xdm initates an i get the standard logon screen, however, 
you cant do anything an the mouse dosent work.  To solve this issue i go 
to console via CTRL + ALT + F1 kill tthe XDM pid an once it comes back 
up, everything is perfectly fine.


Anyone else had this odd occurance ?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Bios chip update suggestions

2009-02-11 Thread Fbsd1

Chris Whitehouse wrote:

Fbsd1 wrote:

I have an desktop manufactured in 2002 by a South Korean company Hyunju.
The company is now out of business.
It's bio's do not allow booting from a usb memory stick.

I want to find an bio's update that adds booting from usb memory stick.

I know the desktop uses AWARD bio's chip and the bio's id string is 
01/08/2002-694T-686-P6VXM2TC-00


All the internet bio's chip update url's found by Google search are 
customized for MS windows.


Suggestions on how or where to purchase the correct bio's chip update?



What do you mean the update url's are customised for windows? The bios 
doesn't know anything about operating system. Most likely you could 
download a dos boot disk image - google, there are plenty around - 
create a bootable floppy and copy your latest bios image and bios update 
program, eg awdflash.exe onto it. Just boot from the floppy and run the 
update.


Just be sure the bios image is really intended for your motherboard and 
don't interrupt the update.


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





What i mean is all the bio update sites have a utility that runs from 
the website to fetch your bio id string info. This utility will not work 
on a non-windows operating system.

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


7.4 - X -configure gives No devices to configure

2009-02-11 Thread Anton Shterenlikht
Upgrade from 7.3 to 7.4 made X unsuable on FBSD 7.1-stable i386.
I followed the UPDATE procedures, had no errors on build,
but on X -configure I get 

No devices to configure.  Configuration failed.

This is a Compaq Armada 1700 laptop, old I know, but 7.3 worked
fine. The graphics is by Chips and Technologies, nothing fancy,
and the driver is xf86-video-chips-1.2.1. The full log is below.

What's going on?

many thanks
anton

***

X.Org X Server 1.5.3
Release Date: 5 November 2008
X Protocol Version 11, Revision 0
Build Operating System: FreeBSD 7.1-STABLE i386 
Current Operating System: FreeBSD mech-aslap33.men.bris.ac.uk 7.1-STABLE 
FreeBSD 7.1-STABLE #0: Sat Jan 31 14:31:50 GMT 2009 
me...@mech-aslap33.men.bris.ac.uk:/usr/obj/usr/src/sys/ARMADA1700 i386
Build Date: 09 February 2009  10:16:23AM
 
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
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: Wed Feb 11 10:15:59 2009
(II) Loader magic: 0x81bede0
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.4
X.Org Video Driver: 4.1
X.Org XInput driver : 2.1
X.Org Server Extension : 1.1
X.Org Font Renderer : 0.6
(II) Loader running on freebsd
(--) Using syscons driver with X support (version 2.0)
(--) using VT number 9

(--) PCI:*(0...@0:8:0) Chips and Technologies F6 HiQVPro rev 168, Mem @ 
0x4000/0, BIOS @ 0x/65536
List of video drivers:
chips
(II) LoadModule: chips

(II) Loading /usr/local/lib/xorg/modules/drivers//chips_drv.so
(II) Module chips: vendor=X.Org Foundation
compiled for 1.5.3, module version = 1.2.1
Module class: X.Org Video Driver
ABI class: X.Org Video Driver, version 4.1
(II) System resource ranges:
[0] -1  0   0x0010 - 0x3fff (0x3ff0) MX[B]E(B)
[1] -1  0   0x000f - 0x000f (0x1) MX[B]
[2] -1  0   0x000c - 0x000e (0x3) MX[B]
[3] -1  0   0x - 0x0009 (0xa) MX[B]
[4] -1  0   0x - 0x (0x1) IX[B]
[5] -1  0   0x - 0x00ff (0x100) IX[B]
(II) Primary Device is: PCI 0...@00:08:0
No devices to configure.  Configuration failed.

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


hald makes cdrom fail

2009-02-11 Thread Anton Shterenlikht
On FBSD 7.1-stable i386 if I start hald from rc.conf with hald_enable=YES
the cdrom fails with

acd0: FAILURE - unknown CMD (0x03) ILLEGAL REQUEST asc=0x24 ascq=0x00 sks=0x40 
0x00 0x00

I submitted a PR on this
http://www.FreeBSD.org/cgi/query-pr.cgi?pr=i386/131426

but it seems the problem is in hal, and not FBSD.

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: XDM login freezes on boot

2009-02-11 Thread Anton Shterenlikht
On Wed, Feb 11, 2009 at 08:32:20PM +1000, Warren Liddell wrote:
 AMD64 4gig RAM FreeBSD 7.1 KDE 4.2
 
 I've noticed of late when i have had the misfortune of rebooting this 
 machine due to severre storms and blackouts, when it boots everything 
 loads fine, xdm initates an i get the standard logon screen, however, 
 you cant do anything an the mouse dosent work.  To solve this issue i go 
 to console via CTRL + ALT + F1 kill tthe XDM pid an once it comes back 
 up, everything is perfectly fine.
 
 Anyone else had this odd occurance ?

no, but what I see is that xdm exits immediately. I just cannot get the
daemon to run. This is on 6.4-stable alpha with xdm-1.1.8_1

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Localized keyboard under Xorg 7.4...

2009-02-11 Thread Peter Harrison
Tuesday, 10 February 2009 at 16:41:37 -0600, Matt said:
 On Tue, Feb 10, 2009 at 3:52 PM, Peter Harrison
 peter.piggy...@virgin.net wrote:
  So I've run the Xorg update. I've come across a number of problems (the 
  biggest of which was needed to rebuilt xfce and losing all my settings).
 
  The one I'm having real difficulty with at the moment is using a UK 
  keyboard layout. Previously I had this line in my xorg.conf under the 
  Keyboard InputDevice section:
 
  Option  XkbLayout gb
 
  This doesn't work any more, so I followed the advice in this post:
 
  http://docs.freebsd.org/cgi/getmsg.cgi?fetch=140908+0+archive/2009/freebsd-questions/20090208.freebsd-questions
 
  to put the relevant entry in /usr/local/etc/hal/fdi/policy/x11-input.fdi
 
  Still no joy. I get these lines in Xorg.0.log:
 
  (II) Loading /usr/local/lib/xorg/modules/input//kbd_drv.so
  (II) Module kbd: vendor=X.Org Foundation
 compiled for 1.5.3, module version = 1.3.2
 Module class: X.Org XInput Driver
 ABI class: X.Org XInput driver, version 2.1
  (**) AT Keyboard: always reports core events
  (**) Option Protocol standard
  (**) AT Keyboard: Protocol: standard
  (**) Option AutoRepeat 500 30
  (**) Option XkbRules xorg
  (**) AT Keyboard: XkbRules: xorg
  (**) Option XkbModel pc105
  (**) AT Keyboard: XkbModel: pc105
  (**) Option XkbLayout us
  (**) AT Keyboard: XkbLayout: us
 
  I'm getting around it at the moment by getting xfce to run this at startup:
 
  setxkbmap gb
 
  But that's hardly an ideal solution. Can anyone suggest a better one?
 
 Have you tried adding the:
 
 Option AutoAddDevices off
 Option AutoEnableDevices off
 
 settings in the ServerFlags section of xorg.conf?  That should disable
 the hal/dbus detections and use just the settings you have spelled out
 in xorg.conf (which shouldn't be too much of an issue if you already
 had a fully configured xorg.conf before the upgrade to 7.4).
 
 Matt


Thanks for this Matt, that was the answer - I hadn't figured how to get hal 
turned off for xorg.

Thanks again,


Peter Harrison.



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


Re: XDM login freezes on boot

2009-02-11 Thread Da Rock
On Wed, 2009-02-11 at 20:32 +1000, Warren Liddell wrote:
 AMD64 4gig RAM FreeBSD 7.1 KDE 4.2
 
 I've noticed of late when i have had the misfortune of rebooting this 
 machine due to severre storms and blackouts, when it boots everything 
 loads fine, xdm initates an i get the standard logon screen, however, 
 you cant do anything an the mouse dosent work.  To solve this issue i go 
 to console via CTRL + ALT + F1 kill tthe XDM pid an once it comes back 
 up, everything is perfectly fine.
 
 Anyone else had this odd occurance ?

Sounds like hald is starting after ttys is initiated. There's another
thread here mentioning that- never read the answer though. Maybe start
hald at the beginning of your rc.conf? Or set a sleep on your tty entry
for x?

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


Re: Bridge setup at boot

2009-02-11 Thread Da Rock
On Wed, 2009-02-11 at 14:34 +1000, Da Rock wrote:
 On Tue, 2009-02-10 at 23:10 -0500, Steve Bertrand wrote:
  Da Rock wrote:
   I feel like a real newbie asking this one, but the answer is still
   eluding me :(
   
   I have a system where I'm separating my servers for distinction so I'm
   running qemu.
   
   I have a bridge setup which works occasionally, but I need it to work
   100% of the time. I also need this to run at boot time, which is where
   it seems to fall short (not to mention that on occasion even the re
   driver fails to load- not sure if its hardware or software yet, but
   appears to have no bearing on the bridge problem; I could still get an
   ip address via dhcp when the bridge is not working).
   
   My loader.conf looks like this:
   
   snd_hda_load=YES
   if_bridge_load=YES
   if_tap_load=YES
   
   My rc.conf looks like this:
   
   cloned_interfaces=bridge0 tap0
   autobridge_interface=bridge0
   autbridge_bridge0=re0 tap0
   ifconfig_re0=up
   ifconfig_tap0=up
   ifconfig_bridge0=DHCP
   
   If I tell re0 to use DHCP as well, I can access the host, but not the
   guest. If I run qemu in a script, the guest cannot get a DHCP address.
   
   This seems to happen intermittently- one problem then the other. If the
   bridge fails to get an ip from dhcp, I find re going down just after
   bridge0 starts looking for an ip- re comes up again after that starts.
   If bridge0 does get an ip, the tap0 will go down and qemu guest can't
   get an ip.
   
   I feel like I'm going round in circles now. Using rc.conf nothing
   appears to be happening in order- things seem to be going up and down
   when they feel like instead of when they should. I need this to be
   stable, not a cross your fingers and toes, we're going in scenario-
   which is what bridging appears to be like at startup. Manually I can get
   it working off the bat, but I'm trying to get this working within the
   framework provided.
   
   For reference the sysctl.conf settings mentioned in some circles are
   useless in 7.1- net.link.ether.bridge_cfg and
   net.link.ether.bridge.enable aren't recognized.
  
  Can you stabilize the bridge at boot, without any other software
  starting up?
  
 
 The short answer is no. The usual problem here is re0 goes down just
 after bridge0 goes looking for an ip. The other times are a mix of tap0
 going down or some other gremlin I haven't been able to find yet.
 
  If not, does re0 get set up consistently with the same config with a
  basic setup?
  
 
 It can, but that would depend on whether the driver picks it up during
 boot. If the driver comes back with an error then re0 doesn't exist for
 the rc.conf, if re0 does exist it usually sets up and runs ok during the
 entire system up time (as far as I'm aware- I'm accessing the system
 usually through ssh, I haven't seen anything strange in the logs, so ?).
 
  I had similar issues a while back (pre 7.1) in which sometimes 're'
  devices didn't start up at the proper speed/duplex. Every once in a
  while, it would show up at 10 or 100 half, when it should have been auto
  set at full 100 or 1000. If I forced proper speed/duplex, other outside
  programs began to work properly.
  
  However, I haven't witnessed those issues since 7.1
 
 I didn't know about that, but given the problems I'm having I'm starting
 to wonder if they could be a root cause of the problem here.

I think I'm starting to get a clearer picture here: based on my
observation on a test system tap0 appears to go down as soon as a
program connects to it and uses it. Ergo, IF this is the case then that
solves the second part of my problem. So could this be a composite issue
from this and a hidden issue with my re0 device (driver or whatever)?

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


sh parameter substitution problem

2009-02-11 Thread Ian Smith
I'm getting nowhere trying to parse out IP addresses from strings of 
this form in /bin/sh, which have been awk'd out of 'tail named.run':

 addr='195.68.176.4#1440:'
 addr='195.68.176.4#16811:'
 addr='195.68.176.4#276:'

sh(1) in hand, I've tried:

 ip=${addr:%#*}
 ip=${addr:%%#*}
 ip=${addr:%[#]*}
 ip=${addr:%%[#]*}

but all of these report './testbit: 7: Syntax error: Bad substitution'

How can I split these strings to exclude the '#' and all beyond, 
preferably using sh syntax, at least without resorting to perl?

Please cc me as I'm only subscribed to the digest.

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


Re: XDM login freezes on boot

2009-02-11 Thread Anton Shterenlikht
On Wed, Feb 11, 2009 at 08:49:51PM +1000, Da Rock wrote:
 On Wed, 2009-02-11 at 20:32 +1000, Warren Liddell wrote:
  AMD64 4gig RAM FreeBSD 7.1 KDE 4.2
  
  I've noticed of late when i have had the misfortune of rebooting this 
  machine due to severre storms and blackouts, when it boots everything 
  loads fine, xdm initates an i get the standard logon screen, however, 
  you cant do anything an the mouse dosent work.  To solve this issue i go 
  to console via CTRL + ALT + F1 kill tthe XDM pid an once it comes back 
  up, everything is perfectly fine.
  
  Anyone else had this odd occurance ?
 
 Sounds like hald is starting after ttys is initiated. There's another
 thread here mentioning that- never read the answer though. Maybe start
 hald at the beginning of your rc.conf? Or set a sleep on your tty entry
 for x?

I think there is a lack of understanding here of how exactly hal, dbus and
xorg are interrelated. There are some pages on freebsd.org, but at least
for me these didn't make it any clearer. The man pages aren't helpful
either. They tell you how to do things, but there is not much on why.
I'd like to have a better idea of

0. how do hal, dbus, xorg-server, xdm and clients interoperate?

1. why do I need hal and dbus?

2. where do I need to run hal and dbus daemons, on the X server side, on
the clients side, or on both? In my case these are different systems,
I rely on XDMCP).

3. what happens if hal support is not built into xorg-server?

4. why is the issue of auto keyboard and mouse detection still not
clear, contrary to the statement in ports/UPDATE?

Cleary something changes from 7.3 to 7.4 that gives all sorts of troubles
to many people on different systems.

If these questions have been answered already please point me to a link.

anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: sh parameter substitution problem

2009-02-11 Thread eculp

Quoting Ian Smith smi...@nimnet.asn.au:


I'm getting nowhere trying to parse out IP addresses from strings of
this form in /bin/sh, which have been awk'd out of 'tail named.run':

 addr='195.68.176.4#1440:'
 addr='195.68.176.4#16811:'
 addr='195.68.176.4#276:'

sh(1) in hand, I've tried:

 ip=${addr:%#*}
 ip=${addr:%%#*}
 ip=${addr:%[#]*}
 ip=${addr:%%[#]*}

but all of these report './testbit: 7: Syntax error: Bad substitution'

How can I split these strings to exclude the '#' and all beyond,
preferably using sh syntax, at least without resorting to perl?


sed would work.  Something like

for i in addr='195.68.176.4#1440:' addr='195.68.176.4#16811:'  
addr='195.68.176.4#276:'

do
echo $i | sed 's/#.*//'
done

of course using the echo line in your script or something similar.   
I'm sure there are many simple or simpler solutions.


ed



Please cc me as I'm only subscribed to the digest.

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





Failure is the opportunity to begin again more intelligently.
Fracaso es la oportunidad de reiniciar con mas inteligencia  Henry Ford
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: sh parameter substitution problem

2009-02-11 Thread Giorgos Keramidas
On Wed, 11 Feb 2009 21:47:17 +1100 (EST), Ian Smith smi...@nimnet.asn.au 
wrote:
 I'm getting nowhere trying to parse out IP addresses from strings of 
 this form in /bin/sh, which have been awk'd out of 'tail named.run':

  addr='195.68.176.4#1440:'
  addr='195.68.176.4#16811:'
  addr='195.68.176.4#276:'

 sh(1) in hand, I've tried:

  ip=${addr:%#*}
  ip=${addr:%%#*}
  ip=${addr:%[#]*}
  ip=${addr:%%[#]*}

 but all of these report './testbit: 7: Syntax error: Bad substitution'

 How can I split these strings to exclude the '#' and all beyond, 
 preferably using sh syntax, at least without resorting to perl?

Remove the ':' part and quote the text to avoid parsing '#' as a comment
delimiter:

$ addr='195.68.176.4#1440:'
$ echo ${addr%#*}
195.68.176.4

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


Re: sh parameter substitution problem

2009-02-11 Thread Jonathan McKeown
On Wednesday 11 February 2009 12:47:17 Ian Smith wrote:
 I'm getting nowhere trying to parse out IP addresses from strings of
 this form in /bin/sh, which have been awk'd out of 'tail named.run':

  addr='195.68.176.4#1440:'
  addr='195.68.176.4#16811:'
  addr='195.68.176.4#276:'

 sh(1) in hand, I've tried:

  ip=${addr:%#*}
  ip=${addr:%%#*}
  ip=${addr:%[#]*}
  ip=${addr:%%[#]*}

 but all of these report './testbit: 7: Syntax error: Bad substitution'

Take out the : in the parameter expansion.

$ addr='195.68.176.4#1440:'; ip=${addr%#*}; echo $ip
195.68.176.4

: is for supplying default values or an error for unset variables.

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


Re: sh parameter substitution problem

2009-02-11 Thread Ian Smith
On Wed, 11 Feb 2009, Giorgos Keramidas wrote:
  On Wed, 11 Feb 2009 21:47:17 +1100 (EST), Ian Smith smi...@nimnet.asn.au 
  wrote:
   I'm getting nowhere trying to parse out IP addresses from strings of 
   this form in /bin/sh, which have been awk'd out of 'tail named.run':
  
addr='195.68.176.4#1440:'
addr='195.68.176.4#16811:'
addr='195.68.176.4#276:'
  
   sh(1) in hand, I've tried:
  
ip=${addr:%#*}
ip=${addr:%%#*}
ip=${addr:%[#]*}
ip=${addr:%%[#]*}
  
   but all of these report './testbit: 7: Syntax error: Bad substitution'
  
   How can I split these strings to exclude the '#' and all beyond, 
   preferably using sh syntax, at least without resorting to perl?
  
  Remove the ':' part and quote the text to avoid parsing '#' as a comment
  delimiter:
  
  $ addr='195.68.176.4#1440:'
  $ echo ${addr%#*}
  195.68.176.4

Thankyou Giorgos,

just before yours arrived I'd twigged that the ':' was wrong there, and 
tried ip=${addr%#*} which worked fine.  I guess # within ${..} doesn't 
get taken as a comment .. which makes sense or these would always need 
to be double-quoted.

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


Re: sh parameter substitution problem

2009-02-11 Thread Ian Smith
Thanks Ed - good old sed - and Jonathan too, now the digest's here.

  195.68.176.4

Lest anyone get the wrong idea: that's a victim, perpetrator unknown.

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


Cannot access memory at address 0xb

2009-02-11 Thread Nikola Knežević

Hi,

my 8-core amd64 machine crashes when I'm trying to run my module. The  
problem is that I can't debug it, since core dump is broken.


---8---
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and  
you are
welcome to change it and/or distribute copies of it under certain  
conditions.

Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for  
details.

This GDB was configured as amd64-marcel-freebsd...
Cannot access memory at address 0xb
(kgdb) bt
#0  0x in ?? ()
Cannot access memory at address 0x0
(kgdb)
---8---

I can obtain correct coredumps when I'm running everything inside  
QEMU, but not when I'm running on a real machine. Also, panic doesn't  
occur inside QEMU :(


Any hints?

Cheers,
Nikola


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


Re: XDM login freezes on boot

2009-02-11 Thread Warren Block

On Wed, 11 Feb 2009, Warren Liddell wrote:


AMD64 4gig RAM FreeBSD 7.1 KDE 4.2

I've noticed of late when i have had the misfortune of rebooting this machine 
due to severre storms and blackouts, when it boots everything loads fine, xdm 
initates an i get the standard logon screen, however, you cant do anything an 
the mouse dosent work.  To solve this issue i go to console via CTRL + ALT + 
F1 kill tthe XDM pid an once it comes back up, everything is perfectly fine.


Anyone else had this odd occurance ?


Yes, up until the latest xorg-server update on Sunday 
(xorg-server-1.5.3_5,1).  Now it works great.


-Warren Block * Rapid City, South Dakota USA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: XDM login freezes on boot

2009-02-11 Thread Warren Block

On Wed, 11 Feb 2009, Da Rock wrote:


On Wed, 2009-02-11 at 20:32 +1000, Warren Liddell wrote:

AMD64 4gig RAM FreeBSD 7.1 KDE 4.2

I've noticed of late when i have had the misfortune of rebooting this
machine due to severre storms and blackouts, when it boots everything
loads fine, xdm initates an i get the standard logon screen, however,
you cant do anything an the mouse dosent work.  To solve this issue i go
to console via CTRL + ALT + F1 kill tthe XDM pid an once it comes back
up, everything is perfectly fine.

Anyone else had this odd occurance ?


Sounds like hald is starting after ttys is initiated. There's another
thread here mentioning that- never read the answer though. Maybe start
hald at the beginning of your rc.conf? Or set a sleep on your tty entry
for x?


rc.conf just sets variables; it's not order-sensitive.

If xorg-server-1.5.3_5,1 along with all the previous patches doesn't fix 
the problem, then delaying xdm startup might be the way to go.


-Warren Block * Rapid City, South Dakota USA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


portupgrade failed with...wrong errors

2009-02-11 Thread Albert Shih
Hi all,

I've very strange thing with portupgrade. He failed on upgrade and tell me 

===   Running ldconfig
/sbin/ldconfig -m /usr/local/lib
===   Registering installation for libxcb-1.1.93
===  Cleaning for libxcb-1.1.93
---  Cleaning out obsolete shared libraries
[Updating the pkgdb format:bdb_btree in /var/db/pkg ... - 251 packages found 
(-0 +1) . done]
---  Skipping 'x11/xcb-util' (xcb-util-0.3.0) because a requisite package 
'libxcb-1.1.90.1' () failed (specify -k to force)


but as you can see he just make the update of libxcb-1.1.90.1 to libxcb-1.1.93

And this happen for many packages.

Of course I just have to re-run portupgradeand re-reun, and re-run

I've clean /var/db/pkg/pkgdb.db but no effect.

Any idea ? 

Regards.
-- 
Albert SHIH
SIO batiment 15
Observatoire de Paris Meudon
5 Place Jules Janssen
92195 Meudon Cedex
Téléphone : 01 45 07 76 26
Heure local/Local time:
Mer 11 fév 2009 16:41:23 CET
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


csup supfile using date for ports-all

2009-02-11 Thread Nikolai Wendorf

all,

I remember seeing a message going by in one of the mailing lists 
regarding the recent issues with the xorg update last month that 
mentioned using a date in the supfile in order to get a ports tree prior 
to the xorg update.


I know this is wrong:

kolia# cat spec-supfile
*default host=cvsup8.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=.
*default delete use-rel-suffix
*default compress
ports-all date=20090108235500

It blew the ports tree away -

so what is right?  the new xorg fails on my SiS controller

I got desperate and reloaded from 7.1 release and csup RELENG_7 but left 
the ports tree alone and installed xorg/gnome and at least have a 
working display again albeit with lots of buggies - figured I'd update 
the tree to just before the xorg release and wait a while for the issues 
to get resolved.


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


Re: csup supfile using date for ports-all

2009-02-11 Thread Warren Block

On Wed, 11 Feb 2009, Nikolai Wendorf wrote:

I remember seeing a message going by in one of the mailing lists regarding 
the recent issues with the xorg update last month that mentioned using a date 
in the supfile in order to get a ports tree prior to the xorg update.


I know this is wrong:

kolia# cat spec-supfile
*default host=cvsup8.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=.
*default delete use-rel-suffix
*default compress
ports-all date=20090108235500

It blew the ports tree away -


Put the date= entry in place of the tag=. (or maybe in addition to, 
haven't tried), and it has a particular format:


*default release=cvs date=2009.01.08.23.55.00


so what is right?  the new xorg fails on my SiS controller


If you saved log and config files, that might help to fix it.

-Warren Block * Rapid City, South Dakota USA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: please remove all search results with name Constantin Stalzer

2009-02-11 Thread Jerry McAllister
On Tue, Feb 10, 2009 at 06:31:42PM -0800, Chris Knight wrote:

 On Tue, Feb 10, 2009 at 10:52 AM, Constantin Stalzer
 constantinstal...@web.de wrote:
  Hello, can you please remove all search results with the name Constantin 
  Stalzer immediately, so that my name will not be seen on google.
   thanks in advance...pleasseee
 
  Thanks, Greeetz
 
 Dear Mr Stalzer,
 
   I am sorry to inform you that the very act of sending an email to
 this list asking for the removal of your name from search results has,
 in fact, sent the original posting to the top of the Google rankings
 when searching for Constantin Stalzer.
 
 http://www.google.com/search?q=%22Constantin+Stalzer%22hl=enclient=firefox-arls=org.mozilla:en-US:officialhs=MLkfilter=0
 
   At this point, the cat is out of the bag; as we say.  By sending an
 email to this list, your request was not only sent to thousands if
 individuals, but it was displayed on the pages of countless websites
 where the content of this mailing list is redisplayed for public
 access.  Those pages will also be indexed by Google over time, raising
 the Google-Awareness of your name to even higher levels.  It would not
 be absolutely impossible to reverse this process, but I fear it would
 take an actual act of the Gods.
 
   Alas, I can offer no useful advice on how to remove Constantin
 Stalzer from the search results, and I would be shocked if anyone
 else could help either.  It is simply too late.  I am sorry.

A useful and helpful response.

If after making this type of helpful response, then you went on to comment 
that trying to picture the process of trying to remove all references that 
included the name is kind of a funny image, it would not be a dig at the 
person and their lack of knowledge, but at the image of the impossible quest.

jerry


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


Restricting users to their own home directories / not letting users view other users files...?

2009-02-11 Thread Keith Palmer

OK, I'm sure this question has been asked a million times, but I havn't
been able to find a straight answer that actually solves the problem, so
here goes.

We have a FreeBSD server with multiple users. I would rather each user
*not* be able to view other users' files via an SSH or SFTP session. i.e.
if I'm logged in as keith I should *not* get a list of files when I do
ls /home/shannon

I realize I can fix this by setting the permissions on the /home/shannon
directory to 700. *However* then Apache (running as user www) won't
display the documents in /home/shannon/public_html from
http://ip-address/~shannon/;, instead returning a 403 Forbidden error.


Sooo... how can I set this up so that users can't view other user's files,
but Apache still works?

I would prefer *not* to use jails, as it sounds like a lot of overhead and
complicated to set up... is there another way?

I've looked at rbash, but it looks like it disables a whole bunch of other
stuff. My users still need a usable SSH shell. I've looked at rssh and
scponly, but they seem to disallow SSH shell access completely.


Thanks in advance!

-- 
 - Keith Palmer
   ke...@academickeys.com
   http://www.AcademicKeys.com/


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


WIFI duplex link

2009-02-11 Thread KES
Здравствуйте, Freebsd-questions.

Is there analog in FreeBSD like Microtic Nstreme?

-- 
С уважением,
 KES  mailto:kes-...@yandex.ru

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


Re: hald makes cdrom fail

2009-02-11 Thread Anton Shterenlikht
On Wed, Feb 11, 2009 at 11:55:28AM -0500, Joe Marcus Clarke wrote:
 Anton Shterenlikht wrote:
  On FBSD 7.1-stable i386 if I start hald from rc.conf with hald_enable=YES
  the cdrom fails with
  
  acd0: FAILURE - unknown CMD (0x03) ILLEGAL REQUEST asc=0x24 ascq=0x00 
  sks=0x40 0x00 0x00
  
  I submitted a PR on this
  http://www.FreeBSD.org/cgi/query-pr.cgi?pr=i386/131426
  
  but it seems the problem is in hal, and not FBSD.
 
 But what problem is this causing?  It should be benign.

I cannot mount a cdrom.
I can do further testing if you suggest the tests.

thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: hald makes cdrom fail

2009-02-11 Thread Joe Marcus Clarke
Anton Shterenlikht wrote:
 On FBSD 7.1-stable i386 if I start hald from rc.conf with hald_enable=YES
 the cdrom fails with
 
 acd0: FAILURE - unknown CMD (0x03) ILLEGAL REQUEST asc=0x24 ascq=0x00 
 sks=0x40 0x00 0x00
 
 I submitted a PR on this
 http://www.FreeBSD.org/cgi/query-pr.cgi?pr=i386/131426
 
 but it seems the problem is in hal, and not FBSD.

But what problem is this causing?  It should be benign.

Joe

 


-- 
Joe Marcus Clarke
FreeBSD GNOME Team  ::  gn...@freebsd.org
FreeNode / #freebsd-gnome
http://www.FreeBSD.org/gnome
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: hald makes cdrom fail

2009-02-11 Thread Joe Marcus Clarke
Anton Shterenlikht wrote:
 On Wed, Feb 11, 2009 at 11:55:28AM -0500, Joe Marcus Clarke wrote:
 Anton Shterenlikht wrote:
 On FBSD 7.1-stable i386 if I start hald from rc.conf with hald_enable=YES
 the cdrom fails with

 acd0: FAILURE - unknown CMD (0x03) ILLEGAL REQUEST asc=0x24 ascq=0x00 
 sks=0x40 0x00 0x00

 I submitted a PR on this
 http://www.FreeBSD.org/cgi/query-pr.cgi?pr=i386/131426

 but it seems the problem is in hal, and not FBSD.
 But what problem is this causing?  It should be benign.
 
 I cannot mount a cdrom.
 I can do further testing if you suggest the tests.

See http://www.freebsd.org/gnome/docs/halfaq.html .

Joe

-- 
Joe Marcus Clarke
FreeBSD GNOME Team  ::  gn...@freebsd.org
FreeNode / #freebsd-gnome
http://www.FreeBSD.org/gnome
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Bios chip update suggestions

2009-02-11 Thread Bruce Cran
On Sat, 14 Mar 2009 18:37:55 +0800
Fbsd1 fb...@a1poweruser.com wrote:

 Chris Whitehouse wrote:
  Fbsd1 wrote:
  I have an desktop manufactured in 2002 by a South Korean company
  Hyunju. The company is now out of business.
  It's bio's do not allow booting from a usb memory stick.
 
  I want to find an bio's update that adds booting from usb memory
  stick.
 
  I know the desktop uses AWARD bio's chip and the bio's id string
  is 01/08/2002-694T-686-P6VXM2TC-00
 
  All the internet bio's chip update url's found by Google search
  are customized for MS windows.
 
  Suggestions on how or where to purchase the correct bio's chip
  update?
 
  
  What do you mean the update url's are customised for windows? The
  bios doesn't know anything about operating system. Most likely you
  could download a dos boot disk image - google, there are plenty
  around - create a bootable floppy and copy your latest bios image
  and bios update program, eg awdflash.exe onto it. Just boot from
  the floppy and run the update.
  
  Just be sure the bios image is really intended for your motherboard
  and don't interrupt the update.
  
  Chris

 What i mean is all the bio update sites have a utility that runs from 
 the website to fetch your bio id string info. This utility will not
 work on a non-windows operating system.

I'd recommend having a copy of the Ultimate Boot CD
(http://www.ultimatebootcd.com/) for such situations.  I even needed it
when I had Vista x64 installed and found that the flash program wanted
to load an unsigned driver - I had to boot into XP using the CD because
Vista x64 blocked the driver.  

Once booted from the CD you can access the Internet and see local
drives.

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


Re: trouble rebuilding kdelibs3.....

2009-02-11 Thread Gary Kline
On Wed, Feb 11, 2009 at 01:06:34PM +1000, Warren Liddell wrote:
 Gary Kline wrote:
 Hi Guys,
 
 I am trying to rebuild things-KDE [3] and got this from kdelibs3.
 
 
[[ ... ]]

 *** Error code 1
 
 r...@tao:/usr/ports/x11/kdelibs3/work/kdelibs-3.5.10# tail -20 config.log
 #define kde_socklen_t socklen_t
 #define ksize_t socklen_t
 #define HAVE_SYS_TYPES_H 1
 #define HAVE_STDINT_H 1
 #define HAVE_RES_INIT 1
 #define HAVE_RES_INIT_PROTO 1
 #define SIZEOF_INT 4
 #define SIZEOF_SHORT 2
 #define SIZEOF_LONG 4
 #define SIZEOF_CHAR_P 4
 #define SIZEOF_SIZE_T 4
 #define SIZEOF_UNSIGNED_LONG 4
 #define HAVE_VSNPRINTF 1
 #define HAVE_SNPRINTF 1
 #define HAVE_LIBZ 1
 #define HAVE_LIBPNG 1
 #define HAVE_LIBJPEG 1
 #define HAVE_LIBPTHREAD 1
 
 configure: exit 1
 
 
 Anybody have a clue?
 
 gary
 
   
 If i had to have a guess, reading the error msg, there is a problem with 
 your QT library, now i wouldnt say im an expert by any means, but a 
 re-install of QT or it's libraries may fix the problem.


yeah, i'm doing a major cleanup; getting rid of anything qt4-* and kde4.
...  

()

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 2.23a release of Jottings: http://jottings.thought.org/index.php

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


passwordless login not working in KDM

2009-02-11 Thread Mikhail T.

Hello!

The instructions at:

http://freebsd.kde.org/faq.php#HowdoIenablepasswordlessconvenienceloginsinKDMIcheckedthecheckboxintheLoginManagerControlbutKDMwontlogmein

seem perfectly clear and, I believe, I followed them correctly:

   m...@corbulon:~ (1004) ls -l /etc/pam.d/kde*
   -rw-r--r--  1 root  wheel  458 Dec  2  2007 /etc/pam.d/kde
   -rw-r--r--  2 root  wheel  459 Dec 29  2007 /etc/pam.d/kde-np
   m...@corbulon:~ (1005) diff -U2 /etc/pam.d/kde*
   --- /etc/pam.d/kde  2007-12-02 12:12:44.0 -0500
   +++ /etc/pam.d/kde-np   2007-12-29 17:51:31.0 -0500
   @@ -8,5 +8,5 @@
#auth  sufficient  pam_krb5.so no_warn
   try_first_pass
#auth  sufficient  pam_ssh.so  no_warn
   try_first_pass
   -auth   requiredpam_unix.so no_warn
   try_first_pass
   +#auth  requiredpam_unix.so no_warn
   try_first_pass

# account



Unfortunately, the password-less logins are still rejected for the two 
users, who are listed:


   m...@corbulon:~ (1006) grep NoPass /opt/share/config/kdm/kdmrc
   NoPassEnable=true
   NoPassUsers=mi,tulik

Please, advise... Thanks!

   -mi


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


zfs raid and/or hardware raid..

2009-02-11 Thread B. Cook
I have a dimension 9150 that I am going to put amd64 freebsd on to play 
with.


It has Intel ICH7 SATA300 on it, in the bios it says it can do raid.

I'm assuming that would be a hardware raid..

Would I be better off just using two disks and mirror them in software 
raid (zpool) or using the Intel hardware-ish raid and then zfs the raid?


box has 2G of ram, and a pair of 250G sata 300 drives.

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


Re: Restricting users to their own home directories / not letting users view other users files...?

2009-02-11 Thread Roland Smith
On Wed, Feb 11, 2009 at 11:22:17AM -0500, Keith Palmer wrote:
 
 OK, I'm sure this question has been asked a million times, but I havn't
 been able to find a straight answer that actually solves the problem, so
 here goes.
 
 We have a FreeBSD server with multiple users. I would rather each user
 *not* be able to view other users' files via an SSH or SFTP session. i.e.
 if I'm logged in as keith I should *not* get a list of files when I do
 ls /home/shannon
 
 I realize I can fix this by setting the permissions on the /home/shannon
 directory to 700. *However* then Apache (running as user www) won't
 display the documents in /home/shannon/public_html from
 http://ip-address/~shannon/;, instead returning a 403 Forbidden error.
 
 Sooo... how can I set this up so that users can't view other user's files,
 but Apache still works?

Chmod the homedirs to 700. And write a script that copies the user's
html files/directories (if they have changed) to a location where apache
can access them. Run this script as a cronjob for root.

Alternatively, maybe you could use ACLs to grant group www access of the
home directories. See setfacl(1). [I've never had the need to try this,
so I'm not sure].

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)


pgptngsiYmeNb.pgp
Description: PGP signature


is there a portupgrade equiv of portmanager -u -p -l?

2009-02-11 Thread Gary Kline
Reply-To: 
X-Organization: Thought Unlimited. Public service Unix since 1986.
X-Of_Interest:  With 22 years  of service to the Unix community.


well, people, i really screwed up my primary computer (running 7.0)
thru have both kde3 and kde4 installed.  i tried unsuccessfully to 
clean out
kde4 -- which i tried months ago.  but parts got messed up with other
version-4 apps like qt4-*.  i'm rebuilding tao with portmanager -i -p 
-l
which, according to my howto notes, will fix broken dependencies.  is 
theran
analogue mix of flags for portupgrade that i can cron (say) every week?
or is there a better means of keeping current...?

i'm deciding to switch over to ubuntu for my desktop next summer  when 
i'll
build a NEW (no mo' cheaping out),  GREEN, fast desktop.  then i'll swap
over my Dell for my server.  DNS, mail, web, and FBSD 7.2  [or 
whatever].
can't beat FBSD for stability.  until then i'd like the best means of
keeping things current.  as auto-magically as possible with FBSD here.

tia,

gary



-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 2.23a release of Jottings: http://jottings.thought.org/index.php

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


Re: Restricting users to their own home directories / not letting users view other users files...?

2009-02-11 Thread Keith Palmer

... really? Write a script to copy the user's files over on a schedule...?

I can see where that might be an option for some people, but that's
entirely not an option in this case. I'd have to schedule it to run every
5 seconds or something to keep users from getting upset.


What if I symlinked each home user's public_html directory to a directory
readable only by Apache? Would Apache be able to read the destination
directory via the symlink, even if it doesn't have permission to access
the destination directory?


Is there really no better way to do this...?!?

-- 
 - Keith Palmer
   ke...@academickeys.com
   http://www.AcademicKeys.com/

On Wed, February 11, 2009 1:18 pm, Roland Smith wrote:
 On Wed, Feb 11, 2009 at 11:22:17AM -0500, Keith Palmer wrote:

 OK, I'm sure this question has been asked a million times, but I havn't
 been able to find a straight answer that actually solves the problem, so
 here goes.

 We have a FreeBSD server with multiple users. I would rather each user
 *not* be able to view other users' files via an SSH or SFTP session.
 i.e.
 if I'm logged in as keith I should *not* get a list of files when I do
 ls /home/shannon

 I realize I can fix this by setting the permissions on the
 /home/shannon
 directory to 700. *However* then Apache (running as user www) won't
 display the documents in /home/shannon/public_html from
 http://ip-address/~shannon/;, instead returning a 403 Forbidden
 error.

 Sooo... how can I set this up so that users can't view other user's
 files,
 but Apache still works?

 Chmod the homedirs to 700. And write a script that copies the user's
 html files/directories (if they have changed) to a location where apache
 can access them. Run this script as a cronjob for root.

 Alternatively, maybe you could use ACLs to grant group www access of the
 home directories. See setfacl(1). [I've never had the need to try this,
 so I'm not sure].

 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)


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


Re: portupgrade failed with...wrong errors

2009-02-11 Thread Peter Harrison
Wednesday, 11 February 2009 at 16:43:37 +0100, Albert Shih said:
 Hi all,
 
 I've very strange thing with portupgrade. He failed on upgrade and tell me 
 
 ===   Running ldconfig
 /sbin/ldconfig -m /usr/local/lib
 ===   Registering installation for libxcb-1.1.93
 ===  Cleaning for libxcb-1.1.93
 ---  Cleaning out obsolete shared libraries
 [Updating the pkgdb format:bdb_btree in /var/db/pkg ... - 251 packages 
 found (-0 +1) . done]
 ---  Skipping 'x11/xcb-util' (xcb-util-0.3.0) because a requisite package 
 'libxcb-1.1.90.1' () failed (specify -k to force)
 
 
 but as you can see he just make the update of libxcb-1.1.90.1 to libxcb-1.1.93
 
 And this happen for many packages.
 
 Of course I just have to re-run portupgradeand re-reun, and re-run
 
 I've clean /var/db/pkg/pkgdb.db but no effect.
 
 Any idea ? 

Did you read /usr/ports/UPDATING entry 20090123?

  AFFECTS: users of x11/libxcb
  AUTHOR: f...@freebsd.org

  Libxcb shared library version was bumped from 1 to 2.  You need to
  rebuild any consumer of libxcb.so.1 or some applications will be
  linked against two versions of libxcb once libX11 is upgraded.

  For portupgrade users:

# portupgrade -rf libxcb


Peter Harrison.


 
 Regards.
 -- 
 Albert SHIH
 SIO batiment 15
 Observatoire de Paris Meudon
 5 Place Jules Janssen
 92195 Meudon Cedex
 Téléphone : 01 45 07 76 26
 Heure local/Local time:
 Mer 11 fév 2009 16:41:23 CET
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Restricting users to their own home directories / not letting users view other users files...?

2009-02-11 Thread Roland Smith
On Wed, Feb 11, 2009 at 01:38:33PM -0500, Keith Palmer wrote:
 
 ... really? Write a script to copy the user's files over on a schedule...?
 
 I can see where that might be an option for some people, but that's
 entirely not an option in this case. I'd have to schedule it to run every
 5 seconds or something to keep users from getting upset.

Cron has a granularity of one minute. Otherwise you can write a simple
script that calls rsync(1) every five seconds.

At my ISP I can upload my website to my home directory, and then I have
to execute a command to make my updates accessible from the outside. You
could do something like that as well.

 What if I symlinked each home user's public_html directory to a directory
 readable only by Apache? Would Apache be able to read the destination
 directory via the symlink, even if it doesn't have permission to access
 the destination directory?

Nope. You can't even make the symlink as a normal user:
($ = normal user, # = root)

$ ls -ld /var/heimdal
drwx--  2 root  wheel  512 Feb 11 19:45 /var/heimdal/

# fortune /var/heimdal/foo

$ ls -s /var/heimdal/foo foo
ls: /var/heimdal/foo: Permission denied

You can make the link as root, but you still can't use it:

# ln -s /var/heimdal/foo foo
# ll foo
lrwxr-xr-x  1 root  rsmith  16 Feb 11 19:50 foo@ - /var/heimdal/foo
 
$ cat foo 
cat: foo: Permission denied

 Is there really no better way to do this...?!?

- Try access control lists to give group WWW access (as mentioned).
- Let them upload via FTP (I think most HTML editors support this).
- Depending on the user's content you could make blogs of their sites?
  That way they can edit via the browser or their favorite blog posting
  software. 

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)


pgp1qtK7MemZJ.pgp
Description: PGP signature


Re: Restricting users to their own home directories / not letting users view other users files...?

2009-02-11 Thread Mel
On Wednesday 11 February 2009 07:22:17 Keith Palmer wrote:
 OK, I'm sure this question has been asked a million times, but I havn't
 been able to find a straight answer that actually solves the problem, so
 here goes.

 We have a FreeBSD server with multiple users. I would rather each user
 *not* be able to view other users' files via an SSH or SFTP session. i.e.
 if I'm logged in as keith I should *not* get a list of files when I do
 ls /home/shannon

 I realize I can fix this by setting the permissions on the /home/shannon
 directory to 700. *However* then Apache (running as user www) won't
 display the documents in /home/shannon/public_html from
 http://ip-address/~shannon/;, instead returning a 403 Forbidden error.


 Sooo... how can I set this up so that users can't view other user's files,
 but Apache still works?

Your problem might be how they change the files, if via FTP, but...

- Move the public_html dirs
- chgrp www, chmod 640.
- symlink in the home dir

http://httpd.apache.org/docs/2.2/mod/mod_userdir.html#userdir

Example:
mkdir /var/userweb
for USERDIR in /home/*; do
if test -d ${USERDIR}/public_html; then
destdir=/var/userweb/${USERDIR##/home/}
mkdir ${destdir}
mv ${USERDIR}/public_html ${destdir}/
ln -s ${destdir}/public_html ${USERDIR}/public_html
chgrp -R www ${destdir}/public_html
chmod -R u+w,g-w,o= ${destdir}/public_html
fi
done

In httpd.conf:
UserDir /var/userweb/*/public_html

That said, I don't really understand your 'ls' paranoia. If you don't care 
about ls, you can set user's umask to 0027 and rechmod all files to 640. Have 
users in their own group and have */public_html group www. /home/username 
then has to have 755 in order for apache to get to public_html.

-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Restricting users to their own home directories / not letting users view other users files...?

2009-02-11 Thread Paul Schmehl
--On Wednesday, February 11, 2009 12:38:33 -0600 Keith Palmer 
ke...@academickeys.com wrote:





... really? Write a script to copy the user's files over on a schedule...?

I can see where that might be an option for some people, but that's
entirely not an option in this case. I'd have to schedule it to run every
5 seconds or something to keep users from getting upset.


What if I symlinked each home user's public_html directory to a directory
readable only by Apache? Would Apache be able to read the destination
directory via the symlink, even if it doesn't have permission to access
the destination directory?



Why can't you chgroup and setgid the homedirs to www?  (Or whatever account the 
web server is running under.)  You really have two requirements:


1) Users can't see other users' files
2) The web server can read all users' web files

So you chmod the homedirs to 750/640, and chgroup the dirs and files to www, 
then set the sticky bit for the group, and you're done.  Seems to me that's the 
simplest way to go about it.  Setting the sticky bit ensures that any new files 
created by a user will have www as the group.


So chown -R someuser:www /home/someuser
find /home/someuser -type d exec chmod 2750 {} \;
find /home/someuser -type f exec chomd 2640 {} \;

(Might have my syntax on the find command messed up a bit.  Make sure to man 
that.)


If your users have their webfiles in /home/someuser/public_html, then you only 
need to setgid that dir and its subdirs, no the user's homedir.


--
Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
***
Check the headers before clicking on Reply.

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


Re: Restricting users to their own home directories / not letting users view other users files...?

2009-02-11 Thread Chris Rees
2009/2/11 Paul Schmehl pschmehl_li...@tx.rr.com:
 --On Wednesday, February 11, 2009 12:38:33 -0600 Keith Palmer
 ke...@academickeys.com wrote:



 ... really? Write a script to copy the user's files over on a schedule...?

 I can see where that might be an option for some people, but that's
 entirely not an option in this case. I'd have to schedule it to run every
 5 seconds or something to keep users from getting upset.


 What if I symlinked each home user's public_html directory to a directory
 readable only by Apache? Would Apache be able to read the destination
 directory via the symlink, even if it doesn't have permission to access
 the destination directory?


 Why can't you chgroup and setgid the homedirs to www?  (Or whatever account
 the web server is running under.)  You really have two requirements:

 1) Users can't see other users' files
 2) The web server can read all users' web files

 So you chmod the homedirs to 750/640, and chgroup the dirs and files to www,
 then set the sticky bit for the group, and you're done.  Seems to me that's
 the simplest way to go about it.  Setting the sticky bit ensures that any
 new files created by a user will have www as the group.

Sticky doesn't... it's sgid you want.

Sticky means that only the creator (owner) can use unlink on the file.

Chris

-- 
R $h !  $- ! $+  $@ $2  @ $1 .UUCP.  (sendmail.cf)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Restricting users to their own home directories / not letting users view other users files...?

2009-02-11 Thread Chuck Swiger

On Feb 11, 2009, at 8:22 AM, Keith Palmer wrote:

We have a FreeBSD server with multiple users. I would rather each user
*not* be able to view other users' files via an SSH or SFTP session.  
i.e.
if I'm logged in as keith I should *not* get a list of files when  
I do

ls /home/shannon

I realize I can fix this by setting the permissions on the /home/ 
shannon

directory to 700. *However* then Apache (running as user www) won't
display the documents in /home/shannon/public_html from
http://ip-address/~shannon/;, instead returning a 403 Forbidden  
error.


This is an old, old problem; a reasonable solution is to create a  
$USER/private directory with 700 permissions for each user, and have  
them put anything which they consider secret under there.


--
-Chuck

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


Re: Restricting users to their own home directories / not letting users view other users files...?

2009-02-11 Thread A. Wright

On Wed, 11 Feb 2009, Keith Palmer wrote:


What if I symlinked each home user's public_html directory to a directory
readable only by Apache? Would Apache be able to read the destination
directory via the symlink, even if it doesn't have permission to access
the destination directory?


You can do something like this easily.

Assuming you have access to the Apache config, you can setup Apache
to look in a location other than /home/${USER} for the public_html
directories.  Let us call this /web/${USER}.  If you create a
directory here for each actual user, and create a user-owned
public_html directory within it, then you can make your symlinks
from the real home directory to this location.  Apache can happily
operate on the assumption that ${HOME} for each user is /web/${USER}.

Look for UserDir in the Apache config httpd.conf (for 1.3) or the
httpd-userdir.conf file (for 2.2).



Is there really no better way to do this...?!?


Even easier is to simply set the default umask for your users (say
to 077) in the system-wide shell initialization for your users'
favourite shells.

Then new files will be unreadable, and new directories unbrowsable.
User A will be able to see if B has created a file in their
home dir, but not what is in it, nor anything below the home directory
point.

This is what most systems do -- if people want their items completely
private, they can put them in a sub-dir.

Users can still give away privacy by resetting umask or using chmod,
but they could do that in any case, if you allow more than one account
per machine (or jail).

Cheers,
Andrew.

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


Re: zfs raid and/or hardware raid..

2009-02-11 Thread Matias Surdi
If your are just going to play with it, the play as much as you want 
with ZFS.


But, if you are going to setup something that will have to go on 
production some day, at least at this moment i wouldn't recommend you ZFS.


I've used it for a backup server, and due to power failures in the 
building, all the times the energy went out the pool got corrupted, the 
las one was completely unrecoverable.I ended up using gconcat/gstripe 
and so on, and despite a couple more power failures, just once I've had 
to run fsck.Everything works (and feels) much more solid now.


Just my opinion.


B. Cook wrote:
I have a dimension 9150 that I am going to put amd64 freebsd on to play 
with.


It has Intel ICH7 SATA300 on it, in the bios it says it can do raid.

I'm assuming that would be a hardware raid..

Would I be better off just using two disks and mirror them in software 
raid (zpool) or using the Intel hardware-ish raid and then zfs the raid?


box has 2G of ram, and a pair of 250G sata 300 drives.

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




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


Re: hald makes cdrom fail

2009-02-11 Thread Polytropon
On Wed, 11 Feb 2009 10:43:22 +, Anton Shterenlikht me...@bristol.ac.uk 
wrote:
 On FBSD 7.1-stable i386 if I start hald from rc.conf with hald_enable=YES
 the cdrom fails with
 
 acd0: FAILURE - unknown CMD (0x03) ILLEGAL REQUEST asc=0x24 ascq=0x00 
 sks=0x40 0x00 0x00

Maybe this is a stupid and non-backed up idea, but what about using
the ATAPICAM facility (and /dev/cd instead of /dev/acd) for accessing
the CD-ROM drive?



-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: hald makes cdrom fail

2009-02-11 Thread Wojciech Puchar

that's what i do. i don't have atapicd in kernel at all

On Wed, 11 Feb 2009, Polytropon wrote:


On Wed, 11 Feb 2009 10:43:22 +, Anton Shterenlikht me...@bristol.ac.uk 
wrote:

On FBSD 7.1-stable i386 if I start hald from rc.conf with hald_enable=YES
the cdrom fails with

acd0: FAILURE - unknown CMD (0x03) ILLEGAL REQUEST asc=0x24 ascq=0x00 sks=0x40 
0x00 0x00


Maybe this is a stupid and non-backed up idea, but what about using
the ATAPICAM facility (and /dev/cd instead of /dev/acd) for accessing
the CD-ROM drive?



--
Polytropon

From Magdeburg, Germany

Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org



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


Re: Restricting users to their own home directories / not letting users view other users files...?

2009-02-11 Thread DAve

Keith Palmer wrote:

OK, I'm sure this question has been asked a million times, but I havn't
been able to find a straight answer that actually solves the problem, so
here goes.

We have a FreeBSD server with multiple users. I would rather each user
*not* be able to view other users' files via an SSH or SFTP session. i.e.
if I'm logged in as keith I should *not* get a list of files when I do
ls /home/shannon

I realize I can fix this by setting the permissions on the /home/shannon
directory to 700. *However* then Apache (running as user www) won't
display the documents in /home/shannon/public_html from
http://ip-address/~shannon/;, instead returning a 403 Forbidden error.


Sooo... how can I set this up so that users can't view other user's files,
but Apache still works?

I would prefer *not* to use jails, as it sounds like a lot of overhead and
complicated to set up... is there another way?

I've looked at rbash, but it looks like it disables a whole bunch of other
stuff. My users still need a usable SSH shell. I've looked at rssh and
scponly, but they seem to disallow SSH shell access completely.


Thanks in advance!



Try /usr/ports/security/openssh

You can chroot the user into their own home dir. Check out the 
ChrootDirectory sshd_config option.


http://www.openbsd.org/cgi-bin/man.cgi?query=sshd_configsektion=5

DAve



--
The whole internet thing is sucking the life out of me,
there ain't no pony in there.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: zfs raid and/or hardware raid..

2009-02-11 Thread Erik Trulsson
On Wed, Feb 11, 2009 at 12:58:04PM -0500, B. Cook wrote:
 I have a dimension 9150 that I am going to put amd64 freebsd on to play 
 with.
 
 It has Intel ICH7 SATA300 on it, in the bios it says it can do raid.
 
 I'm assuming that would be a hardware raid..

You are assuming wrong.  It is software RAID, just like almost all on-board
RAID implementations (and most of the cheaper add-on RAID cards.)  RAID that
is supported in the BIOS have one advantage over other software
implementations, and that is that you can boot from all supported RAID
configurations, which is not always the case otherwise.


 
 Would I be better off just using two disks and mirror them in software 
 raid (zpool) or using the Intel hardware-ish raid and then zfs the raid?
 
 box has 2G of ram, and a pair of 250G sata 300 drives.
 
 clues appreciated.

ZFS still feels a little bit too experimental for my own tastes (although
opinions differ on that matter), but apart from that ZFS is probably the
best solution.




-- 
Insert your favourite quote here.
Erik Trulsson
ertr1...@student.uu.se
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Restricting users to their own home directories / not letting users view other users files...?

2009-02-11 Thread Roland Smith
On Wed, Feb 11, 2009 at 01:23:23PM -0600, Paul Schmehl wrote:
 --On Wednesday, February 11, 2009 12:38:33 -0600 Keith Palmer 
 ke...@academickeys.com wrote:

  ... really? Write a script to copy the user's files over on a schedule...?
 
  I can see where that might be an option for some people, but that's
  entirely not an option in this case. I'd have to schedule it to run every
  5 seconds or something to keep users from getting upset.
 
 
  What if I symlinked each home user's public_html directory to a directory
  readable only by Apache? Would Apache be able to read the destination
  directory via the symlink, even if it doesn't have permission to access
  the destination directory?
 
 
 Why can't you chgroup and setgid the homedirs to www?  (Or whatever
 account the web server is running under.)  You really have two
 requirements:
 
 1) Users can't see other users' files
 2) The web server can read all users' web files
 
 So you chmod the homedirs to 750/640, and chgroup the dirs and files
 to www, then set the sticky bit for the group, and you're done.  

According to the chgrp manual: 

 The user invoking chgrp must belong to the specified group and be the
 owner of the file, or be the super-user.

So if a non-root user wanted to add a new file, he'd have to be in the
www group to chgrp! Which would give other users (who'd also have to be
in the www group) at least read access to these files. And possilby to
other files used by apache as well.

Now for these webpages giving other reads access shouldn't be that much of
a problem. Since these are webpages they are presumably _meant_ to be
read by others. But giving all the users access to files belonging to
apache, that might not be desirable?

The thing is that the user would need to know that they have to chown
and chmod any new file/dir they create in public_html. For the average
windows user that would probably be too much to ask for.

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)


pgpgFRJ2Gw4Ah.pgp
Description: PGP signature


Re: Weird problem with firefox

2009-02-11 Thread Chad Perrin
On Tue, Feb 10, 2009 at 06:17:27PM -0600, Paul Schmehl wrote:
 --On Tuesday, February 10, 2009 17:49:08 -0600 Paul Schmehl 
 pschmehl_li...@tx.rr.com wrote:
 
 
 I just uninstalled Firefox v. 2.0.0.20 and then installed firefox v. 3.0.5.
 Which shows one firefox binary; firefox3.  Yet, when I start firefox and 
 click
 on Help/About, it shows I'm running 2.0.0.20.  WTF?
 
 Anyone have a sensible explanation for this?
 
 
 Never mind.  Rebooting fixed the problem.

Rebooting?  You shouldn't have had to do that.  At most, you might have
needed to restart your window manager and/or menu program.  If you were
starting Firefox from the shell, you probably just needed to enter
`rehash` to get it to recognize changes to what's in the execution path.

-- 
Chad Perrin [ content licensed OWL: http://owl.apotheon.org ]
Quoth Sean Reifschneider: If java had real garbage-collection, it would
delete most programs before it executed them.


pgpMFe0ECq6Yk.pgp
Description: PGP signature


Re: zfs raid and/or hardware raid..

2009-02-11 Thread Wojciech Puchar

RAID implementations (and most of the cheaper add-on RAID cards.)  RAID that
is supported in the BIOS have one advantage over other software
implementations, and that is that you can boot from all supported RAID
configurations, which is not always the case otherwise.


always - if you use software RAID (gmirror) properly.

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


Re: portupgrade failed with...wrong errors

2009-02-11 Thread Albert Shih
 Le 11/02/2009 à 18:30:05+, Peter Harrison a écrit
 Wednesday, 11 February 2009 at 16:43:37 +0100, Albert Shih said:
  Hi all,
  
  I've very strange thing with portupgrade. He failed on upgrade and tell me 
  
  ===   Running ldconfig
  /sbin/ldconfig -m /usr/local/lib
  ===   Registering installation for libxcb-1.1.93
  ===  Cleaning for libxcb-1.1.93
  ---  Cleaning out obsolete shared libraries
  [Updating the pkgdb format:bdb_btree in /var/db/pkg ... - 251 packages 
  found (-0 +1) . done]
  ---  Skipping 'x11/xcb-util' (xcb-util-0.3.0) because a requisite package 
  'libxcb-1.1.90.1' () failed (specify -k to force)
  
  
  but as you can see he just make the update of libxcb-1.1.90.1 to 
  libxcb-1.1.93
  
  And this happen for many packages.
  
  Of course I just have to re-run portupgradeand re-reun, and re-run
  
  I've clean /var/db/pkg/pkgdb.db but no effect.
  
  Any idea ? 
 
 Did you read /usr/ports/UPDATING entry 20090123?
 
   AFFECTS: users of x11/libxcb
   AUTHOR: f...@freebsd.org
 
   Libxcb shared library version was bumped from 1 to 2.  You need to
   rebuild any consumer of libxcb.so.1 or some applications will be
   linked against two versions of libxcb once libX11 is upgraded.
 
   For portupgrade users:
 
 # portupgrade -rf libxcb
 

Yes but they are no link with libxcb because this thing append with many
other package.

Wait and see the next portupgrade session..

Thanks for the help.

Regards.

JAS
-- 
Albert SHIH
SIO batiment 15
Observatoire de Paris Meudon
5 Place Jules Janssen
92195 Meudon Cedex
Heure local/Local time:
Mer 11 fév 2009 22:20:05 CET
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: please remove all search results with name Constantin Stalzer

2009-02-11 Thread Mario Lobo
On Wednesday 11 February 2009 01:09:50 Chris Knight wrote:
 On Tue, Feb 10, 2009 at 6:50 PM, prad p...@towardsfreedom.com wrote:
  this is an interesting thing to think about actually. some people try
  very hard to get high rankings on google, but fail miserably. i looked
  into websearch optimization some time ago and recall that you can do
  'naughty' things like provide an excessive number of irrelevant keywords
  and get penalized - not sure if something like that could be applied
  here.

 Google must be watching...  When I originally posted that Google link,
 this thread was the top item in the search results.  Now it is nearly
 entirely purged from the results.  I am impressed by whatever Internet
 Gods have accomplished this task.

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

One side note about this post.

This list is treasure of information floating on a mirror-like sea. To me 
particularly, it's nice when a properly-time-spaced flame war storm breaks 
out. A learn a lot from them.

It is a delightful chance to see inteligent people debating ideas, where none 
of them is interrupted while trying to speak.

Like I said, when properly-time-spaced, it's a healthy stir-up.

Thanks !
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: zfs raid and/or hardware raid..

2009-02-11 Thread Erik Trulsson
On Wed, Feb 11, 2009 at 10:18:42PM +0100, Wojciech Puchar wrote:
  RAID implementations (and most of the cheaper add-on RAID cards.)  RAID that
  is supported in the BIOS have one advantage over other software
  implementations, and that is that you can boot from all supported RAID
  configurations, which is not always the case otherwise.
 
 always - if you use software RAID (gmirror) properly.

gmirror handles only RAID-1 if I am not mistaken.
That is the exception where you can boot from a RAID array even the BIOS
does not know about it. (But I would worry about what would happen if you
were trying to boot from a degraded RAID-1 array.  What happens if the BIOS
tries to boot the wrong disk?)

For a RAID-0, RAID-5, or RAID-10 array on the other hand, I think it is not
possible to boot from them unless you have a BIOS which understands the
array format.



-- 
Insert your favourite quote here.
Erik Trulsson
ertr1...@student.uu.se
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Restricting users to their own home directories / not letting users view other users files...?

2009-02-11 Thread Da Rock
On Wed, 2009-02-11 at 11:22 -0500, Keith Palmer wrote:
 OK, I'm sure this question has been asked a million times, but I havn't
 been able to find a straight answer that actually solves the problem, so
 here goes.
 
 We have a FreeBSD server with multiple users. I would rather each user
 *not* be able to view other users' files via an SSH or SFTP session. i.e.
 if I'm logged in as keith I should *not* get a list of files when I do
 ls /home/shannon
 
 I realize I can fix this by setting the permissions on the /home/shannon
 directory to 700. *However* then Apache (running as user www) won't
 display the documents in /home/shannon/public_html from
 http://ip-address/~shannon/;, instead returning a 403 Forbidden error.
 
 
 Sooo... how can I set this up so that users can't view other user's files,
 but Apache still works?
 
 I would prefer *not* to use jails, as it sounds like a lot of overhead and
 complicated to set up... is there another way?
 
 I've looked at rbash, but it looks like it disables a whole bunch of other
 stuff. My users still need a usable SSH shell. I've looked at rssh and
 scponly, but they seem to disallow SSH shell access completely.

Wouldn't you use permissions where you have the user as owner and the
apache group as group? Something like 750 user:www

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


Re: Bridge setup at boot

2009-02-11 Thread Da Rock
On Wed, 2009-02-11 at 08:36 -0500, Steve Bertrand wrote:
 Da Rock wrote:
 
  I had similar issues a while back (pre 7.1) in which sometimes 're'
  devices didn't start up at the proper speed/duplex. Every once in a
  while, it would show up at 10 or 100 half, when it should have been auto
  set at full 100 or 1000. If I forced proper speed/duplex, other outside
  programs began to work properly.
 
  However, I haven't witnessed those issues since 7.1
  I didn't know about that, but given the problems I'm having I'm starting
  to wonder if they could be a root cause of the problem here.
  
  I think I'm starting to get a clearer picture here: based on my
  observation on a test system tap0 appears to go down as soon as a
  program connects to it and uses it. Ergo, IF this is the case then that
  solves the second part of my problem. So could this be a composite issue
  from this and a hidden issue with my re0 device (driver or whatever)?
 
 It very well could be.
 
 Can you swap in a card under a different driver temporarily to see if
 the problem goes away?

Unfortunately not in this case- its a low profile requirement which
don't have a replacement for. At least until I can get to the point
where I go through the same process for another m/c with similar
hardware. But I'm also kinda waiting to see how well this one works
before I move on...

From another post on the list it seems rc has no concept of sequential
processing, so that seems to present a real problem for anyone
attempting to bridge at boot.

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


Re: ipv6 and freebsd

2009-02-11 Thread gahn
Thanks Steve:

the router that sending RA is juniper and the protocol router-advertisement has 
been activated:

g...@lab_1 show interfaces fe-0/0/3
...

  Logical interface fe-0/0/3.170 (Index 70) (SNMP ifIndex 59) 
...
  Addresses, Flags: Is-Preferred
Destination: fe80::/64, Local: fe80::214:f600:aa2c:d403
  Addresses, Flags: Is-Preferred Is-Primary
Destination: fec0:10:5::/64, Local: fec0:10:5:0:214:f600:aa2c:d403


g...@lab_r2 show interfaces fe-0/0/3 
...
  Logical interface fe-0/0/3.170 (Index 70) (SNMP ifIndex 32)
  Addresses, Flags: Is-Preferred
Destination: fe80::/64, Local: fe80::214:f600:aa2c:3c03
  Addresses, Flags: Is-Preferred Is-Primary
Destination: fec0:0:5::/64, Local: fec0:0:5:0:214:f600:aa2c:3c03

g...@lab:~:$ sysctl -a net.inet6.ip6.accept_rtadv
net.inet6.ip6.accept_rtadv: 1
g...@lab:~:$ ndp -i bge1
linkmtu=0, maxmtu=1500, curhlim=64, basereachable=30s0ms, reachable=36s, 
retrans=1s0ms
Flags: nud accept_rtadv 
g...@lab:~:$ ifconfig bge1
bge1: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST metric 0 mtu 
1500
options=9bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM
ether 00:06:5b:f0:7d:21
inet6 fe80::206:5bff:fef0:7d21%bge1 prefixlen 64 scopeid 0x2 
inet 10.0.5.10 netmask 0xff00 broadcast 10.0.5.255
media: Ethernet autoselect (100baseTX full-duplex)
status: active


lab# tcpdump -n -i bge1 ip6
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on bge1, link-type EN10MB (Ethernet), capture size 96 bytes
17:55:44.027565 IP6 fe80::214:f600:aa2c:3c03  ff02::1: ICMP6, router 
advertisement, length 24
18:02:46.283353 IP6 fe80::214:f600:aa2c:d403  ff02::1: ICMP6, router 
advertisement, length 24




--- On Tue, 2/10/09, Steve Bertrand st...@ibctech.ca wrote:

 From: Steve Bertrand st...@ibctech.ca
 Subject: Re: ipv6 and freebsd
 To: ipfr...@yahoo.com
 Cc: freebsd general questions freebsd-questions@freebsd.org
 Date: Tuesday, February 10, 2009, 10:35 AM
 gahn wrote:
  Thanks for the tips.
  
  But i still only see the fe80::..., link-local
 address, not the fec0:... something as I expected.
 
 Provide the output to:
 
 # sysctl -a net.inet6.ip6.accept_rtadv
 # ndp -i fxp0
 # ifconfig fxp0
 
 ...and, run a tcpdump on fxp0 capturing only IPv6 packets.
 Eventually
 you should see the router advertisements:
 
 # tcpdump -n -i fxp0 ip6
 
 If you don't see them, check your router config. What
 type of router is
 it? Most routers have RAs disabled by default.
 
 Steve


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


Re: Weird problem with firefox

2009-02-11 Thread Paul Schmehl
--On Wednesday, February 11, 2009 14:34:07 -0600 Chad Perrin 
per...@apotheon.com wrote:



On Tue, Feb 10, 2009 at 06:17:27PM -0600, Paul Schmehl wrote:

--On Tuesday, February 10, 2009 17:49:08 -0600 Paul Schmehl
pschmehl_li...@tx.rr.com wrote:


 I just uninstalled Firefox v. 2.0.0.20 and then installed firefox v. 3.0.5.
 Which shows one firefox binary; firefox3.  Yet, when I start firefox and
 click
 on Help/About, it shows I'm running 2.0.0.20.  WTF?

 Anyone have a sensible explanation for this?


Never mind.  Rebooting fixed the problem.


Rebooting?  You shouldn't have had to do that.  At most, you might have
needed to restart your window manager and/or menu program.  If you were
starting Firefox from the shell, you probably just needed to enter
`rehash` to get it to recognize changes to what's in the execution path.


I had to reboot for unrelated reasons.

--
Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
***
Check the headers before clicking on Reply.

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


FreeBSD 7.1

2009-02-11 Thread Overdorf, Sam
I'm having problems getting rsh/rshd to work on my 7.1 installation.
I have it configured the same as my 7.0 computer (which works fine) but when I 
try to run a command I get the following response:

rsh u0610 ls
rshd: Login incorrect.

Thanks,
Sam

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


Re: Restricting users to their own home directories / not letting users view other users files...?

2009-02-11 Thread Paul Schmehl
--On Wednesday, February 11, 2009 14:24:13 -0600 Roland Smith 
rsm...@xs4all.nl wrote:


Why can't you chgroup and setgid the homedirs to www?  (Or whatever
account the web server is running under.)  You really have two
requirements:

1) Users can't see other users' files
2) The web server can read all users' web files

So you chmod the homedirs to 750/640, and chgroup the dirs and files
to www, then set the sticky bit for the group, and you're done.


According to the chgrp manual:

 The user invoking chgrp must belong to the specified group and be the
 owner of the file, or be the super-user.



Sorry if I wasn't clear.

I wasn't suggesting that the *users* chgrp the files.  Keith would do that as 
root.  Then he sets the setgid bit to www (or whatever the web user is), and 
from that point going forward any files created by the user would be user:www 
instead of user:user.  Set the umask to 027, and world has no readability.


This is exactly how I used to handle some files on a webserver that I maintain 
that other people needed to be able to edit, add and delete files from.  Once 
the sgid bit is set, the group membership of the files remains www no matter 
what user creates/touches a file.


Note that the first bit isn't usually referred to when discussing chmod.  So 
most people will say, for example, chmod directories 755.  And if you type '% 
chmod 755 dir', that's what you'll get.  To set the sgid bit, you need to type 
'% chmod 2755 dir'.  See the man 1 chmod for details.


My apologies for calling the sgid bit the sticky bit, since that's not 
technically correct.  I should have said setgid bit rather than sticky group 
bit.


--
Paul Schmehl (pa...@utdallas.edu)
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


Re: nss_ldap SSL/TLS problems..

2009-02-11 Thread Benjamin Lee
On 02/10/2009 10:08 PM, Arjun Singh wrote:
 Thanks for the advice. I tried to see if I could get nscd to solve anything,
 but it seems to just hide the problem, and not completely. With nscd
 enabled, the first login fails. After that, it's fine..
 
 I get the following in auth.log corresponding with the failed first login
 (with the correct pw):
 
 Feb 10 22:03:23 new-hkn sshd[59371]: nss_ldap: could not search LDAP server
 - Server is unavailable
 Feb 10 22:03:23 new-hkn sshd[59371]: fatal: login_get_lastlog: Cannot find
 account for uid 1
 Feb 10 22:03:23 new-hkn sshd[59371]: syslogin_perform_logout: logout()
 returned an error
[...]

It appears to be a bug when using nss_ldap with RELENG_7, as I have been
unable to reproduce the issue on machines running 6.2-RELEASE and
6.3-RELEASE, regardless of the version of OpenLDAP.  In my environment,
the machines use pam_krb5 for authentication, so the problem is
definitely not related to pam_ldap.  Have you filed a problem report?


-- 
Benjamin Lee
http://www.b1c1l1.com/



signature.asc
Description: OpenPGP digital signature


Re: Restricting users to their own home directories / not letting users view other users files...?

2009-02-11 Thread Paul Schmehl
--On Wednesday, February 11, 2009 14:24:13 -0600 Roland Smith 
rsm...@xs4all.nl wrote:


Why can't you chgroup and setgid the homedirs to www?  (Or whatever
account the web server is running under.)  You really have two
requirements:

1) Users can't see other users' files
2) The web server can read all users' web files

So you chmod the homedirs to 750/640, and chgroup the dirs and files
to www, then set the sticky bit for the group, and you're done.


According to the chgrp manual:

 The user invoking chgrp must belong to the specified group and be the
 owner of the file, or be the super-user.



Sorry if I wasn't clear.

I wasn't suggesting that the *users* chgrp the files.  Keith would do that as 
root.  Then he sets the setgid bit to www (or whatever the web user is), and 
from that point going forward any files created by the user would be user:www 
instead of user:user.  Set the umask to 027, and world has no readability.


This is exactly how I used to handle some files on a webserver that I maintain 
that other people needed to be able to edit, add and delete files from.  Once 
the sgid bit is set, the group membership of the files remains www no matter 
what user creates/touches a file.


Note that the first bit isn't usually referred to when discussing chmod.  So 
most people will say, for example, chmod directories 755.  And if you type '% 
chmod 755 dir', that's what you'll get.  To set the sgid bit, you need to type 
'% chmod 2755 dir'.  See the man 1 chmod for details.


My apologies for calling the sgid bit the sticky bit, since that's not 
technically correct.  I should have said setgid bit rather than sticky group 
bit.


--
Paul Schmehl (pa...@utdallas.edu)
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


pgpBdnxxw9yNp.pgp
Description: PGP signature


[NetBSD4.0(i386)]why NetBSD did not send link-local NS when NetBSD rebooted

2009-02-11 Thread wang_jiabo

Hello, all:
  could you tell me why NetBSD did not send link-local NS when NetBSD 
rebooted.

I add ip6mode=autohost in /etc/rc.conf and add up in ifconfig.IF file
thanks
jiabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: [NetBSD4.0(i386)]why NetBSD did not send link-local NS when NetBSD rebooted

2009-02-11 Thread matt donovan
On Wed, Feb 11, 2009 at 10:20 PM, wang_jiabo jiabw...@redhat.com wrote:

 Hello, all:
  could you tell me why NetBSD did not send link-local NS when NetBSD
 rebooted.
 I add ip6mode=autohost in /etc/rc.conf and add up in ifconfig.IF file
 thanks
 jiabo
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org



you might want to look here http://netbsd.org/mailinglists/ since you posted
your message to FreeBSD mailing list
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Xorg causes kernel panic (intel g45 chipset)

2009-02-11 Thread Howard Yeh
Hi,

7.1-RELEASE  installs fine on the machine, but when I try to start
xorg I get kernel page fault.

it's Intel G45 GMA-4500HD. I saw a thread back in September 2008 that
added support for the G45 chipset, did it make its way into the 7.1
release?

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


Re: reread newsyslog.conf without reboot

2009-02-11 Thread akruijff

Quoting Fbsd1 fb...@a1poweruser.com:


How do I get the system to reread /etc/newsyslog.conf file with out
rebooting the system?


This is usually done by sending a HUP signal with 'kill' to the  
newsyslog daemon. If this doesn't do it then you can kill the daemon  
and load it again with the script in /etc/rc.d/


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


Determining process preventing umount of busy partition

2009-02-11 Thread Polytropon
I'd like to ask how to determine which process (or program) keeps a partition
in state busy so that umount will refuse to unmount this partition. I found
this when going into SUM for checking and maintenance, so I think it would be
good to check which program still accesses files on a specific partition
allthough it should already be terminated due to the different stop mechanisms
run for the services in /etc/rc.d and /usr/local/etc/rc.d respectively, which
is performed by init, if I understood this correctly.

Example:

% shutdown now

... going SUM, starting sh ...

# umount /home
# umount /tmp
# umount /var
# umount /usr
umount: unmount of /usr failed: Device busy
# umount -f /usr
# mount -o ro /
# fsck ... blah blah ...

It would be good to be able to check why the partition is in state busy and
possible terminate / kill processes that cause this. Using the force (-f) seems
to be unneccessarily unfriendly. =^_^=

Thanks for suggestions!


-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Determining process preventing umount of busy partition

2009-02-11 Thread Robert Huff

Polytropon writes:

  I'd like to ask how to determine which process (or program) keeps
  a partition in state busy so that umount will refuse to unmount
  this partition. 

The traditional tool for doing this is sysutils/lsof.
(Please let me know if it compiles.)


Robert Huff

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


Re: reread newsyslog.conf without reboot

2009-02-11 Thread akruijff

Quoting Doug Hardie bc...@lafn.org:

On Feb 11, 2009, at 20:32, akrui...@dds.nl wrote:

Quoting Fbsd1 fb...@a1poweruser.com:

How do I get the system to reread /etc/newsyslog.conf file with out
rebooting the system?


This is usually done by sending a HUP signal with 'kill' to the   
newsyslog daemon. If this doesn't do it then you can kill the   
daemon and load it again with the script in /etc/rc.d/


You might want to take a look at /etc/crontab - in particular the entry
for newsyslog:

# Rotate log files every hour, if necessary.
0   *   *   *   *   rootnewsyslog

Its not a daemon.  It runs and exits.  It reads the newsyslog.conf file
each time it runs.


I overlooked this fact.

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


USB Hard disk with LUKS AES encryption regarding.

2009-02-11 Thread Garimella Srinivas
Hi All,

Iam new to FreeBSD coming from Debian. I have installed 7.0 and then upgraded 
base and ports to 7.1. While i am slowly able to come to terms with FreeBSD I 
have one issue unable to understand how to go about.

I have lot of data in a usb hard disk of 80GB capacity.  The disk is encrypted 
using LUKS AES . Can somebody give any pointers or guide to use the disk 
without reformatting.

Thanks

Garimella Srinivas



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


Re: Determining process preventing umount of busy partition

2009-02-11 Thread Polytropon
On Thu, 12 Feb 2009 00:44:19 -0500, Robert Huff roberth...@rcn.com wrote:
 
 Polytropon writes:
 
   I'd like to ask how to determine which process (or program) keeps
   a partition in state busy so that umount will refuse to unmount
   this partition. 
 
   The traditional tool for doing this is sysutils/lsof.
   (Please let me know if it compiles.)

Sadly not, but my Ports tree is not up to date, so I tried to compile
it in PORTVERSION=4.82A, with this error:

===  Building for lsof-4.82A,3
(cd lib; make DEBUG=-O2 CFGF=-fno-strict-aliasing -pipe -march=pentium4 
-march=pentium4 -DHASEFFNLINK=i_effnlink -DHASF_VNODE -DHASCPUMASK_T 
-DHASSBSTATE -DHAS_KVM_VNODE -DHAS_UFS1_2 -DHAS_NO_SI_UDEV -DHAS_SI_PRIV 
-DHAS_SYS_SX_H -DHAS_ZFS -DHAS_V_LOCKF -DHAS_LOCKF_ENTRY -DFREEBSDV=7000 
-DHASFDESCFS=2 -DHASPSEUDOFS -DHASNULLFS -DHASIPv6 -DHAS_STRFTIME 
-DLSOF_VSTR=\7.0-STABLE\)
cc  -fno-strict-aliasing -pipe -march=pentium4 -march=pentium4 
-DHASEFFNLINK=i_effnlink -DHASF_VNODE -DHASCPUMASK_T -DHASSBSTATE 
-DHAS_KVM_VNODE -DHAS_UFS1_2 -DHAS_NO_SI_UDEV -DHAS_SI_PRIV -DHAS_SYS_SX_H 
-DHAS_ZFS -DHAS_V_LOCKF -DHAS_LOCKF_ENTRY -DFREEBSDV=7000 -DHASFDESCFS=2 
-DHASPSEUDOFS -DHASNULLFS -DHASIPv6 -DHAS_STRFTIME -DLSOF_VSTR=7.0-STABLE 
-I/usr/src/sys -O2 -c ckkv.c
In file included from ckkv.c:33:
../machine.h:62: error: redefinition of typedef 'cpumask_t'
/usr/src/sys/sys/types.h:146: error: previous declaration of 'cpumask_t' was 
here
*** Error code 1

Stop in /usr/ports/sysutils/lsof/work/lsof_4.82A.freebsd/lib.
*** Error code 1

Stop in /usr/ports/sysutils/lsof/work/lsof_4.82A.freebsd.
*** Error code 1

Stop in /usr/ports/sysutils/lsof.




After I updated my Ports (just right now) I saw that lsof didn't change,
still same version number.




Installation via pkg_add -r worked without problems.

# pkg_add -r lsof
Fetching 
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7-stable/Latest/lsof.tbz...
 Done.

I've got lsof-4.82A,3 now. The manpage reveals that this seems to be
exactly what I've been searching for, so lsof | grep usr should to
the trick. Thanks!


-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Determining process preventing umount of busy partition

2009-02-11 Thread Polytropon
Replying to my own message... I'm so stupid: How do I *use* lsof which
is /usr/local/sbin/lsof when actually trying to umount /usr? Can I
put a copy of it into, let's say, /root/bin? I've checked library
dependencies:

# which lsof | xargs ldd
/usr/local/sbin/lsof:
libkvm.so.4 = /lib/libkvm.so.4 (0x280a2000)
libc.so.7 = /lib/libc.so.7 (0x280aa000)

So this is on the / partition. This should work, am I right?



-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Determining process preventing umount of busy partition

2009-02-11 Thread Matthew Seaman

Polytropon wrote:

Replying to my own message... I'm so stupid: How do I *use* lsof which
is /usr/local/sbin/lsof when actually trying to umount /usr? Can I
put a copy of it into, let's say, /root/bin? I've checked library
dependencies:

# which lsof | xargs ldd
/usr/local/sbin/lsof:
libkvm.so.4 = /lib/libkvm.so.4 (0x280a2000)
libc.so.7 = /lib/libc.so.7 (0x280aa000)

So this is on the / partition. This should work, am I right?


Don't use lsof for that then.  Use fstat(1) which is part of the base
system:

# fstat -f /usr

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: Determining process preventing umount of busy partition

2009-02-11 Thread Polytropon
On Thu, 12 Feb 2009 06:26:53 +, Matthew Seaman 
m.sea...@infracaninophile.co.uk wrote:
 Don't use lsof for that then.  Use fstat(1) which is part of the base
 system:
 
   # fstat -f /usr

Cool! I didn't know about how to use fstat for *this* purpose.



-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Determining process preventing umount of busy partition

2009-02-11 Thread Matthew Seaman

Matthew Seaman wrote:

Polytropon wrote:

Replying to my own message... I'm so stupid: How do I *use* lsof which
is /usr/local/sbin/lsof when actually trying to umount /usr? Can I
put a copy of it into, let's say, /root/bin? I've checked library
dependencies:

# which lsof | xargs ldd
/usr/local/sbin/lsof:
libkvm.so.4 = /lib/libkvm.so.4 (0x280a2000)
libc.so.7 = /lib/libc.so.7 (0x280aa000)

So this is on the / partition. This should work, am I right?


Don't use lsof for that then.  Use fstat(1) which is part of the base
system:

# fstat -f /usr



Must stop replying to these things before I've had enough coffee. 
fstat(1) is of course installed as /usr/bin/fstat so unmounting /usr

will seriously cramp its style.  As you say -- there are no shlib
dependencies on stuff under /usr so just slap a copy somewhere on
the root partition and away you go.

Cheers,

	Matthew, who avoids having to think about any of this stuff 
   by the simple expedient of not having a separate /usr

   partition.

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: Determining process preventing umount of busy partition

2009-02-11 Thread Tim Judd

Polytropon wrote:

I'd like to ask how to determine which process (or program) keeps a partition
in state busy so that umount will refuse to unmount this partition. I found
this when going into SUM for checking and maintenance, so I think it would be
good to check which program still accesses files on a specific partition
allthough it should already be terminated due to the different stop mechanisms
run for the services in /etc/rc.d and /usr/local/etc/rc.d respectively, which
is performed by init, if I understood this correctly.

Example:

% shutdown now

... going SUM, starting sh ...

# umount /home
# umount /tmp
# umount /var
# umount /usr
umount: unmount of /usr failed: Device busy
# umount -f /usr
# mount -o ro /
# fsck ... blah blah ...

It would be good to be able to check why the partition is in state busy and
possible terminate / kill processes that cause this. Using the force (-f) seems
to be unneccessarily unfriendly. =^_^=

Thanks for suggestions!



Most commonly for me is because my $PWD (or CWD) is in the filesystem i 
intend to umount
so as a habit now, i move myself to the root partition (when logged in 
as root) via the following, and assuming I want to umount /usr



# umount /usr
umount: unmount of /usr failed: Device busy
# cd
# umount /usr


cd, with no arguments, move you to ~ (aka $HOME)

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


How-to erase a DVD-RW

2009-02-11 Thread Gary Kline
iS there an easy way (by cmd-line) to erase a used DVD-RW?
I tried K3B and can't figure out where to click!  

tia,

gary


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


Re: Determining process preventing umount of busy partition

2009-02-11 Thread Polytropon
First of all, I checked both lsof's and fstat's output: NOTHING seems to
have a file open in the /usr partition. Very strange. Of course, I've tried
the copies of both tools in /root/bin so they don't cause any access on /usr
theirselves.



On Thu, 12 Feb 2009 00:08:58 -0700, Tim Judd taj...@gmail.com wrote:
 Most commonly for me is because my $PWD (or CWD) is in the filesystem i 
 intend to umount

I've checked this: In SUM, $CWD was /, and root's $HOME is /root on
the / partition. Users' home directories are on /home which is separated
from /usr (and can be unmounted without problems). At no time, a $CWD
was on /usr partition.



 so as a habit now, i move myself to the root partition (when logged in 
 as root) via the following, and assuming I want to umount /usr
 
 
 # umount /usr
 umount: unmount of /usr failed: Device busy
 # cd
 # umount /usr
 
 
 cd, with no arguments, move you to ~ (aka $HOME)

Which would be /root in case of SUM.



As I said, very strange...




-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How-to erase a DVD-RW

2009-02-11 Thread Manolis Kiagias

Gary Kline wrote:

iS there an easy way (by cmd-line) to erase a used DVD-RW?
I tried K3B and can't figure out where to click!  


tia,

gary


  


Try something like

dvd+rw-format /dev/cd0 -blank

dvd+rw-format comes with sysutils/dvd+rw-tools (you probably have it 
installed already).

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