Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

freebsd-questions Digest, Vol 71, Issue 11

0 views
Skip to first unread message

freebsd-ques...@freebsd.org

unread,
Aug 5, 2004, 8:02:05 AM8/5/04
to
Send freebsd-questions mailing list submissions to
freebsd-...@freebsd.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
or, via email, send a message with subject or body 'help' to
freebsd-ques...@freebsd.org

You can reach the person managing the list at
freebsd-que...@freebsd.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of freebsd-questions digest..."


Today's Topics:

1. Change/Ignore TOS value (Bikrant Neupane)
2. Re: Can i make a CD of the Ports Collection (BSDjunkie)
3. RAID 5 stripe size (H. Sandring)
4. Re: RAID 5 stripe size (Stijn Hoop)
5. Re: 4.2 -> 5.2 passwd format change? (Peter N. M. Hansteen)
6. Re: Sun Fire V65x Support (Olaf Hoyer)
7. Only root is able to login (Thomas Krause)
8. Re: Trancode package works, but not the port - the package
has limitations: WAS: Error installing transcode port
(Joachim Dagerot)
9. Re: Only root is able to login (Matthew Seaman)
10. RE: IPFW Configuration (Philip Payne)
11. Back-up on remote machine (Roger Merritt)
12. Re: Back-up on remote machine (Joost Bekkers)


----------------------------------------------------------------------

Message: 1
Date: Thu, 5 Aug 2004 12:05:27 +0545
From: Bikrant Neupane <bikra...@wlink.com.np>
Subject: Change/Ignore TOS value
To: freebsd-...@freebsd.org
Cc: freeb...@freebsd.org
Message-ID: <200408051205.2...@wlink.com.np>
Content-Type: text/plain; charset="us-ascii"

Hi,
I would like my freebsd system to ignore the IP TOS value (whatever it is set
to). Or is there any way to set the TOS value to some preferred value??


thanks
bikrant

------------------------------

Message: 2
Date: Wed, 4 Aug 2004 23:54:14 -0700 (PDT)
From: BSDjunkie <gooober3...@yahoo.com>
Subject: Re: Can i make a CD of the Ports Collection
To: FreeBSD Questions <freebsd-...@freebsd.org>
Message-ID: <2004080506541...@web51308.mail.yahoo.com>
Content-Type: text/plain; charset=us-ascii

Peter,

You can also reinstall the ports tree from the iso
image.

There's an install script on the cd that you can run
if needed to reinstall the release version of the
ports tree.

Updating should be done through cvsup if possible.

Mark

--- Olaf Hoyer <oho...@ohoyer.de> wrote:

> On Wed, 4 Aug 2004, Peter Ryan wrote:
>
> > I am very new, and have been reinstalling
> > FreeBSD many times to clean up whatever
> > mess i make and start again.
> >
> > I recently used cvsup to update my
> > ports collection for the 4.10_RELEASE.
> >
> > Now, when I reinstall, it takes much longer
> > because i bring in the updated ports collection
> > rather than the ports collection on the
> > install CD (which i burnt from an ISO file)
> >
>
> The whole portscollection is also available via ftp:
>
> on ftp2.de.freebsd.org:
>
> ftp> pwd
> 257 "/pub/FreeBSD/ports/ports" is current directory.
> ftp> ls
> 227 Entering Passive Mode (134,76,11,100,141,111)
> 150 Opening ASCII mode data connection for /bin/ls.
> total 25760
> drwxr-xr-x 2 emoenke ftp 4096 Aug 3
> 01:53 .
> drwxr-xr-x 11 emoenke ftp 4096 Jul 29
> 2003 ..
> -rw-r--r-- 1 emoenke ftp 1006 Jun 19
> 01:49 README.TXT
> -rw-r--r-- 1 emoenke ftp 26332175 Aug 3
> 01:26 ports.tar.gz
> 226 Transfer complete.
>
>
>
> simply download the tar.gz, and extract it to
> /usr/ports
>
>
>
> On each ISO of a release, like the 4.10R-CD #1, they
> take a snapshot of
> the ports tree when the make the assumption that it
> ist quite
> consistent. So when you download in say, 3 months a
> 4.10 ISO, the ports
> tree therein will be more than 3 months old.
>
> In that case, use whether cvsup or method above to
> get a recent ports
> tree.
>
> HTH
> Olaf
>
>
> --
> Olaf Hoyer oho...@gaff.hhhr.ision.net
> Fuerchterliche Erlebniss geben zu raten,
> ob der, welcher sie erlebt, nicht etwas
> Fuerchterliches ist.
> (Nietzsche, Jenseits von Gut und Boese)
> _______________________________________________
> freebsd-...@freebsd.org mailing list
>
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questi...@freebsd.org"
>


------------------------------

Message: 3
Date: Thu, 5 Aug 2004 15:02:25 +0800
From: "H. Sandring" <h.san...@gmx.net>
Subject: RAID 5 stripe size
To: <freebsd-...@freebsd.org>
Message-ID: <003601c47aba$2dd9ca10$0501a8c0@kojo>
Content-Type: text/plain; charset="us-ascii"

Dear list

Is there an intelligent way of choosing the stripe size of a RAID 5
array?

TIA

zheyu

------------------------------

Message: 4
Date: Thu, 5 Aug 2004 09:25:22 +0200
From: Stijn Hoop <st...@win.tue.nl>
Subject: Re: RAID 5 stripe size
To: "H. Sandring" <h.san...@gmx.net>
Cc: freebsd-...@freebsd.org
Message-ID: <20040805072...@pcwin002.win.tue.nl>
Content-Type: text/plain; charset="us-ascii"

Hi,

On Thu, Aug 05, 2004 at 03:02:25PM +0800, H. Sandring wrote:
> Is there an intelligent way of choosing the stripe size of a RAID 5
> array?

>From man vinum:

"For optimum performance, stripes should be at least 128 kB in size: anything
smaller will result in a significant increase in I/O activ- ity due to mapping
of individual requests over multiple disks. The performance improvement due
to the increased number of concurrent transfers caused by this mapping will
not make up for the performance drop due to the increase in latency. A good
guideline for stripe size is between 256 kB and 512 kB. Avoid powers of 2,
however: they tend to cause all superblocks to be placed on the first subdisk."

I expect this to be true for non-vinum RAID-5 volumes as well.

HTH,

--Stijn

--
The most reliable proof that there are extraterrestrial intelligent
lifeforms out there is that nobody actually tries to get in contact
with us.
-- Dirk Mueller
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040805/b053e2cb/attachment-0001.bin

------------------------------

Message: 5
Date: 05 Aug 2004 09:34:34 +0200
From: pe...@bgnett.no (Peter N. M. Hansteen)
Subject: Re: 4.2 -> 5.2 passwd format change?
To: freebsd-...@freebsd.org
Message-ID: <87fz726...@tosh.datadok.no>
Content-Type: text/plain; charset=us-ascii

Lowell Gilbert <freebsd-que...@be-well.ilk.org> writes:

> I've moved password entries from 4.x to 5.x with no problem.
>
> Did you remember to rebuild the database?

er, it seems that was the problem, exactly. Thanks!

--
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://www.blug.linux.no/rfc1149/ http://www.datadok.no/
"First, we kill all the spammers" The Usenet Bard, "Twice-forwarded tales"


------------------------------

Message: 6
Date: Thu, 5 Aug 2004 10:14:42 +0200 (CEST)
From: Olaf Hoyer <oho...@ohoyer.de>
Subject: Re: Sun Fire V65x Support
To: Richard Cotrina <r...@speedy.net.pe>
Cc: ques...@freebsd.org
Message-ID: <2004080510...@gaff.hhhr.ision.net>
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Wed, 4 Aug 2004, Richard Cotrina wrote:

>
> Hello :
>
> Is anyone running FreeBSD-STABLE in an intel based Sun Hardware (Sun Fire
> V65x) ? I need running it in a production environment and I prefer FreeBSD rather
> than RedHat Enterprise Linux or Solaris X86 (they are the recommended OS).

Well, some time ago I had the opportunity to put a 4.9R IIRC on a V65x
with the RAID card installed.

Played nicely, Raid was an iir, so anything went fine.
Had to give the box next day to an other project, where it was deployed
for production...

So it works, but I have no figures with long-term stability etc, but
given that it is a re-branded Intel OEM box it should play well.

HTH
Olaf

--
Olaf Hoyer oho...@gaff.hhhr.ision.net
Fuerchterliche Erlebniss geben zu raten,
ob der, welcher sie erlebt, nicht etwas Fuerchterliches ist.
(Nietzsche, Jenseits von Gut und Boese)

------------------------------

Message: 7
Date: Thu, 5 Aug 2004 10:20:18 +0200 (CEST)
From: "Thomas Krause" <f...@chef-ingenieur.de>
Subject: Only root is able to login
To: freebsd-...@freebsd.org
Message-ID: <1987.212.78.101.51....@mta.webmatic.de>
Content-Type: text/plain;charset=iso-8859-1

Hello,
I've a big problem, that only root is able to login to a new FreeBSD 5.2.1
box. Neither login nor su works. I've no local access to the machine.
A ftp-login is possible for normal users.

mdm-online:/ # su - abc
su: /bin/sh: Permission denied

mdm-online:/ # login abc
Password:
Copyright (c) 1992-2004 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.

FreeBSD 5.2.1-RELEASE-p9 (MDM-ONLINE) #1: Mon Jul 26 22:24:58 CEST 2004

Welcome to FreeBSD!

login: /bin/sh: No such file or directory

mdm-online:/ # ls -l /bin/sh
-r-xr-xr-x 1 root wheel 753872 Jul 26 10:18 /bin/sh
mdm-online:/ # pw usershow abc
abc:*:1003:1003::0:0:User &:/home/abc:/bin/sh
mdm-online:/ # ls -ld /home/abc
drwxr-xr-x 2 abc abc 512 Aug 5 09:33 /home/abc
mdm-online:/ # ls -la /home/abc
total 20
drwxr-xr-x 2 abc abc 512 Aug 5 09:33 .
drwxr-xr-x 7 root wheel 512 Aug 5 09:34 ..
-rw-r--r-- 1 abc abc 767 Aug 5 09:33 .cshrc
-rw-r--r-- 1 abc abc 248 Aug 5 09:33 .login
-rw-r--r-- 1 abc abc 158 Aug 5 09:33 .login_conf
-rw------- 1 abc abc 373 Aug 5 09:33 .mail_aliases
-rw-r--r-- 1 abc abc 331 Aug 5 09:33 .mailrc
-rw-r--r-- 1 abc abc 797 Aug 5 09:33 .profile
-rw------- 1 abc abc 276 Aug 5 09:33 .rhosts
-rw-r--r-- 1 abc abc 975 Aug 5 09:33 .shrc

I've not modified any login* file in /etc

I've no idea what's the reason, also as it worked before.
Any hints would be greatful.

Regards,
Thomas.


------------------------------

Message: 8
Date: Thu, 05 Aug 2004 11:24:02 +0200
From: Joachim Dagerot <joa...@dagerot.nu>
Subject: Re: Trancode package works, but not the port - the package
has limitations: WAS: Error installing transcode port
To: Michael Johnson <ah...@ahze.net>
Cc: freebsd-...@freebsd.org
Message-ID: <200408050924...@thunder.trej.net>
Content-Type: text/plain; charset=us-ascii

Thanks alot, I downloaded the sources and also created a file with
your patch.

However, I'm not too familiar with using the patch utility, in what
directory shall I be when applying the patch.

Do you or anyone else know a good tutorial/how-to on this issue?


-------------------
| the libdv api has changed, I submitted a patch here.
| http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/69406
| you can use that to compile from source until (and if) it is
committed
| Michael
|
|
| On Aug 4, 2004, at 6:24 PM, Joachim Dagerot wrote:
|
| > Okay, I gave up on installing the transcode port, and used the
pkg_add
| > -r transcode instead. Worked excellent. (I have never installade
a
| > package before).
| >
| > However, the package seems to not include support for DV files
| > (camcorder files). Can I send args like to make command when
| > installing packages?
|
| _______________________________________________
| freebsd-...@freebsd.org mailing list
| http://lists.freebsd.org/mailman/listinfo/freebsd-questions
| To unsubscribe, send any mail to
"freebsd-questi...@freebsd.org"
|
_________________________
Contact info:
Joachim Dagerot
Cellular Phone: +46 70 265 57 03
EMail: joa...@dagerot.nu

------------------------------

Message: 9
Date: Thu, 5 Aug 2004 11:13:35 +0100
From: Matthew Seaman <m.se...@infracaninophile.co.uk>
Subject: Re: Only root is able to login
To: Thomas Krause <f...@chef-ingenieur.de>
Cc: freebsd-...@freebsd.org
Message-ID:
<20040805101...@happy-idiot-talk.infracaninophile.co.uk>
Content-Type: text/plain; charset="us-ascii"

On Thu, Aug 05, 2004 at 10:20:18AM +0200, Thomas Krause wrote:
> Hello,
> I've a big problem, that only root is able to login to a new FreeBSD 5.2.1
> box. Neither login nor su works. I've no local access to the machine.
> A ftp-login is possible for normal users.

For the sake of the archives, I will point out:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html#SU-WHEEL-GROUP

which is the usual cause of this sort of thing, but apparently not in
this case.

> mdm-online:/ # su - abc
> su: /bin/sh: Permission denied
>
> mdm-online:/ # login abc
> Password:
> Copyright (c) 1992-2004 The FreeBSD Project.
> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
> The Regents of the University of California. All rights reserved.
>
> FreeBSD 5.2.1-RELEASE-p9 (MDM-ONLINE) #1: Mon Jul 26 22:24:58 CEST 2004
>
> Welcome to FreeBSD!
>
> login: /bin/sh: No such file or directory

At a guess: both login(1) and su(1) are meant to be SUID programs:

% ls -la /usr/bin/su /usr/bin/login
-r-sr-xr-x 1 root wheel 21824 Jun 6 14:29 /usr/bin/login*
-r-sr-xr-x 1 root wheel 8200 Jun 6 14:29 /usr/bin/su*

They won't work without that SUID bit. Sounds to me as if someone has
been a bit heavy handed trying to lock down the system. Or else the
system was installed by copying from somewhere else, but using a
method which automatically drops SUID and similar bits.

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks
Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614 Bucks., SL7 1TH UK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040805/b3bdd156/attachment-0001.bin

------------------------------

Message: 10
Date: Thu, 5 Aug 2004 11:53:48 +0100
From: Philip Payne <philip...@uk.mci.com>
Subject: RE: IPFW Configuration
To: Jonathan <poiso...@optonline.net>
Cc: "FreeBSD Questions \(E-mail\)" <freebsd-...@freebsd.org>
Message-ID:
<A0A204EE2E51BC41BCDE...@gblon1exch06.uk.mcilink.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi Jonathan,

> will be able to work. My box is located at a datacebter and my box is
> allocated with about 90 IP addresses (and also the main
> server IP which
> was given to me when i first purchased the line). I would
> like to know
> how to configure /etc/rc.firewall to support my MAIN ip and
> also how to
> make sure the other IPS added to my box are recognized and
> protected by
> the firewall.
>
> Also I noticed in rc.firewall there are different modes to put the
> firewall in like simple mode, client mode, etc. (different firewall
> powers i guess). It would be greatly appreciated if someone
> can show me
> how to configure ipfw. I could not thank anyone more for the
> future help
> i might recieve on this issue.

simple & client mode are just different rulesets within rc.firewall. You can
of course specify your very own ruleset and point rc.conf at a different
file than rc.firewall.

Two things which may help.

1) There is a keyword "me" that you can use in IPFW rules that prevents you
needing to specify the server's actual IP's.
2) fwbuilder.org is a very handy tool for generating firewall config. if the
"me" keyword is too generic, you may find it easier have a gui that can hold
different objects for each IP address useful.... rather than write
repetitive firewall script lines. Also, if you're new to firewall policy
sometimes a gui can help.

If you want advice on generating a firewall policy, well... there are some
high level design rules you can follow that helps. I've posted on this topic
a number of times to the list so just search the archives.

Lastly, and not meant in any rude way, if you haven't > man ipfw ... I
personally found it very useful.

Hope that helps

Phil.

------------------------------

Message: 11
Date: Thu, 05 Aug 2004 17:58:24 +0700
From: Roger Merritt <mcro...@stjohn.ac.th>
Subject: Back-up on remote machine
To: freebsd-...@FreeBSD.ORG
Message-ID: <5.2.0.9.0.200408...@127.0.0.1>
Content-Type: text/plain; charset="us-ascii"; format=flowed

I've been playing with this for a while. I need to add a small (4 GB) hard
drive to one of my servers. Partly because I need more storage space,
partly because I think there's something wrong with the present hard drive
-- I get page faults while in kernel mode (fatal signal 12, I think it is)
and spontaneous reboots when I try to build world on this drive (or make
index, or upgrade some ports, etc.).

What I want to do is copy my whole /usr/home directory tree to another Free
BSD machine down the hall, pull the current hard drive (4 GB) out, put the
new hard drive with a fresh build of Free BSD in the box as the master
drive, reformat the old drive, and finally, copy the /usr/home directory
tree back to the old hard drive and mount it separately as /usr/home.

I've found directions that almost fit my needs, but not quite. What I would
like to do is tar the directory tree and pipe it to either scp or ssh. What
I don't want to do, because I don't think I have enough room, is make a tar
file on the old machine. One example I found on the WWW is: tar -czf -
/some/file | ssh host.name tar -xzf - -C /destination.

That's not quite what I want, because I don't see any need to untar
everything at the far end, but I can't send a file without using some
command to ssh. I thought tar -czf - /some/file | scp -
name@remotehost:somefile.tar.gz, but it doesn't seem to work. Can anyone
point out where I'm going wrong? I guess if I have to I can untar the
directory tree to some temporary place on the remote host -- that one has
plenty of room on it, but it seems like an inelegant solution. That's
really my only objection to it.

--
Roger


------------------------------

Message: 12
Date: Thu, 5 Aug 2004 13:51:27 +0200
From: Joost Bekkers <jo...@jodocus.org>
Subject: Re: Back-up on remote machine
To: Roger Merritt <mcro...@stjohn.ac.th>
Cc: freebsd-...@freebsd.org
Message-ID: <20040805115...@bps.jodocus.org>
Content-Type: text/plain; charset=us-ascii

On Thu, Aug 05, 2004 at 05:58:24PM +0700, Roger Merritt wrote:
> One example I found on the WWW is: tar -czf - /some/file | \
> ssh host.name tar -xzf - -C /destination.
>
> That's not quite what I want, because I don't see any need to untar
> everything at the far end, but I can't send a file without using some
> command to ssh.

If all you need is somthing at the other end capturing the data try

... | ssh remotehost "cat - > myfile"

--
greetz Joost
jo...@jodocus.org

------------------------------

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

End of freebsd-questions Digest, Vol 71, Issue 11
*************************************************

0 new messages