9.1 - 9.2 upgrade, clang question
When upgrading from 9.1 to 9.2 using source, is there any benefit to rebuilding twice, due to the clang version change? So that the second buildworld/kernel is done from the updated clang 3.3, instead of the clang 3.1 that was in FreeBSD 9.1? -- Thanks, Dean E. Weimer http://www.dweimer.net/ ___ 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: 9.1 - 9.2 upgrade, clang question
03.10.2013 17:36, dweimer wrote: When upgrading from 9.1 to 9.2 using source, is there any benefit to rebuilding twice, due to the clang version change? So that the second buildworld/kernel is done from the updated clang 3.3, instead of the clang 3.1 that was in FreeBSD 9.1? During the buildworld first new compiler is built and then this new compiler is used to build everything else. There may be other reasons to double build though... Maybe after cleaning system with `make delete-old`/`make delete-old-libs`? -- Sphinx of black quartz, judge my vow. ___ 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: Diskless question
From: Bernt Hansson b...@bananmonarki.se To: Bernt Hansson b...@bananmonarki.se Cc: Julian H. Stacey j...@berklix.com; freebsd-questions@freebsd.org Sent: Saturday, September 14, 2013 12:37 PM Subject: Re: Diskless question On 2013-09-14 15:41, Bernt Hansson wrote: On 2013-09-14 11:05, Julian H. Stacey wrote: Hi, Reference: From: Bernt Hansson b...@bananmonarki.se Date: Sat, 14 Sep 2013 09:36:58 +0200 Bernt Hansson wrote: Hello list! I have a setup with a diskless machine and working, but I can not log in as root on the diskless. How to proceed? Log in as non root see what /var/log shows Mount the media elsewhere then either give a good look at what might be wrong, relax some restrictive permissions create some temporary back doors. rlogin, ssh, no or simple password on toor etc Cheers, Julian I solved it. Root did not have a password as strange as it may be. Unsolved. Root do not have a password, pressing enter at the passwd prompt gives sorry ___ 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 It's been a long time since I did this but there was some command for passwd for root which I had to do as well. The initial diskless boot will login you in with root without a password as I recall. Aha, here it is... cd /etc cp passwd master.passwd /pxeroot/conf/default/etc/ cd /pxeroot/etc pwd_mkdb -d /pxeroot/etc master.passwd You may need to adjust this based on your setup. I found lots of good info on diskless booting at this site: http://www.nber.org/sys-admin/FreeBSD-diskless.html ___ 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: Diskless question
Hi, Reference: From: Bernt Hansson b...@bananmonarki.se Date: Sat, 14 Sep 2013 09:36:58 +0200 Bernt Hansson wrote: Hello list! I have a setup with a diskless machine and working, but I can not log in as root on the diskless. How to proceed? Log in as non root see what /var/log shows Mount the media elsewhere then either give a good look at what might be wrong, relax some restrictive permissions create some temporary back doors. rlogin, ssh, no or simple password on toor etc Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultant, Munich http://berklix.com Reply below not above, like a play script. Indent old text with . Send plain text. No quoted-printable, HTML, base64, multipart/alternative. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Network Question
Aloha, Sounds like an interesting setup. Do you have one machine acting as a gateway? On Sat, Sep 14, 2013 at 2:28 AM, Al Plant n...@hdk5.net wrote: Eugene wrote: Hi Daniel, The easiest way is to check the LAN Config (or similar) page of the router. They usually allow one to specify fixed IP and hostname for the DHCP clients based on the MAC addresses. Best wishes Eugene -Original Message- From: Daniel Nang Sent: Thursday, September 12, 2013 11:16 PM To: Adam Vande More Cc: freebsd-questions@freebsd.org Subject: Re: Network Question That was easier than I thought. My initial approach already looked something like this, except that for the ip address I always put the machine's name as in: machine1# ssh u...@machine2.example.com which results in ssh: Could not resolve hostname machine2.example.com: hostname nor servname provided, or not known I think the problem here lies with the /etc/hosts file where machine1 and machine2 have to be registered respectively. The thing here is that the ip isn't static which makes this approach somewhat difficult to realize. Got it. Thanks. On Fri, Sep 13, 2013 at 2:51 AM, Adam Vande More amvandem...@gmail.com wrote: On Thu, Sep 12, 2013 at 1:45 PM, Daniel Nang daniel.nan...@gmail.com** wrote: Hello, I have two computers, both running FreeBSD, accessing the web via DHCP from the router. The setup looks like this: Internet | | | machine1.example.com --- Router --- machine.2.example.com - DHCP -- DHCP - Both computers can access the internet with no problems. So far so good... My question is, if I can simultaneously have the computers access the net as in the given picture and also let them communicate with each other e.g. via ssh? machine1# ssh `ip of machine2` -- Adam Vande More __**_ # Aloha, For many years I have 8 Freebsd boxes behind a PF firewall on a static labeled lan. Only one public address feeds the lan. All the boxes can work the internet and can ssh. I found that easier than dhcp. :) ~Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 + http://hawaiidakine.com + http://freebsdinfo.org + + http://aloha50.net - Supporting - FreeBSD 7.2 - 8.0 - 9* + email: n...@hdk5.net All that's really worth doing is what we do for others.- Lewis Carrol ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Network Question
Daniel Nang wrote: Aloha, Sounds like an interesting setup. Do you have one machine acting as a gateway? On Sat, Sep 14, 2013 at 2:28 AM, Al Plant n...@hdk5.net mailto:n...@hdk5.net wrote: Eugene wrote: Hi Daniel, The easiest way is to check the LAN Config (or similar) page of the router. They usually allow one to specify fixed IP and hostname for the DHCP clients based on the MAC addresses. Best wishes Eugene -Original Message- From: Daniel Nang Sent: Thursday, September 12, 2013 11:16 PM To: Adam Vande More Cc: freebsd-questions@freebsd.org mailto:freebsd-questions@freebsd.org Subject: Re: Network Question That was easier than I thought. My initial approach already looked something like this, except that for the ip address I always put the machine's name as in: machine1# ssh u...@machine2.example.com mailto:u...@machine2.example.com which results in ssh: Could not resolve hostname machine2.example.com http://machine2.example.com: hostname nor servname provided, or not known I think the problem here lies with the /etc/hosts file where machine1 and machine2 have to be registered respectively. The thing here is that the ip isn't static which makes this approach somewhat difficult to realize. Got it. Thanks. On Fri, Sep 13, 2013 at 2:51 AM, Adam Vande More amvandem...@gmail.com mailto:amvandem...@gmail.comwrote: On Thu, Sep 12, 2013 at 1:45 PM, Daniel Nang daniel.nan...@gmail.com mailto:daniel.nan...@gmail.com__wrote: Hello, I have two computers, both running FreeBSD, accessing the web via DHCP from the router. The setup looks like this: Internet | | | machine1.example.com http://machine1.example.com --- Router --- machine.2.example.com http://machine.2.example.com - DHCP - - DHCP - Both computers can access the internet with no problems. So far so good... My question is, if I can simultaneously have the computers access the net as in the given picture and also let them communicate with each other e.g. via ssh? machine1# ssh `ip of machine2` -- Adam Vande More _ # Aloha, For many years I have 8 Freebsd boxes behind a PF firewall on a static labeled lan. Only one public address feeds the lan. All the boxes can work the internet and can ssh. I found that easier than dhcp. :) ~Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 + http://hawaiidakine.com + http://freebsdinfo.org + + http://aloha50.net - Supporting - FreeBSD 7.2 - 8.0 - 9* + email: n...@hdk5.net mailto:n...@hdk5.net All that's really worth doing is what we do for others.- Lewis Carrol Aloha, I have a gateway separate on an old box running a Freesco floppy disk. I have many old boxes here and they still work. A couple can run Up to FreeBSD 10. No gui needed as they are for firewall and servers and the like. ~Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 + http://hawaiidakine.com + http://freebsdinfo.org + + http://aloha50.net - Supporting - FreeBSD 7.2 - 8.0 - 9* + email: n...@hdk5.net All that's really worth doing is what we do for others.- Lewis Carrol ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Network Question
On 12/09/2013 20:16, Daniel Nang wrote: That was easier than I thought. My initial approach already looked something like this, except that for the ip address I always put the machine's name as in: machine1# ssh u...@machine2.example.com which results in ssh: Could not resolve hostname machine2.example.com: hostname nor servname provided, or not known I think the problem here lies with the /etc/hosts file where machine1 and machine2 have to be registered respectively. The thing here is that the ip isn't static which makes this approach somewhat difficult to realize. Got it. Thanks. On Fri, Sep 13, 2013 at 2:51 AM, Adam Vande More amvandem...@gmail.comwrote: On Thu, Sep 12, 2013 at 1:45 PM, Daniel Nang daniel.nan...@gmail.comwrote: Hello, I have two computers, both running FreeBSD, accessing the web via DHCP from the router. The setup looks like this: Internet | | | machine1.example.com --- Router --- machine.2.example.com - DHCP -- DHCP - Both computers can access the internet with no problems. So far so good... My question is, if I can simultaneously have the computers access the net as in the given picture and also let them communicate with each other e.g. via ssh? machine1# ssh `ip of machine2` -- Adam Vande More ___ If you really only have two (or a very few machines) just give them static local IP addresses and add the host names to /etc/hosts on each box. Find out the address pool used by the DHCP server (presumably in the router) and choose your static addresses to avoid it. If you use dynamic IP addresses (form DHCP) you may have some fun and games when it comes to security certificates. Regards, Frank. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Network Question
Eugene wrote: Hi Daniel, The easiest way is to check the LAN Config (or similar) page of the router. They usually allow one to specify fixed IP and hostname for the DHCP clients based on the MAC addresses. Best wishes Eugene -Original Message- From: Daniel Nang Sent: Thursday, September 12, 2013 11:16 PM To: Adam Vande More Cc: freebsd-questions@freebsd.org Subject: Re: Network Question That was easier than I thought. My initial approach already looked something like this, except that for the ip address I always put the machine's name as in: machine1# ssh u...@machine2.example.com which results in ssh: Could not resolve hostname machine2.example.com: hostname nor servname provided, or not known I think the problem here lies with the /etc/hosts file where machine1 and machine2 have to be registered respectively. The thing here is that the ip isn't static which makes this approach somewhat difficult to realize. Got it. Thanks. On Fri, Sep 13, 2013 at 2:51 AM, Adam Vande More amvandem...@gmail.comwrote: On Thu, Sep 12, 2013 at 1:45 PM, Daniel Nang daniel.nan...@gmail.comwrote: Hello, I have two computers, both running FreeBSD, accessing the web via DHCP from the router. The setup looks like this: Internet | | | machine1.example.com --- Router --- machine.2.example.com - DHCP -- DHCP - Both computers can access the internet with no problems. So far so good... My question is, if I can simultaneously have the computers access the net as in the given picture and also let them communicate with each other e.g. via ssh? machine1# ssh `ip of machine2` -- Adam Vande More ___ # Aloha, For many years I have 8 Freebsd boxes behind a PF firewall on a static labeled lan. Only one public address feeds the lan. All the boxes can work the internet and can ssh. I found that easier than dhcp. :) ~Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 + http://hawaiidakine.com + http://freebsdinfo.org + + http://aloha50.net - Supporting - FreeBSD 7.2 - 8.0 - 9* + email: n...@hdk5.net All that's really worth doing is what we do for others.- Lewis Carrol ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Network Question
Hi, Yes, I have a similar setup at work (though currently migrating it to DHCP to accommodate mobile clients and simplify management). But I suppose OP would like to basically keep his the architecture intact =) Best wishes Eugene -Original Message- From: Al Plant Sent: Friday, September 13, 2013 10:28 PM To: Eugene Cc: freebsd-questions@freebsd.org ; Daniel Nang Subject: Re: Network Question Eugene wrote: Hi Daniel, The easiest way is to check the LAN Config (or similar) page of the router. They usually allow one to specify fixed IP and hostname for the DHCP clients based on the MAC addresses. Aloha, For many years I have 8 Freebsd boxes behind a PF firewall on a static labeled lan. Only one public address feeds the lan. All the boxes can work the internet and can ssh. I found that easier than dhcp. ___ 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: Question about a possible missing line/entry for file UPDATING (from http://svnweb.freebsd.org) - 8.4-RELEASE plus branches
Hi Damien (I'm sorry for delay) Thanks for your comments (specially for the tips / experience with your -STABLE boxes) Regards, Pablo Carboni. On Wed, Sep 4, 2013 at 2:57 PM, Damien Fleuriot m...@my.gd wrote: However minor the issue seems, I think it warrants a PR, if at least so the entry is added for the next revision of 8.4-RELEASE. Regarding -STABLE, while I respect your decision to be conservative and run -RELEASE, I'd like to point out we've not run into any problem here, in over 3 years with ~40 firewall boxes. On 4 September 2013 17:48, Pablo Carboni pcarb...@gmail.com wrote: Dear Damien, I use to install and update 'Releng' releases (plus patches, but not stable releases) in our production servers (Ok, I agree stable is fine, but my main reason is to be conservative under some circunstances). (BTW, You're right, on 8-STABLE branch, it appears the 'missing' line I was looking for) Just as a last comment, I've found this 'normal line' on stable branch (but not on release/releng): http://svnweb.freebsd.org/base/stable/8/UPDATING?view=log Revision *251500*http://svnweb.freebsd.org/base?view=revisionrevision=251500 - (viewhttp://svnweb.freebsd.org/base/stable/8/UPDATING?revision=251500view=markup) (downloadhttp://svnweb.freebsd.org/base/stable/8/UPDATING?revision=251500view=co) (annotatehttp://svnweb.freebsd.org/base/stable/8/UPDATING?annotate=251500) - [select for diffs]http://svnweb.freebsd.org/base/stable/8/UPDATING?view=logr1=251500log_pagestart=0 Modified *Fri Jun 7 15:52:33 2013 UTC* (2 months, 4 weeks ago) by * pluknet* File length: 74494 byte(s) Diff to previous 251026http://svnweb.freebsd.org/base/stable/8/UPDATING?r1=251026r2=251500 Add the entry for 8.4-RELEASE. (I think it should be added by someone to 8.4 releng branch). If this is the case, shouldn't be sent this 'missing entry' to anyone by the means of 'PR' ? Thank you very much for your patience :) Regards, Pablo. On Wed, Sep 4, 2013 at 6:51 AM, Damien Fleuriot m...@my.gd wrote: Note that, as opposed to you, I'm tracking 8-STABLE and not 8.4-RELEASE ! UPDATING: $FreeBSD: src/UPDATING,v 1.632.2.39 2013/08/23 15:21:39 svnexp Exp $ newvers.sh: # $FreeBSD: src/sys/conf/newvers.sh,v 1.83.2.25 2013/08/07 08:26:07 svnexp Exp $ I'll check our clusters of firewalls to see if I've got any 8.4-RELEASE box lying around, but don't hold your breath, we almost universally track 8-STABLE... On 4 September 2013 00:49, Pablo Carboni pcarb...@gmail.com wrote: Hello Damien, (First at all, thanks for your response). I do not want to insist too much with this silly thing, but(just in case) I've updated my sources today from svn0.us-west.freebsd.org(base/releng/8.4), - previously to my first e-mail - and: (Argentina's current TZ is GMT-3) -rw-r--r-- 1 root wheel 74967 Sep 3 12:11 /usr/src/UPDATING The 'grepped' lines, shows me: 8.3-RELEASE [...] 8.0-RELEASE (But 8.4 still doesn't appear). (However, while grepping first lines in /usr/src/sys/conf/newvers.sh shows me: # $FreeBSD: releng/8.4/sys/conf/newvers.sh 254632 2013-08-22 00:51:56Z delphij $ TYPE=FreeBSD REVISION=8.4 BRANCH=RELEASE-p3 (Same svn id for UPDATING/newvers.sh). Any clues? (What's your svn $Id for UPDATING? - I mean, the whole line, the last) Thanks a lot! Regards, Pablo Carboni. P.S.: The same happens for svn0.us-east.freebsd.org/base/releng/8.4/UPDATING. http://svn0.us-east.freebsd.org/base/releng/8.4/UPDATING (Maybe I'm afraid for local syncing problems on my fbsd server) On Tue, Sep 3, 2013 at 7:13 PM, Damien Fleuriot m...@my.gd wrote: From: -rw-r--r-- 1 root wheel 75631 Aug 27 12:46 /usr/src/UPDATING 20130607: 8.4-RELEASE. On 3 September 2013 18:16, Pablo Carboni pcarb...@gmail.com wrote: Dear Sirs, Just for curious, today I was looking for the date/entry that belongs to FreeBSD 8.4-RELEASE inside UPDATING file, with no luck. Maybe I've made a mistake and I was looking inside a wrong file/url? It doesn't appear, neither http://svnweb.freebsd.org/base/release/8.4.0/UPDATING?revision=251259view=markup (RELEASE branch) nor http://svnweb.freebsd.org/base/releng/8.4/UPDATING?view=markuppathrev=254632 (RELENG branch, currently last revision). (This 'little detail' includes sources for 8.4-RELEASE and branch 8.4-RELEASE-p3, which I've downloaded recently). A quick dirty search I've did on a 8.4-RELEASE-p3 box: grep 8\..*-RELEASE /usr/src/UPDATING (There is no reference for '8.4') Thanks in advance! Regards, Pablo Carboni ___ 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
Network Question
Hello, I have two computers, both running FreeBSD, accessing the web via DHCP from the router. The setup looks like this: Internet | | | machine1.example.com --- Router --- machine.2.example.com - DHCP -- DHCP - Both computers can access the internet with no problems. So far so good... My question is, if I can simultaneously have the computers access the net as in the given picture and also let them communicate with each other e.g. via ssh? Thanks Daniel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Network Question
Just read your mail. I will have to take some time, to look into what you have said, as I have not yet used the concepts that you spoke about. Another solution would be to install a new network card into both computers and assign static ip addresses to them, but I do not want to do that. Daniel On Fri, Sep 13, 2013 at 3:06 AM, Kurt Buff kurt.b...@gmail.com wrote: On Thu, Sep 12, 2013 at 11:51 AM, Adam Vande More amvandem...@gmail.com wrote: On Thu, Sep 12, 2013 at 1:45 PM, Daniel Nang daniel.nan...@gmail.com wrote: Hello, I have two computers, both running FreeBSD, accessing the web via DHCP from the router. The setup looks like this: Internet | | | machine1.example.com --- Router --- machine.2.example.com - DHCP -- DHCP - Both computers can access the internet with no problems. So far so good... My question is, if I can simultaneously have the computers access the net as in the given picture and also let them communicate with each other e.g. via ssh? machine1# ssh `ip of machine2` There's the rub. How do you determine the IP address of the other machine? DHCP, unless configured with reservations, doesn't guarantee IP addresses to remain the with machines that request addresses. So, there are two ways to solve this problem: o- As I mention above, use reservations in DHCP to tie IP addresses to MAC addresses - this is a fairly manual process, and doesn't scale beyond a few machines.. o- Use a DNS/DHCP solution whereby DNS is dynamically updated with an IP address by the DHCP server when a machine leases an IP address to a machine. This requires some work up front, but then takes care of itself, so scales fairly well. Kurt ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Network Question
On Thu, Sep 12, 2013 at 1:45 PM, Daniel Nang daniel.nan...@gmail.comwrote: Hello, I have two computers, both running FreeBSD, accessing the web via DHCP from the router. The setup looks like this: Internet | | | machine1.example.com --- Router --- machine.2.example.com - DHCP -- DHCP - Both computers can access the internet with no problems. So far so good... My question is, if I can simultaneously have the computers access the net as in the given picture and also let them communicate with each other e.g. via ssh? machine1# ssh `ip of machine2` -- Adam Vande More ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Network Question
That was easier than I thought. My initial approach already looked something like this, except that for the ip address I always put the machine's name as in: machine1# ssh u...@machine2.example.com which results in ssh: Could not resolve hostname machine2.example.com: hostname nor servname provided, or not known I think the problem here lies with the /etc/hosts file where machine1 and machine2 have to be registered respectively. The thing here is that the ip isn't static which makes this approach somewhat difficult to realize. Got it. Thanks. On Fri, Sep 13, 2013 at 2:51 AM, Adam Vande More amvandem...@gmail.comwrote: On Thu, Sep 12, 2013 at 1:45 PM, Daniel Nang daniel.nan...@gmail.comwrote: Hello, I have two computers, both running FreeBSD, accessing the web via DHCP from the router. The setup looks like this: Internet | | | machine1.example.com --- Router --- machine.2.example.com - DHCP -- DHCP - Both computers can access the internet with no problems. So far so good... My question is, if I can simultaneously have the computers access the net as in the given picture and also let them communicate with each other e.g. via ssh? machine1# ssh `ip of machine2` -- Adam Vande More ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Network Question
On Thu, Sep 12, 2013 at 11:51 AM, Adam Vande More amvandem...@gmail.com wrote: On Thu, Sep 12, 2013 at 1:45 PM, Daniel Nang daniel.nan...@gmail.comwrote: Hello, I have two computers, both running FreeBSD, accessing the web via DHCP from the router. The setup looks like this: Internet | | | machine1.example.com --- Router --- machine.2.example.com - DHCP -- DHCP - Both computers can access the internet with no problems. So far so good... My question is, if I can simultaneously have the computers access the net as in the given picture and also let them communicate with each other e.g. via ssh? machine1# ssh `ip of machine2` There's the rub. How do you determine the IP address of the other machine? DHCP, unless configured with reservations, doesn't guarantee IP addresses to remain the with machines that request addresses. So, there are two ways to solve this problem: o- As I mention above, use reservations in DHCP to tie IP addresses to MAC addresses - this is a fairly manual process, and doesn't scale beyond a few machines.. o- Use a DNS/DHCP solution whereby DNS is dynamically updated with an IP address by the DHCP server when a machine leases an IP address to a machine. This requires some work up front, but then takes care of itself, so scales fairly well. Kurt ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Network Question
On Thu, Sep 12, 2013 at 2:06 PM, Kurt Buff kurt.b...@gmail.com wrote: There's the rub. How do you determine the IP address of the other machine? Normally I look at /var/db/dhcpd/dhcpd.leases. Pretty much all of the home routers also have the information accessible on it's administration page. Really depends on that exact setup as there are a number of ways. -- Adam Vande More ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Network Question
Hi Daniel, The easiest way is to check the LAN Config (or similar) page of the router. They usually allow one to specify fixed IP and hostname for the DHCP clients based on the MAC addresses. Best wishes Eugene -Original Message- From: Daniel Nang Sent: Thursday, September 12, 2013 11:16 PM To: Adam Vande More Cc: freebsd-questions@freebsd.org Subject: Re: Network Question That was easier than I thought. My initial approach already looked something like this, except that for the ip address I always put the machine's name as in: machine1# ssh u...@machine2.example.com which results in ssh: Could not resolve hostname machine2.example.com: hostname nor servname provided, or not known I think the problem here lies with the /etc/hosts file where machine1 and machine2 have to be registered respectively. The thing here is that the ip isn't static which makes this approach somewhat difficult to realize. Got it. Thanks. On Fri, Sep 13, 2013 at 2:51 AM, Adam Vande More amvandem...@gmail.comwrote: On Thu, Sep 12, 2013 at 1:45 PM, Daniel Nang daniel.nan...@gmail.comwrote: Hello, I have two computers, both running FreeBSD, accessing the web via DHCP from the router. The setup looks like this: Internet | | | machine1.example.com --- Router --- machine.2.example.com - DHCP -- DHCP - Both computers can access the internet with no problems. So far so good... My question is, if I can simultaneously have the computers access the net as in the given picture and also let them communicate with each other e.g. via ssh? machine1# ssh `ip of machine2` -- Adam Vande More ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ 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
question
Hello, I have read through documentation and didn't find answer for my issue. The issue is: How to recognize kernel panic and dump memory state onto USB device using C language? It would be great if I get the answer. Regards, cid:image001.png@01CE518C.41DEB9F0 Paweł Sulewski Samsung RD Institute Poland Samsung Electronics mailto:p.sulew...@samsung.com p.sulew...@samsung.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
ttys file question
I have added the following entry to /etc/gettytab file test.std.115200:\ :ep:sp#4800:tc:Pc And also I have changed /etc/ttys file cuau3 /usr/libexec/getty test.std.115200cons25 on secure I expect /dev/cuau3 device to use even parity and 4800 as speed, but when I check the device properties using stty -f /dev/cuau3, only speed changes to 4800 and parity value does not change. Here's the output of stty -f /dev/cuau3 after applying the changes using kill -HUP 1 command. speed 4800 baud; lflags: -icanon -isig -iexten -echo iflags: -icrnl -ixon -ixany -imaxbel -brkint oflags: -opost tab3 cflags: cs8 -parenb ___ 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: question
On Wed, 11 Sep 2013 09:41:31 +0200, Pawel Sulewski wrote: How to recognize kernel panic and dump memory state onto USB device using C language? The kernel has its own crash handling and will initiate the writing of the proper image automatically. It will be stored on the partition designated by the /etc/rc.conf setting dumpdev=device, usually a swap partition, and at next boot time that image will be written to a file in /var/crash, if nothing else has been defined with dumpdir=directory (same file; see man rc.conf and /etc/defaults/rc.conf for details). If you want to coredump to a USB device, you need to configure this accordingly. You can find more information about this topic in the following manual pages: man 2 sigaction, man 8 crash, and man 5 core. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Fw: ttys file question
I have added the following entry to /etc/gettytab file test.std.115200:\ :ep:sp#4800:tc:Pc And also I have changed /etc/ttys file cuau3 /usr/libexec/getty test.std.115200 cons25 on secure I expect /dev/cuau3 device to use even parity and 4800 as speed, but when I check the device properties using stty -f /dev/cuau3, only speed changes to 4800 and parity value does not change. Here's the output of stty -f /dev/cuau3 after applying the changes using kill -HUP 1 command. speed 4800 baud; lflags: -icanon -isig -iexten -echo iflags: -icrnl -ixon -ixany -imaxbel -brkint oflags: -opost tab3 cflags: cs8 -parenb ___ 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: ttys file question
But I can not connect to my server with this configuration. But if I change ttyu6 to cuau6, everything works fine! I don't understand the difference, would you please explain the reason for me? In short the tty devices are for outgoing connections, the cua devices are for incoming connections. For more detail see sio(4), after all the detail about multi-port serial cards and their master ports comes a couple of paragraphs describing the devices associated with each serial port in detail. -- Steve O'Hara-Smith st...@sohara.org Thanks. Another question is how can I change the default values of e.g. databits, stopbits and ... for the device? I can set the speed in /etc/ttys. ___ 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: ttys file question
On Sun, 8 Sep 2013 23:13:37 -0700 (PDT) Jack Mc Lauren jack.mclau...@yahoo.com wrote: Thanks. Another question is how can I change the default values of e.g. databits, stopbits and ... for the device? I can set the speed in /etc/ttys. Look at the man pages for sio and stty - all the details are there. -- Steve O'Hara-Smith | Directable Mirror Arrays C:WIN | A better way to focus the sun The computer obeys and wins.|licences available see You lose and Bill collects. |http://www.sohara.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
ttys file question
Hi list I'm trying to connect to my server via a serial port which is named ttyu6 under FreeBSD. In order to do that, I've decided to change /etc/ttys file like this: # Serial terminals # The 'dialup' keyword identifies dialin lines to login, fingerd etc. ttyu6 /usr/libexec/getty std.115200 cons25 on secure But I can not connect to my server with this configuration. But if I change ttyu6 to cuau6, everything works fine! I don't understand the difference, would you please explain the reason for me? Thanks in advance ___ 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
ttys file question
Hi list I'm trying to connect to my server via a serial port which is named ttyu6 under FreeBSD. In order to do that, I've decided to change /etc/ttys file like this: # Serial terminals # The 'dialup' keyword identifies dialin lines to login, fingerd etc. ttyu6 /usr/libexec/getty std.115200 cons25 on secure But I can not connect to my server with this configuration. But if I change ttyu6 to cuau6, everything works fine! I don't understand the difference, would you please explain the reason for me? Thanks in advance ___ 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
Fw: ttys file question
Hi list I'm trying to connect to my server via a serial port which is named ttyu6 under FreeBSD. In order to do that, I've decided to change /etc/ttys file like this: #Serial terminlas #The 'dialup' keyword identifies dialin lines to login, fingerd etc. ttyu6 /usr/libexec/getty std.115200 cons25 on secure But I can not connect to my server with this configuration. But if I change ttyu6 to cuau6, everything works fine! I don't understand the difference, would you please explain the reason for me? Thanks in advance ___ 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 ___ 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
ttys file question
Hi list I'm trying to connect to my server via a serial port which is named ttyu6 under FreeBSD. In order to do that, I've decided to change /etc/ttys file like this: ttyu6 std.115200 cons25 on secure But I can not connect to my server with this configuration. But if I change ttyu6 to cuau6, everything works fine! I don't understand the difference, would you please explain the reason for me? Thanks in advance ___ 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: ttys file question
On Sun, 8 Sep 2013 09:40:44 -0700 (PDT) Jack Mc Lauren jack.mclau...@yahoo.com wrote: But I can not connect to my server with this configuration. But if I change ttyu6 to cuau6, everything works fine! I don't understand the difference, would you please explain the reason for me? In short the tty devices are for outgoing connections, the cua devices are for incoming connections. For more detail see sio(4), after all the detail about multi-port serial cards and their master ports comes a couple of paragraphs describing the devices associated with each serial port in detail. -- Steve O'Hara-Smith st...@sohara.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: ttys file question
Jack Mc Lauren jack.mclauren at yahoo.com writes: Hi list I'm trying to connect to my server via a serial port which is named ttyu6 under FreeBSD. In order to do that, I've decided to change /etc/ttys file like this: ttyu6 std.115200 cons25 on secure But I can not connect to my server with this configuration. But if I change ttyu6 to cuau6, everything works fine! I don't understand the difference, would you please explain the reason for me? Thanks in advance http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/serialcomms.html 26.3. Terminals 26.4. Dial-in Service 26.5. Dial-out Service jb ___ 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
Question about those special (countdown numbers) at shutdown / sync
Hello! I am curious about the special (count down numbers) at shutdown / sync. Those nubmers is like 8 8 8 8 2 1 2 1 0 0 0 0. Actually what do those numbers mean? Thanks and regards, Patrick Dung ___ 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: Question about those special (countdown numbers) at shutdown / sync
On Thu, 5 Sep 2013 21:30:29 +0800 (SGT), Patrick Dung wrote: I am curious about the special (count down numbers) at shutdown / sync. Those nubmers is like 8 8 8 8 2 1 2 1 0 0 0 0. Actually what do those numbers mean? Those numbers show you how many buffers have to be synced until the system is ready to finally shut down and power off. This makes sure no pending hard disk operations will be left and forgotten in memory. The important text displayed prior to the numbers is: Syncing disks, buffers remaining... You can find it here: /usr/src/sys/kern/kern_shutdown.c around line 330 (8-STABLE/i386 here). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Question about those special (countdown numbers) at shutdown / sync
Thanks for the answer. That is cool and unique. From: Polytropon free...@edvax.de To: Patrick Dung patrick_...@yahoo.com.hk Cc: freebsd-questions@freebsd.org freebsd-questions@freebsd.org Sent: Thursday, September 5, 2013 9:42 PM Subject: Re: Question about those special (countdown numbers) at shutdown / sync On Thu, 5 Sep 2013 21:30:29 +0800 (SGT), Patrick Dung wrote: I am curious about the special (count down numbers) at shutdown / sync. Those nubmers is like 8 8 8 8 2 1 2 1 0 0 0 0. Actually what do those numbers mean? Those numbers show you how many buffers have to be synced until the system is ready to finally shut down and power off. This makes sure no pending hard disk operations will be left and forgotten in memory. The important text displayed prior to the numbers is: Syncing disks, buffers remaining... You can find it here: /usr/src/sys/kern/kern_shutdown.c around line 330 (8-STABLE/i386 here). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
question about pkg
Hi, by chance anyone know what's up with this.. could save me some troubleshooting time.. Here's a 9.2 machine. # uname -a FreeBSD do.burplex.com 9.2-BETA2 FreeBSD 9.2-BETA2 #0 r253773M: Mon Jul 29 14:22:34 PDT 2013 da3m0n8...@do.burplex.com:/usr/obj/usr/src/sys/KAGISO amd64 # sqlite3 /var/db/pkg/local.sqlite sqlite SELECT COUNT(id) FROM packages WHERE time is null; 0 sqlite SELECT COUNT(id) FROM packages WHERE time is not null; 551 Here's a 10.0-CURRENT machine. uname -a FreeBSD dx.burplex.com 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r252355: Fri Jun 28 16:39:19 PDT 2013 r...@dx.burplex.com:/usr/obj/usr/src/sys/FURAHA amd64 # sqlite3 /var/db/pkg/local.sqlite sqlite SELECT COUNT(id) FROM packages WHERE time is null; 814 sqlite SELECT COUNT(id) FROM packages WHERE time is NOT null; 104 time = null is causing me some issues.. Thanks -- Waitman Gobble San Jose California USA 510-830-7975 ___ 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: Question about a possible missing line/entry for file UPDATING (from http://svnweb.freebsd.org) - 8.4-RELEASE plus branches
Note that, as opposed to you, I'm tracking 8-STABLE and not 8.4-RELEASE ! UPDATING: $FreeBSD: src/UPDATING,v 1.632.2.39 2013/08/23 15:21:39 svnexp Exp $ newvers.sh: # $FreeBSD: src/sys/conf/newvers.sh,v 1.83.2.25 2013/08/07 08:26:07 svnexp Exp $ I'll check our clusters of firewalls to see if I've got any 8.4-RELEASE box lying around, but don't hold your breath, we almost universally track 8-STABLE... On 4 September 2013 00:49, Pablo Carboni pcarb...@gmail.com wrote: Hello Damien, (First at all, thanks for your response). I do not want to insist too much with this silly thing, but(just in case) I've updated my sources today from svn0.us-west.freebsd.org(base/releng/8.4), - previously to my first e-mail - and: (Argentina's current TZ is GMT-3) -rw-r--r-- 1 root wheel 74967 Sep 3 12:11 /usr/src/UPDATING The 'grepped' lines, shows me: 8.3-RELEASE [...] 8.0-RELEASE (But 8.4 still doesn't appear). (However, while grepping first lines in /usr/src/sys/conf/newvers.sh shows me: # $FreeBSD: releng/8.4/sys/conf/newvers.sh 254632 2013-08-22 00:51:56Z delphij $ TYPE=FreeBSD REVISION=8.4 BRANCH=RELEASE-p3 (Same svn id for UPDATING/newvers.sh). Any clues? (What's your svn $Id for UPDATING? - I mean, the whole line, the last) Thanks a lot! Regards, Pablo Carboni. P.S.: The same happens for svn0.us-east.freebsd.org/base/releng/8.4/UPDATING. http://svn0.us-east.freebsd.org/base/releng/8.4/UPDATING (Maybe I'm afraid for local syncing problems on my fbsd server) On Tue, Sep 3, 2013 at 7:13 PM, Damien Fleuriot m...@my.gd wrote: From: -rw-r--r-- 1 root wheel 75631 Aug 27 12:46 /usr/src/UPDATING 20130607: 8.4-RELEASE. On 3 September 2013 18:16, Pablo Carboni pcarb...@gmail.com wrote: Dear Sirs, Just for curious, today I was looking for the date/entry that belongs to FreeBSD 8.4-RELEASE inside UPDATING file, with no luck. Maybe I've made a mistake and I was looking inside a wrong file/url? It doesn't appear, neither http://svnweb.freebsd.org/base/release/8.4.0/UPDATING?revision=251259view=markup (RELEASE branch) nor http://svnweb.freebsd.org/base/releng/8.4/UPDATING?view=markuppathrev=254632 (RELENG branch, currently last revision). (This 'little detail' includes sources for 8.4-RELEASE and branch 8.4-RELEASE-p3, which I've downloaded recently). A quick dirty search I've did on a 8.4-RELEASE-p3 box: grep 8\..*-RELEASE /usr/src/UPDATING (There is no reference for '8.4') Thanks in advance! Regards, Pablo Carboni ___ 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: Question about a possible missing line/entry for file UPDATING (from http://svnweb.freebsd.org) - 8.4-RELEASE plus branches
Dear Damien, I use to install and update 'Releng' releases (plus patches, but not stable releases) in our production servers (Ok, I agree stable is fine, but my main reason is to be conservative under some circunstances). (BTW, You're right, on 8-STABLE branch, it appears the 'missing' line I was looking for) Just as a last comment, I've found this 'normal line' on stable branch (but not on release/releng): http://svnweb.freebsd.org/base/stable/8/UPDATING?view=log Revision *251500*http://svnweb.freebsd.org/base?view=revisionrevision=251500 - (viewhttp://svnweb.freebsd.org/base/stable/8/UPDATING?revision=251500view=markup) (downloadhttp://svnweb.freebsd.org/base/stable/8/UPDATING?revision=251500view=co) (annotate http://svnweb.freebsd.org/base/stable/8/UPDATING?annotate=251500) - [select for diffs]http://svnweb.freebsd.org/base/stable/8/UPDATING?view=logr1=251500log_pagestart=0 Modified *Fri Jun 7 15:52:33 2013 UTC* (2 months, 4 weeks ago) by *pluknet* File length: 74494 byte(s) Diff to previous 251026http://svnweb.freebsd.org/base/stable/8/UPDATING?r1=251026r2=251500 Add the entry for 8.4-RELEASE. (I think it should be added by someone to 8.4 releng branch). If this is the case, shouldn't be sent this 'missing entry' to anyone by the means of 'PR' ? Thank you very much for your patience :) Regards, Pablo. On Wed, Sep 4, 2013 at 6:51 AM, Damien Fleuriot m...@my.gd wrote: Note that, as opposed to you, I'm tracking 8-STABLE and not 8.4-RELEASE ! UPDATING: $FreeBSD: src/UPDATING,v 1.632.2.39 2013/08/23 15:21:39 svnexp Exp $ newvers.sh: # $FreeBSD: src/sys/conf/newvers.sh,v 1.83.2.25 2013/08/07 08:26:07 svnexp Exp $ I'll check our clusters of firewalls to see if I've got any 8.4-RELEASE box lying around, but don't hold your breath, we almost universally track 8-STABLE... On 4 September 2013 00:49, Pablo Carboni pcarb...@gmail.com wrote: Hello Damien, (First at all, thanks for your response). I do not want to insist too much with this silly thing, but(just in case) I've updated my sources today from svn0.us-west.freebsd.org(base/releng/8.4), - previously to my first e-mail - and: (Argentina's current TZ is GMT-3) -rw-r--r-- 1 root wheel 74967 Sep 3 12:11 /usr/src/UPDATING The 'grepped' lines, shows me: 8.3-RELEASE [...] 8.0-RELEASE (But 8.4 still doesn't appear). (However, while grepping first lines in /usr/src/sys/conf/newvers.sh shows me: # $FreeBSD: releng/8.4/sys/conf/newvers.sh 254632 2013-08-22 00:51:56Z delphij $ TYPE=FreeBSD REVISION=8.4 BRANCH=RELEASE-p3 (Same svn id for UPDATING/newvers.sh). Any clues? (What's your svn $Id for UPDATING? - I mean, the whole line, the last) Thanks a lot! Regards, Pablo Carboni. P.S.: The same happens for svn0.us-east.freebsd.org/base/releng/8.4/UPDATING. http://svn0.us-east.freebsd.org/base/releng/8.4/UPDATING (Maybe I'm afraid for local syncing problems on my fbsd server) On Tue, Sep 3, 2013 at 7:13 PM, Damien Fleuriot m...@my.gd wrote: From: -rw-r--r-- 1 root wheel 75631 Aug 27 12:46 /usr/src/UPDATING 20130607: 8.4-RELEASE. On 3 September 2013 18:16, Pablo Carboni pcarb...@gmail.com wrote: Dear Sirs, Just for curious, today I was looking for the date/entry that belongs to FreeBSD 8.4-RELEASE inside UPDATING file, with no luck. Maybe I've made a mistake and I was looking inside a wrong file/url? It doesn't appear, neither http://svnweb.freebsd.org/base/release/8.4.0/UPDATING?revision=251259view=markup (RELEASE branch) nor http://svnweb.freebsd.org/base/releng/8.4/UPDATING?view=markuppathrev=254632 (RELENG branch, currently last revision). (This 'little detail' includes sources for 8.4-RELEASE and branch 8.4-RELEASE-p3, which I've downloaded recently). A quick dirty search I've did on a 8.4-RELEASE-p3 box: grep 8\..*-RELEASE /usr/src/UPDATING (There is no reference for '8.4') Thanks in advance! Regards, Pablo Carboni ___ 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: Question about a possible missing line/entry for file UPDATING (from http://svnweb.freebsd.org) - 8.4-RELEASE plus branches
However minor the issue seems, I think it warrants a PR, if at least so the entry is added for the next revision of 8.4-RELEASE. Regarding -STABLE, while I respect your decision to be conservative and run -RELEASE, I'd like to point out we've not run into any problem here, in over 3 years with ~40 firewall boxes. On 4 September 2013 17:48, Pablo Carboni pcarb...@gmail.com wrote: Dear Damien, I use to install and update 'Releng' releases (plus patches, but not stable releases) in our production servers (Ok, I agree stable is fine, but my main reason is to be conservative under some circunstances). (BTW, You're right, on 8-STABLE branch, it appears the 'missing' line I was looking for) Just as a last comment, I've found this 'normal line' on stable branch (but not on release/releng): http://svnweb.freebsd.org/base/stable/8/UPDATING?view=log Revision *251500*http://svnweb.freebsd.org/base?view=revisionrevision=251500 - (viewhttp://svnweb.freebsd.org/base/stable/8/UPDATING?revision=251500view=markup) (downloadhttp://svnweb.freebsd.org/base/stable/8/UPDATING?revision=251500view=co) (annotatehttp://svnweb.freebsd.org/base/stable/8/UPDATING?annotate=251500) - [select for diffs]http://svnweb.freebsd.org/base/stable/8/UPDATING?view=logr1=251500log_pagestart=0 Modified *Fri Jun 7 15:52:33 2013 UTC* (2 months, 4 weeks ago) by *pluknet * File length: 74494 byte(s) Diff to previous 251026http://svnweb.freebsd.org/base/stable/8/UPDATING?r1=251026r2=251500 Add the entry for 8.4-RELEASE. (I think it should be added by someone to 8.4 releng branch). If this is the case, shouldn't be sent this 'missing entry' to anyone by the means of 'PR' ? Thank you very much for your patience :) Regards, Pablo. On Wed, Sep 4, 2013 at 6:51 AM, Damien Fleuriot m...@my.gd wrote: Note that, as opposed to you, I'm tracking 8-STABLE and not 8.4-RELEASE ! UPDATING: $FreeBSD: src/UPDATING,v 1.632.2.39 2013/08/23 15:21:39 svnexp Exp $ newvers.sh: # $FreeBSD: src/sys/conf/newvers.sh,v 1.83.2.25 2013/08/07 08:26:07 svnexp Exp $ I'll check our clusters of firewalls to see if I've got any 8.4-RELEASE box lying around, but don't hold your breath, we almost universally track 8-STABLE... On 4 September 2013 00:49, Pablo Carboni pcarb...@gmail.com wrote: Hello Damien, (First at all, thanks for your response). I do not want to insist too much with this silly thing, but(just in case) I've updated my sources today from svn0.us-west.freebsd.org(base/releng/8.4), - previously to my first e-mail - and: (Argentina's current TZ is GMT-3) -rw-r--r-- 1 root wheel 74967 Sep 3 12:11 /usr/src/UPDATING The 'grepped' lines, shows me: 8.3-RELEASE [...] 8.0-RELEASE (But 8.4 still doesn't appear). (However, while grepping first lines in /usr/src/sys/conf/newvers.sh shows me: # $FreeBSD: releng/8.4/sys/conf/newvers.sh 254632 2013-08-22 00:51:56Z delphij $ TYPE=FreeBSD REVISION=8.4 BRANCH=RELEASE-p3 (Same svn id for UPDATING/newvers.sh). Any clues? (What's your svn $Id for UPDATING? - I mean, the whole line, the last) Thanks a lot! Regards, Pablo Carboni. P.S.: The same happens for svn0.us-east.freebsd.org/base/releng/8.4/UPDATING. http://svn0.us-east.freebsd.org/base/releng/8.4/UPDATING (Maybe I'm afraid for local syncing problems on my fbsd server) On Tue, Sep 3, 2013 at 7:13 PM, Damien Fleuriot m...@my.gd wrote: From: -rw-r--r-- 1 root wheel 75631 Aug 27 12:46 /usr/src/UPDATING 20130607: 8.4-RELEASE. On 3 September 2013 18:16, Pablo Carboni pcarb...@gmail.com wrote: Dear Sirs, Just for curious, today I was looking for the date/entry that belongs to FreeBSD 8.4-RELEASE inside UPDATING file, with no luck. Maybe I've made a mistake and I was looking inside a wrong file/url? It doesn't appear, neither http://svnweb.freebsd.org/base/release/8.4.0/UPDATING?revision=251259view=markup (RELEASE branch) nor http://svnweb.freebsd.org/base/releng/8.4/UPDATING?view=markuppathrev=254632 (RELENG branch, currently last revision). (This 'little detail' includes sources for 8.4-RELEASE and branch 8.4-RELEASE-p3, which I've downloaded recently). A quick dirty search I've did on a 8.4-RELEASE-p3 box: grep 8\..*-RELEASE /usr/src/UPDATING (There is no reference for '8.4') Thanks in advance! Regards, Pablo Carboni ___ 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
Question about a possible missing line/entry for file UPDATING (from http://svnweb.freebsd.org) - 8.4-RELEASE plus branches
Dear Sirs, Just for curious, today I was looking for the date/entry that belongs to FreeBSD 8.4-RELEASE inside UPDATING file, with no luck. Maybe I've made a mistake and I was looking inside a wrong file/url? It doesn't appear, neither http://svnweb.freebsd.org/base/release/8.4.0/UPDATING?revision=251259view=markup (RELEASE branch) nor http://svnweb.freebsd.org/base/releng/8.4/UPDATING?view=markuppathrev=254632 (RELENG branch, currently last revision). (This 'little detail' includes sources for 8.4-RELEASE and branch 8.4-RELEASE-p3, which I've downloaded recently). A quick dirty search I've did on a 8.4-RELEASE-p3 box: grep 8\..*-RELEASE /usr/src/UPDATING (There is no reference for '8.4') Thanks in advance! Regards, Pablo Carboni ___ 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: Question about a possible missing line/entry for file UPDATING (from http://svnweb.freebsd.org) - 8.4-RELEASE plus branches
From: -rw-r--r-- 1 root wheel 75631 Aug 27 12:46 /usr/src/UPDATING 20130607: 8.4-RELEASE. On 3 September 2013 18:16, Pablo Carboni pcarb...@gmail.com wrote: Dear Sirs, Just for curious, today I was looking for the date/entry that belongs to FreeBSD 8.4-RELEASE inside UPDATING file, with no luck. Maybe I've made a mistake and I was looking inside a wrong file/url? It doesn't appear, neither http://svnweb.freebsd.org/base/release/8.4.0/UPDATING?revision=251259view=markup (RELEASE branch) nor http://svnweb.freebsd.org/base/releng/8.4/UPDATING?view=markuppathrev=254632 (RELENG branch, currently last revision). (This 'little detail' includes sources for 8.4-RELEASE and branch 8.4-RELEASE-p3, which I've downloaded recently). A quick dirty search I've did on a 8.4-RELEASE-p3 box: grep 8\..*-RELEASE /usr/src/UPDATING (There is no reference for '8.4') Thanks in advance! Regards, Pablo Carboni ___ 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: Question about a possible missing line/entry for file UPDATING (from http://svnweb.freebsd.org) - 8.4-RELEASE plus branches
Hello Damien, (First at all, thanks for your response). I do not want to insist too much with this silly thing, but(just in case) I've updated my sources today from svn0.us-west.freebsd.org(base/releng/8.4), - previously to my first e-mail - and: (Argentina's current TZ is GMT-3) -rw-r--r-- 1 root wheel 74967 Sep 3 12:11 /usr/src/UPDATING The 'grepped' lines, shows me: 8.3-RELEASE [...] 8.0-RELEASE (But 8.4 still doesn't appear). (However, while grepping first lines in /usr/src/sys/conf/newvers.sh shows me: # $FreeBSD: releng/8.4/sys/conf/newvers.sh 254632 2013-08-22 00:51:56Z delphij $ TYPE=FreeBSD REVISION=8.4 BRANCH=RELEASE-p3 (Same svn id for UPDATING/newvers.sh). Any clues? (What's your svn $Id for UPDATING? - I mean, the whole line, the last) Thanks a lot! Regards, Pablo Carboni. P.S.: The same happens for svn0.us-east.freebsd.org/base/releng/8.4/UPDATING. http://svn0.us-east.freebsd.org/base/releng/8.4/UPDATING (Maybe I'm afraid for local syncing problems on my fbsd server) On Tue, Sep 3, 2013 at 7:13 PM, Damien Fleuriot m...@my.gd wrote: From: -rw-r--r-- 1 root wheel 75631 Aug 27 12:46 /usr/src/UPDATING 20130607: 8.4-RELEASE. On 3 September 2013 18:16, Pablo Carboni pcarb...@gmail.com wrote: Dear Sirs, Just for curious, today I was looking for the date/entry that belongs to FreeBSD 8.4-RELEASE inside UPDATING file, with no luck. Maybe I've made a mistake and I was looking inside a wrong file/url? It doesn't appear, neither http://svnweb.freebsd.org/base/release/8.4.0/UPDATING?revision=251259view=markup (RELEASE branch) nor http://svnweb.freebsd.org/base/releng/8.4/UPDATING?view=markuppathrev=254632 (RELENG branch, currently last revision). (This 'little detail' includes sources for 8.4-RELEASE and branch 8.4-RELEASE-p3, which I've downloaded recently). A quick dirty search I've did on a 8.4-RELEASE-p3 box: grep 8\..*-RELEASE /usr/src/UPDATING (There is no reference for '8.4') Thanks in advance! Regards, Pablo Carboni ___ 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
c++11 question: clang++ 3.3 future header not found
% uname -a FreeBSD cobalt 9.2-RC3 FreeBSD 9.2-RC3 #0 r254795: Sat Aug 24 20:25:04 UTC 2013 r...@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 % clang++ --version FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 Target: x86_64-unknown-freebsd9.2 Thread model: posix test program #include iostream #include future int main( int argc, char* argv[]) { auto f = std::async( [] () { std::cout Hello, World! std::endl; }); f.wait(); return 0; } error received is % clang++ -otest test.cc test.cc:2:10: fatal error: 'future' file not found #include future ^ 1 error generated. I guess clang is re-using system headers which belong to older gcc 4.2 I also have gcc48 installed, how can I make clang to refer gcc48 headers? ___ 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
clang and c++11 question
% uname -a FreeBSD cobalt.corp.nai.org 9.2-RC3 FreeBSD 9.2-RC3 #0 r254795: Sat Aug 24 20:25:04 UTC 2013 r...@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 % clang++ --version FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 Target: x86_64-unknown-freebsd9.2 Thread model: posix clang 3.3 is C++11 feature complete, but it fails to find future and/or thread headers. since it is looking in system compiler path, which is old gcc4.2, not C++11 ready how to make clang refer headers from gcc48's installation( via pkg_add)? ___ 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
c++11 and clang question
% uname -a FreeBSD cobalt 9.2-RC3 FreeBSD 9.2-RC3 #0 r254795: Sat Aug 24 20:25:04 UTC 2013 r...@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 % clang++ --version FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 Target: x86_64-unknown-freebsd9.2 Thread model: posix // test.cc #include iostream #include future int main( int argc, char* argv[]) { auto f = std::async( [] () { std::cout Hello, World! std::endl; }); f.wait(); return 0; } % clang++ -v -otest test.cc FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 Target: x86_64-unknown-freebsd9.2 Thread model: posix /usr/bin/clang++ -cc1 -triple x86_64-unknown-freebsd9.2 -emit-obj -mrelax-all -disable-free -main-file-name test.cc -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -v -resource-dir /usr/bin/../lib/clang/3.3 -fdeprecated-macro -fdebug-compilation-dir /home/mshaikh -ferror-limit 19 -fmessage-length 168 -mstackrealign -fobjc-runtime=gnustep -fobjc-default-synthesize-properties -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops -o /tmp/test-jIvr1p.o -x c++ test.cc clang -cc1 version 3.3 based upon LLVM 3.3 default target x86_64-unknown-freebsd9.2 ignoring nonexistent directory /usr/include/c++/4.2/backward/backward ignoring nonexistent directory /usr/bin/../lib/clang/3.3/include ignoring duplicate directory /usr/include/c++/4.2 ignoring duplicate directory /usr/include/c++/4.2/backward ignoring duplicate directory /usr/include/c++/4.2/backward #include ... search starts here: #include ... search starts here: /usr/include/c++/4.2 /usr/include/c++/4.2/backward /usr/include/clang/3.3 /usr/include End of search list. test.cc:2:10: fatal error: 'future' file not found #include future ^ 1 error generated. clang is re-using system headers which belong to older gcc 4.2 Can clang be educated to refer gcc48 headers, installed via pkg_add? ___ 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: c++11 question: clang++ 3.3 future header not found
list, please pardon my stupid mail client hung, giving me impression that e-mail was not sent. apologies for spam. - Original Message - From: Quark unixuser2000-f...@yahoo.com To: freebsd-questions@freebsd.org freebsd-questions@freebsd.org Cc: Sent: Tuesday, 27 August 2013 12:52 PM Subject: c++11 question: clang++ 3.3 future header not found % uname -a FreeBSD cobalt 9.2-RC3 FreeBSD 9.2-RC3 #0 r254795: Sat Aug 24 20:25:04 UTC 2013 r...@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 % clang++ --version FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 Target: x86_64-unknown-freebsd9.2 Thread model: posix test program #include iostream #include future int main( int argc, char* argv[]) { auto f = std::async( [] () { std::cout Hello, World! std::endl; }); f.wait(); return 0; } error received is % clang++ -otest test.cc test.cc:2:10: fatal error: 'future' file not found #include future ^ 1 error generated. I guess clang is re-using system headers which belong to older gcc 4.2 I also have gcc48 installed, how can I make clang to refer gcc48 headers? ___ 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: c++11 question: clang++ 3.3 future header not found
On Tue, 27 Aug 2013 15:22:49 +0800 (SGT) Quark wrote: % uname -a FreeBSD cobalt 9.2-RC3 FreeBSD 9.2-RC3 #0 r254795: Sat Aug 24 20:25:04 UTC 2013 r...@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 % clang++ --version FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 Target: x86_64-unknown-freebsd9.2 Thread model: posix test program #include iostream #include future int main( int argc, char* argv[]) { auto f = std::async( [] () { std::cout Hello, World! std::endl; }); f.wait(); return 0; } error received is % clang++ -otest test.cc test.cc:2:10: fatal error: 'future' file not found #include future ^ 1 error generated. I guess clang is re-using system headers which belong to older gcc 4.2 I also have gcc48 installed, how can I make clang to refer gcc48 headers? There two C++ runtime libraries, the old gcc libstdc++ which is used by default and the new C++11 libc++. You can use the latter like this: clang++ -std=c++11 -stdlib=libc++ -otest test.cc signature.asc Description: PGP signature
Fwd: c++11 question: clang++ 3.3 future header not found
AFAIK, the easiest way to get C++11 support in clang is to use libc++ (see http://blogs.freebsdish.org/theraven/2013/01/03/the-new-c-stack-in-9-1/). See also https://lists.freebsd.org/pipermail/freebsd-toolchain/2013-May/000841.html . 2013/8/27 Quark unixuser2000-f...@yahoo.com % uname -a FreeBSD cobalt 9.2-RC3 FreeBSD 9.2-RC3 #0 r254795: Sat Aug 24 20:25:04 UTC 2013 r...@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 % clang++ --version FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 Target: x86_64-unknown-freebsd9.2 Thread model: posix test program #include iostream #include future int main( int argc, char* argv[]) { auto f = std::async( [] () { std::cout Hello, World! std::endl; }); f.wait(); return 0; } error received is % clang++ -otest test.cc test.cc:2:10: fatal error: 'future' file not found #include future ^ 1 error generated. I guess clang is re-using system headers which belong to older gcc 4.2 I also have gcc48 installed, how can I make clang to refer gcc48 headers? ___ 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: c++11 question: clang++ 3.3 future header not found
- Original Message - From: Tijl Coosemans t...@coosemans.org To: Quark unixuser2000-f...@yahoo.com Cc: freebsd-questions@freebsd.org freebsd-questions@freebsd.org Sent: Tuesday, 27 August 2013 1:41 PM Subject: Re: c++11 question: clang++ 3.3 future header not found On Tue, 27 Aug 2013 15:22:49 +0800 (SGT) Quark wrote: % uname -a FreeBSD cobalt 9.2-RC3 FreeBSD 9.2-RC3 #0 r254795: Sat Aug 24 20:25:04 UTC 2013 r...@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 % clang++ --version FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 Target: x86_64-unknown-freebsd9.2 Thread model: posix test program #include iostream #include future int main( int argc, char* argv[]) { auto f = std::async( [] () { std::cout Hello, World! std::endl; }); f.wait(); return 0; } error received is % clang++ -otest test.cc test.cc:2:10: fatal error: 'future' file not found #include future ^ 1 error generated. I guess clang is re-using system headers which belong to older gcc 4.2 I also have gcc48 installed, how can I make clang to refer gcc48 headers? There two C++ runtime libraries, the old gcc libstdc++ which is used by default and the new C++11 libc++. You can use the latter like this: clang++ -std=c++11 -stdlib=libc++ -otest test.cc thanks, it worked. ___ 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: kern_jail_set() Error Scenario Question
On 08/22/13 17:46, Matt Miller wrote: We ran into the following scenario in an application recently and were wondering if the behavior of kern_jail_set() is as expected here. This was an application bug where we were in, say, the JID 1 context and tried to call jailparam_set() with the flags (JAIL_CREATE | JAIL_UPDATE) and the jid param set to 1. The basic idea was to create or update JID 1 with some params, but the error was we were already in the JID 1 context. So, our understanding is this shouldn't work since JID 1 already exists and you can only modify it from a proper ancestor. However, rather than getting an error back from jailparam_set(), it ended up creating a second prison with JID 1, so there were two prisons existing with JID 1 at that point. This is based on 8.2.0 code, but, at first glance, it looks like the logic causing this may be the same in head. Looking at kern_jail_set(), what happens here is: 1. We find a prison with JID=1, however since it's not a proper child we set pr = NULL in line 1024: 1011 pr = prison_find(jid); 1012 if (pr != NULL) { 1013 ppr = pr-pr_parent; 1014 /* Create: jid must not exist. */ 1015 if (cuflags == JAIL_CREATE) { 1016 mtx_unlock(pr-pr_mtx); 1017 error = EEXIST; 1018 vfs_opterror(opts, jail %d already exists, 1019 jid); 1020 goto done_unlock_list; 1021 } 1022 if (!prison_ischild(mypr, pr)) { 1023 mtx_unlock(pr-pr_mtx); 1024 pr = NULL; 1025 } else if (pr-pr_uref == 0) { 2. Since pr is NULL, we create a new prison. Since the jid is not zero, we insert it in the list and set its pr_id. At this point, we have two prisons with a JID of 1 and the same parent prison. 1166 /* If there's no prison to update, create a new one and link it in. */ 1167 if (pr == NULL) { ... 1185 pr = malloc(sizeof(*pr), M_PRISON, M_WAITOK | M_ZERO); 1186 if (jid == 0) { ... 1212 } else { 1213 /* 1214 * The jail already has a jid (that did not yet exist), 1215 * so just find where to insert it. 1216 */ 1217 TAILQ_FOREACH(tpr, allprison, pr_list) 1218 if (tpr-pr_id = jid) { 1219 TAILQ_INSERT_BEFORE(tpr, pr, pr_list); 1220 break; 1221 } 1222 } ... 1229 pr-pr_parent = ppr; 1230 pr-pr_id = jid; We wanted to see if this is per design or a situation that should avoid creating the second prison and return an error. That's definitely not per design. I'll try reproducing this, and put in correct logic. The proper response is indeed an error: ENOENT, because from inside the JID 1 context you shouldn't be able to see jail #1 (you can't operate on your own jail). - Jamie ___ 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
kern_jail_set() Error Scenario Question
We ran into the following scenario in an application recently and were wondering if the behavior of kern_jail_set() is as expected here. This was an application bug where we were in, say, the JID 1 context and tried to call jailparam_set() with the flags (JAIL_CREATE | JAIL_UPDATE) and the jid param set to 1. The basic idea was to create or update JID 1 with some params, but the error was we were already in the JID 1 context. So, our understanding is this shouldn't work since JID 1 already exists and you can only modify it from a proper ancestor. However, rather than getting an error back from jailparam_set(), it ended up creating a second prison with JID 1, so there were two prisons existing with JID 1 at that point. This is based on 8.2.0 code, but, at first glance, it looks like the logic causing this may be the same in head. Looking at kern_jail_set(), what happens here is: 1. We find a prison with JID=1, however since it's not a proper child we set pr = NULL in line 1024: 1011 pr = prison_find(jid); 1012 if (pr != NULL) { 1013 ppr = pr-pr_parent; 1014 /* Create: jid must not exist. */ 1015 if (cuflags == JAIL_CREATE) { 1016 mtx_unlock(pr-pr_mtx); 1017 error = EEXIST; 1018 vfs_opterror(opts, jail %d already exists, 1019 jid); 1020 goto done_unlock_list; 1021 } 1022 if (!prison_ischild(mypr, pr)) { 1023 mtx_unlock(pr-pr_mtx); 1024 pr = NULL; 1025 } else if (pr-pr_uref == 0) { 2. Since pr is NULL, we create a new prison. Since the jid is not zero, we insert it in the list and set its pr_id. At this point, we have two prisons with a JID of 1 and the same parent prison. 1166 /* If there's no prison to update, create a new one and link it in. */ 1167 if (pr == NULL) { ... 1185 pr = malloc(sizeof(*pr), M_PRISON, M_WAITOK | M_ZERO); 1186 if (jid == 0) { ... 1212 } else { 1213 /* 1214 * The jail already has a jid (that did not yet exist), 1215 * so just find where to insert it. 1216 */ 1217 TAILQ_FOREACH(tpr, allprison, pr_list) 1218 if (tpr-pr_id = jid) { 1219 TAILQ_INSERT_BEFORE(tpr, pr, pr_list); 1220 break; 1221 } 1222 } ... 1229 pr-pr_parent = ppr; 1230 pr-pr_id = jid; We wanted to see if this is per design or a situation that should avoid creating the second prison and return an error. Thanks, Matt ___ 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: Pre-sales question
Sir: I would like to know if your freebsd OS 9.1 suite on CD(DVD) can be installed, and then run, on a Dell Inspiron 531S? I looked-over your website, and did not see a citation for that specific PC (though I did see it for others). For your reference, my PC has a AMD Athlon(tm) 64 X2 Dual core processor 3800+ 2.01 GHz. The operating system on it right now (Vista) is 32-bit. The PC can have up to 4GB of RAM. I have a 80GB Hard drive on it right now. I would like to hitch it to the PC using a USB cable. If version 9.1 does run on that machine, then I may order a copy for myself. R.S.V.P., Glen Peterson Cedarburg, WI. peterso...@aol.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE: Pre-sales question
I would like to know if your freebsd OS 9.1 suite on CD(DVD) can be installed, and then run, on a Dell Inspiron 531S? I looked-over your website, and did +not see a citation for that specific PC (though I did see it for others). For your reference, my PC has a AMD Athlon(tm) 64 X2 Dual core processor 3800+ 2.01 GHz. The operating system on it right now (Vista) is 32-bit. The PC can have up to 4GB of RAM. I have a 80GB Hard drive on it right now. I would like to hitch it to the PC using a USB cable. If version 9.1 does run on that machine, then I may order a copy for myself. Glen Peterson Cedarburg, WI. peterso...@aol.com You can go to ftp.freebsd.org/pub/FreeBSD and download iso files for FreeBSD amd64 and i386. You can download FreeBSD 9.1 or the newest release candidate for 9.2 (now RC2) and install from CD or DVD. Is that 80GB hard drive currently in the PC? Tom ___ 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
Question about usbhid.h and dev/usb/usbhid.h
Hi, I'm currently writing a USB driver for the SFML framework. I'm reading the code of SDL and seen the usage of usbhid. However, /usr/include/usbhid.h and /usr/include/dev/usb/usbhid.h are different. But they have both some common functions and the same data definition. For instance, enum and structures are identical, but the second one has much more #define about hid usages. Why are these files so much different and still having some identical definitions? Isn't better to add full definitions and data to the second one and just add a #include dev/usb/usbhid.h in /usr/include/usbhid.h? Regards, -- Demelier David ___ 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
Control-M question
Hello list, Im trying to install control-m agent on FreeBSD doing some searching i didnt find anything that point to me to a sucessfull installation. I would really appreciate if someone can give to me a clue or some recipe or some howto !! Arquitecture is: FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 r...@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 and CTM agent is: PIM PLATFORMPACKAGE DATEINSTALL DATE VERSION INSTALL TYPECOMME NTS DRKAI.6.3.01Linux-x86_64Dec-04-2006 Nov-04-2009 6.3.01.000 INSTALLATION Regard / Saludos.- Leonardo Santagostini ___ 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: Control-M question
On 8 August 2013 17:15, Leonardo Santagostini lsantagost...@gmail.com wrote: Hello list, Im trying to install control-m agent on FreeBSD doing some searching i didnt find anything that point to me to a sucessfull installation. I would really appreciate if someone can give to me a clue or some recipe or some howto !! Arquitecture is: FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 r...@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 and CTM agent is: PIM PLATFORMPACKAGE DATEINSTALL DATE VERSION INSTALL TYPECOMME NTS DRKAI.6.3.01Linux-x86_64Dec-04-2006 Nov-04-2009 6.3.01.000 INSTALLATION Well, assuming you're talking about the BMC software, they don't list FreeBSD as a supported platform. http://www.bmc.com/modules/module-html/Control-M-by-applications.html?height=488width=940 Given that it's not open source, if the doesn't run successfully under Linux emulation, I strongly doubt you can do anything outside of con- tacting the company. Also, AFIK Linux emulation is i386 only, not amd64/x86_64 (or what- ever obnoxious neologism they're using to-day) so you'll probably have to run something other than Linux-x86_64. -- -- ___ 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: Control-M question
Ok thank you very much =) Regards / Saludos.- Leonardo Santagostini http://ar.linkedin.com/in/santagostini 2013/8/8 ill...@gmail.com ill...@gmail.com On 8 August 2013 17:15, Leonardo Santagostini lsantagost...@gmail.com wrote: Hello list, Im trying to install control-m agent on FreeBSD doing some searching i didnt find anything that point to me to a sucessfull installation. I would really appreciate if someone can give to me a clue or some recipe or some howto !! Arquitecture is: FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 r...@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 and CTM agent is: PIM PLATFORMPACKAGE DATEINSTALL DATE VERSION INSTALL TYPECOMME NTS DRKAI.6.3.01Linux-x86_64Dec-04-2006 Nov-04-2009 6.3.01.000 INSTALLATION Well, assuming you're talking about the BMC software, they don't list FreeBSD as a supported platform. http://www.bmc.com/modules/module-html/Control-M-by-applications.html?height=488width=940 Given that it's not open source, if the doesn't run successfully under Linux emulation, I strongly doubt you can do anything outside of con- tacting the company. Also, AFIK Linux emulation is i386 only, not amd64/x86_64 (or what- ever obnoxious neologism they're using to-day) so you'll probably have to run something other than Linux-x86_64. -- -- ___ 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
Newbye question VIM problem
Hello all, I have to install in a probably not latest version BSD machine but when I try to pkg_add -r vim-lite Error: Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9.0-release/Latest/vim-lite.tbz: File unavailable (e.g., file not found, no access) pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9.0-release/Latest/vim-lite.tbz' by URL I get that error, it should be cause by the fact that my system is not so new, am I wrong ? Any solution on that ? Thanks a lot. Pietro. ___ 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: Newbye question VIM problem
On Jul 23, 2013, at 7:24 AM, Pietro Paolini wrote: Hello all, I have to install in a probably not latest version BSD machine but when I try to pkg_add -r vim-lite Error: Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9.0-release/Latest/vim-lite.tbz: File unavailable (e.g., file not found, no access) pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9.0-release/Latest/vim-lite.tbz' by URL I get that error, it should be cause by the fact that my system is not so new, am I wrong ? Any solution on that ? Try: env PACKAGESITE=ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/ports/i386/packages-9.0-releases/Latest/ pkg_add -r vim-lite NOTE: That is a single command to be written on a single-line. -- Devin _ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. ___ 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: Newbye question VIM problem
On Jul 23, 2013, at 4:36 PM, Teske, Devin devin.te...@fisglobal.com wrote: env PACKAGESITE=ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/ports/i386/packages-9.0-releases/Latest/ pkg_add -r vim-lite Thanks for the quick answer but I got the error: env PACKAGESITE=ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/ports/i386/packages-9.0-releases/Latest/ pkg_add -r vim-lite Error: Unable to get ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/ports/i386/packages-9.0-releases/Latest/vim-lite.tbz: File unavailable (e.g., file not found, no access) pkg_add: unable to fetch 'ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/ports/i386/packages-9.0-releases/Latest/vim-lite.tbz' by URL ___ 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: Newbye question VIM problem
On Tue, Jul 23, 2013 at 5:09 PM, Pietro Paolini pulsarpie...@aol.comwrote: On Jul 23, 2013, at 4:36 PM, Teske, Devin devin.te...@fisglobal.com wrote: env PACKAGESITE= ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/ports/i386/packages-9.0-releases/Latest/pkg_add -r vim-lite Thanks for the quick answer but I got the error: env PACKAGESITE= ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/ports/i386/packages-9.0-releases/Latest/pkg_add -r vim-lite Error: Unable to get ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/ports/i386/packages-9.0-releases/Latest/vim-lite.tbz: File unavailable (e.g., file not found, no access) pkg_add: unable to fetch ' ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/ports/i386/packages-9.0-releases/Latest/vim-lite.tbz' by URL One extra 's' in packages-9.0-releaseS. Try this one: ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/ports/i386/packages-9.0-release/Latest/ ___ 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: Newbye question VIM problem
On Jul 23, 2013, at 5:16 PM, Fernando Apesteguía fernando.apesteg...@gmail.com wrote: ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/ports/i386/packages-9.0-release/Latest/ Yep, thanks a lot ! ___ 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: Newbye question VIM problem
On Jul 23, 2013, at 8:56 AM, Pietro Paolini wrote: On Jul 23, 2013, at 5:16 PM, Fernando Apesteguía fernando.apesteg...@gmail.com wrote: https://urldefense.proofpoint.com/v1/url?u=ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/ports/i386/packages-9.0-release/Latest/k=%2FbkpAUdJWZuiTILCq%2FFnQg%3D%3D%0Ar=Mrjs6vR4%2Faj2Ns9%2FssHJjg%3D%3D%0Am=EqNk3zW%2BFthkGaRpyM7lCZDFPyMcUaqjJFP252xoemg%3D%0As=bdff9db189b5402b3645c555057e75498aa8736639cf977d5009f66eb6335304 Yep, thanks a lot ! As a side discussion... (opening a can of squiggly worms here) It's often bothered me that the tools don't know about the archive (which goes back a long ways and has a very consistent and structured layout). So in authoring the latest tool (bsdconfig(8)), I made sure that the archive is checked (grep archive media/ftp.subr from SVN r247280). Don't know if that was the right move, but here @ Vicor, we've been [ab]using the archive for .. over a decade? (looks at julian to chime in if he used the archive before I got here). But I for one would like to see the archive to maintain its steady growth and be available. Of course, the change to look in the archive seemed (to me at least) to be a pretty innocuous one (if the archive goes away, they're back to where they started... no working URLs). Just wondering why for so long the archive has never been checked by tools when (imho) that only serves to break old releases sooner with respect to remote-fetch of a binary release file (e.g., pkg or dist, etc.). -- Devin _ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. ___ 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: Newbye question VIM problem
On 2013-07-23 18:07, Teske, Devin wrote: (opening a can of squiggly worms here) Well, then you can go fishing This is a A sidenotnote ___ 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
question, following error Shared object libc.so.6 not found, required by fortune
I was trying to use the content management system for our website. I needed to restart on terminal but I keep coming up with the following error: I don't know programing at all, so don't know if this is something I can fix. Shared object libc.so.6 not found, required by fortune Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of these environment variable is needed to run this program root@psumc:/usr/local/tomcat5.5 # bin/startup.sh Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of these environment variable is needed to run this program root@psumc:/usr/local/tomcat5.5 # su -c 'killall -9 java' ___ 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: question, following error Shared object libc.so.6 not found, required by fortune
On Sat, 29 Jun 2013 10:48:38 -0400, Rev Herbert Miller wrote: I was trying to use the content management system for our website. I needed to restart on terminal but I keep coming up with the following error: I don't know programing at all, so don't know if this is something I can fix. In worst case, notify your system administrator. Shared object libc.so.6 not found, required by fortune This kind of error often indicates an incomplete system update were libraries are out of date or missing. What way of system update has been performed? root@psumc:/usr/local/tomcat5.5 # bin/startup.sh Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of these environment variable is needed to run this program That can be a side effect, maybe some accidentally overwritten configuration file or a program that's unable to run due to a missing dependency? What happens if you manually define those variables to the proper valies and try again, e. g. # setenv JAVA_HOME=/usr/local/where your JAVA stuff is # setenv JRE_HOME=/usr/local/where your runtime lives # bin/startup,sh Does this produce a different result? root@psumc:/usr/local/tomcat5.5 # su -c 'killall -9 java' That command doesn't make sense. The prompt indicates that you are already root. The -c parameter for the su command is missing an argument, the class. See man su for details, no programming knowledge required. ;-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: A very 'trivial' question about /root
Hi Julian, you played Devil's advocate well actually as I don't know which idea would be more audacious, letting httpd access files from your root dir or exporting /root via nfs. :) Both of them sound more like a lab scenario than a real one. I understand that launching a chmod 700 /root it's a matter of something between 1 and 3 seconds. I do also understand that I had /root closed for long time and never had the need to set permissions back loose and this triggered my point. Why is it that open? :) On Fri, 2013-06-28 at 01:47 +0200, Julian H. Stacey wrote: Hi, Reference: From: ASV a...@inhio.eu Date: Thu, 27 Jun 2013 21:39:20 +0200 ASV wrote: Thanks for your reply Polytropon, I'm using FreeBSD since few years already and I'm kind of aware of the dynamics related to permissions, many of them are common to many Unices. I agree that the installer doesn't put anything secret but as a home dir for the root user it's highly likely that something not intended to be publicly readable will end up there soon after the installation. Which IMHO it's true also for any other user homedir which gets created by default using a pretty relaxed umask 022, but that seems to be the default on probably any other UNIX like system I've put my hands on AFAIR. Don't get me wrong, since I use FreeBSD I'm just in love with it. Mine is just a concern about these permission defaults which look to me a bit too relaxed and cannot find yet a reason why not to restrict it. After all I believe having good default settings may make the difference in some circumstances and/or save time. On Thu, 2013-06-27 at 04:58 +0200, Polytropon wrote: On Wed, 26 Jun 2013 23:34:41 +0200, ASV wrote: There's any reason (and should be a fairly good one) why the /root directory permissions by default are set to 755 (for sure on releases 8.0/8.1/9.0/9.1) This is the default permission for user directories, as root is considered a user in this (special) case, and /root is its home directory. The installer does not put anything secret in there, but _you_ might, so there should be no issue changing it to a more restricted access permission. Hint: When a directory is r-x for other, then it will be indexed by the locate periodic job, so users could use the locate command (and also find) to look what's in there. If this is not desired, change to rwx/---/---, or rwx/r-x/--- if you want to allow (trusted) users of the wheel group to read and execute stuff from that directory (maybe homemade admin scripts in /root/bin that should not be public). There are few things that touch /root content. System updating might be one of them, but as it is typically run as root (and even in SUM), restrictive permissions above the default are no problem. To summarize the answer for your question: It's just the default. :-) I'll play Devil's advocate for a moment ;-) One reason not to tighten ~root is because one might want ~root/httpuserfile to be readable by httpd to access the crypted passwords of locked web page. ... ;-) No not really, that's perverted, I wouldn't reccomend an http://localhost/~root/ regardless of password locked pages or not. But it shows how lateral head scratching might be appropriate before removing read perms on ~root/ . { A bit like wrong ownership on / can surprisingly kill AMD NFS access } ... some unexpected constraints can take some thinking through, It might be quickest for a number of us to just try chmod 700 ~root for a while see if we get trouble. Cheers, Julian ___ 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: A very 'trivial' question about /root
On Fri, 28 Jun 2013, ASV wrote: Hi Julian, you played Devil's advocate well actually as I don't know which idea would be more audacious, letting httpd access files from your root dir or exporting /root via nfs. :) Both of them sound more like a lab scenario than a real one. A diskless FreeBSD will use an NFS-mounted /root. See: http://www.freebsd.org/doc/handbook/network-diskless.html http://www.nber.org/sys-admin/FreeBSD-diskless.html So it is more than a theoretical possibility. I would also add that putting stricter permissions on perfectly public information may not lead to improved security, if it leads to programs and daemons that would otherwise run as nobody having to run with root priviledges. daniel feenberg I understand that launching a chmod 700 /root it's a matter of something between 1 and 3 seconds. I do also understand that I had /root closed for long time and never had the need to set permissions back loose and this triggered my point. Why is it that open? :) On Fri, 2013-06-28 at 01:47 +0200, Julian H. Stacey wrote: Hi, Reference: From: ASV a...@inhio.eu Date: Thu, 27 Jun 2013 21:39:20 +0200 ASV wrote: Thanks for your reply Polytropon, I'm using FreeBSD since few years already and I'm kind of aware of the dynamics related to permissions, many of them are common to many Unices. I agree that the installer doesn't put anything secret but as a home dir for the root user it's highly likely that something not intended to be publicly readable will end up there soon after the installation. Which IMHO it's true also for any other user homedir which gets created by default using a pretty relaxed umask 022, but that seems to be the default on probably any other UNIX like system I've put my hands on AFAIR. Don't get me wrong, since I use FreeBSD I'm just in love with it. Mine is just a concern about these permission defaults which look to me a bit too relaxed and cannot find yet a reason why not to restrict it. After all I believe having good default settings may make the difference in some circumstances and/or save time. On Thu, 2013-06-27 at 04:58 +0200, Polytropon wrote: On Wed, 26 Jun 2013 23:34:41 +0200, ASV wrote: There's any reason (and should be a fairly good one) why the /root directory permissions by default are set to 755 (for sure on releases 8.0/8.1/9.0/9.1) This is the default permission for user directories, as root is considered a user in this (special) case, and /root is its home directory. The installer does not put anything secret in there, but _you_ might, so there should be no issue changing it to a more restricted access permission. Hint: When a directory is r-x for other, then it will be indexed by the locate periodic job, so users could use the locate command (and also find) to look what's in there. If this is not desired, change to rwx/---/---, or rwx/r-x/--- if you want to allow (trusted) users of the wheel group to read and execute stuff from that directory (maybe homemade admin scripts in /root/bin that should not be public). There are few things that touch /root content. System updating might be one of them, but as it is typically run as root (and even in SUM), restrictive permissions above the default are no problem. To summarize the answer for your question: It's just the default. :-) I'll play Devil's advocate for a moment ;-) One reason not to tighten ~root is because one might want ~root/httpuserfile to be readable by httpd to access the crypted passwords of locked web page. ... ;-) No not really, that's perverted, I wouldn't reccomend an http://localhost/~root/ regardless of password locked pages or not. But it shows how lateral head scratching might be appropriate before removing read perms on ~root/ . { A bit like wrong ownership on / can surprisingly kill AMD NFS access } ... some unexpected constraints can take some thinking through, It might be quickest for a number of us to just try chmod 700 ~root for a while see if we get trouble. Cheers, Julian ___ 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: A very 'trivial' question about /root
Hi, Reference: From: ASV a...@inhio.eu Date: Fri, 28 Jun 2013 10:10:02 +0200 [ I jhs@ reverted asv@'s top post to bottom post ] On Fri, 2013-06-28 at 01:47 +0200, Julian H. Stacey wrote: Hi, Reference: From: ASV a...@inhio.eu Date: Thu, 27 Jun 2013 21:39:20 +0200 ASV wrote: Thanks for your reply Polytropon, I'm using FreeBSD since few years already and I'm kind of aware of the dynamics related to permissions, many of them are common to many Unices. I agree that the installer doesn't put anything secret but as a home dir for the root user it's highly likely that something not intended to be publicly readable will end up there soon after the installation. Which IMHO it's true also for any other user homedir which gets created by default using a pretty relaxed umask 022, but that seems to be the default on probably any other UNIX like system I've put my hands on AFAIR. Don't get me wrong, since I use FreeBSD I'm just in love with it. Mine is just a concern about these permission defaults which look to me a bit too relaxed and cannot find yet a reason why not to restrict it. After all I believe having good default settings may make the difference in some circumstances and/or save time. On Thu, 2013-06-27 at 04:58 +0200, Polytropon wrote: On Wed, 26 Jun 2013 23:34:41 +0200, ASV wrote: There's any reason (and should be a fairly good one) why the /root directory permissions by default are set to 755 (for sure on releases 8.0/8.1/9.0/9.1) This is the default permission for user directories, as root is considered a user in this (special) case, and /root is its home directory. The installer does not put anything secret in there, but _you_ might, so there should be no issue changing it to a more restricted access permission. Hint: When a directory is r-x for other, then it will be indexed by the locate periodic job, so users could use the locate command (and also find) to look what's in there. If this is not desired, change to rwx/---/---, or rwx/r-x/--- if you want to allow (trusted) users of the wheel group to read and execute stuff from that directory (maybe homemade admin scripts in /root/bin that should not be public). There are few things that touch /root content. System updating might be one of them, but as it is typically run as root (and even in SUM), restrictive permissions above the default are no problem. To summarize the answer for your question: It's just the default. :-) I'll play Devil's advocate for a moment ;-) One reason not to tighten ~root is because one might want ~root/httpuserfile to be readable by httpd to access the crypted passwords of locked web page. ... ;-) No not really, that's perverted, I wouldn't reccomend an http://localhost/~root/ regardless of password locked pages or not. But it shows how lateral head scratching might be appropriate before removing read perms on ~root/ . { A bit like wrong ownership on / can surprisingly kill AMD NFS access } ... some unexpected constraints can take some thinking through, It might be quickest for a number of us to just try chmod 700 ~root for a while see if we get trouble. Cheers, Julian ASV wrote: Hi Julian, you played Devil's advocate well actually as I don't know which idea would be more audacious, letting httpd access files from your root dir or exporting /root via nfs. :) Both of them sound more like a lab scenario than a real one. I understand that launching a chmod 700 /root it's a matter of something between 1 and 3 seconds. I do also understand that I had /root closed for long time and never had the need to set permissions back loose and this triggered my point. Why is it that open? :) Here is a patch: http://www.berklix.com/~jhs/src/bsd/fixes/FreeBSD/src/gen/etc/mtree/BSD.root.dist.REL=ALL.diff Before we might ask (via send-pr) for it to be commited, we should various of us run chmod 750 /root;chown root:wheel /root give it a couple of months to see if problems. I doubt there will be a problem with /root/.forward , as lrwxr-xr-x 1 root wheel /usr/sbin/sendmail - /usr/sbin/mailwrapper -r-xr-xr-x 1 root wheel /usr/sbin/mailwrapper jb.1234a...@gmail.com 's ref to https://bugzilla.redhat.com/show_bug.cgi?id=578470 relates to Linux upgrade procedures /root I don't see it affects how we should perceive an idealised Unix. ( I'd guess OpenBSD might go for a tighter /root though, as they're supposedly keen on security. ) Daniel Feenberg wrote: A diskless FreeBSD will use an NFS-mounted /root. See: .^. No, that spelling/ phrase is mis-leading, better to say an NFS-mounted root, or an NFS-mounted /. /root under / is merely a level one sub
Re: A very 'trivial' question about /root
On Fri, 28 Jun 2013 15:25:44 +0200, Julian H. Stacey wrote: Before we might ask (via send-pr) for it to be commited, we should various of us run chmod 750 /root;chown root:wheel /root give it a couple of months to see if problems. Done years ago: drwxr-x--- 7 root wheel 512 2013-04-05 21:42:34 /root/ System has been installed in August 2011. No problems so far. :-) ( I'd guess OpenBSD might go for a tighter /root though, as they're supposedly keen on security. ) Currently I've got no OpenBSD installation at hand to verify, but I _assume_ they still have the same defaults as FreeBSD regarding permissions of /root. if it leads to programs and daemons that would otherwise run as nobody having to run with root priviledges. Good point, we should be cautious, best if lots of us try chmod 750 /root for a couple of months see if any burnt fingers. What programs or daemons should attention be paid at, especially? -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: A very 'trivial' question about /root
Polytropon free...@edvax.de writes: On Fri, 28 Jun 2013 15:25:44 +0200, Julian H. Stacey wrote: ( I'd guess OpenBSD might go for a tighter /root though, as they're supposedly keen on security. ) Currently I've got no OpenBSD installation at hand to verify, but I _assume_ they still have the same defaults as FreeBSD regarding permissions of /root. That's correct. ___ 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: A very 'trivial' question about /root
Julian H. Stacey jhs at berklix.com writes: jb.1234abcd at gmail.com 's ref to https://bugzilla.redhat.com/show_bug.cgi?id=578470 relates to Linux upgrade procedures /root I don't see it affects how we should perceive an idealised Unix. The upgrade was a canary that told the user there is a problem. The idealized UNIX is standardized. According to Filesystem Hierarchy Standard (FHS), a UNIX standard: /root : Home directory for the root user (optional) Purpose The root account's home directory may be determined by developer or local preference, but this is the recommended default location. [17] [17] If the home directory of the root account is not stored on the root partition it will be necessary to make certain it will default to / if it can not be located. The above means that there has to be implied equivalency and consistency of permisssions between /root and / in order to ensure trouble-free operation of any process that may rely on any of them. That Linux case I referred to was a case about a system that relied on the above 0755 setup for /root dir, with an interesting twist of having it as a dummy account/dir for consistency, but having other accounts play the role of a superuser. Another example: some app (perhaps an installer) runs as non-root (e.g. Apache) user and needs to be able to read the root ssh public key from /root dir. There could be many such apps, accessing a front-end system, having to check for permission in /root dir for whatever they want to do, anywhere in sys admin, remote control, management, installation, etc areas. By changing this default you may ambush many unsuspecting users. jb ___ 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: A very 'trivial' question about /root
Thanks for your reply Polytropon, I'm using FreeBSD since few years already and I'm kind of aware of the dynamics related to permissions, many of them are common to many Unices. I agree that the installer doesn't put anything secret but as a home dir for the root user it's highly likely that something not intended to be publicly readable will end up there soon after the installation. Which IMHO it's true also for any other user homedir which gets created by default using a pretty relaxed umask 022, but that seems to be the default on probably any other UNIX like system I've put my hands on AFAIR. Don't get me wrong, since I use FreeBSD I'm just in love with it. Mine is just a concern about these permission defaults which look to me a bit too relaxed and cannot find yet a reason why not to restrict it. After all I believe having good default settings may make the difference in some circumstances and/or save time. On Thu, 2013-06-27 at 04:58 +0200, Polytropon wrote: On Wed, 26 Jun 2013 23:34:41 +0200, ASV wrote: There's any reason (and should be a fairly good one) why the /root directory permissions by default are set to 755 (for sure on releases 8.0/8.1/9.0/9.1) This is the default permission for user directories, as root is considered a user in this (special) case, and /root is its home directory. The installer does not put anything secret in there, but _you_ might, so there should be no issue changing it to a more restricted access permission. Hint: When a directory is r-x for other, then it will be indexed by the locate periodic job, so users could use the locate command (and also find) to look what's in there. If this is not desired, change to rwx/---/---, or rwx/r-x/--- if you want to allow (trusted) users of the wheel group to read and execute stuff from that directory (maybe homemade admin scripts in /root/bin that should not be public). There are few things that touch /root content. System updating might be one of them, but as it is typically run as root (and even in SUM), restrictive permissions above the default are no problem. To summarize the answer for your question: It's just the default. :-) ___ 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: A very 'trivial' question about /root
Hi, Reference: From: ASV a...@inhio.eu Date: Thu, 27 Jun 2013 21:39:20 +0200 ASV wrote: Thanks for your reply Polytropon, I'm using FreeBSD since few years already and I'm kind of aware of the dynamics related to permissions, many of them are common to many Unices. I agree that the installer doesn't put anything secret but as a home dir for the root user it's highly likely that something not intended to be publicly readable will end up there soon after the installation. Which IMHO it's true also for any other user homedir which gets created by default using a pretty relaxed umask 022, but that seems to be the default on probably any other UNIX like system I've put my hands on AFAIR. Don't get me wrong, since I use FreeBSD I'm just in love with it. Mine is just a concern about these permission defaults which look to me a bit too relaxed and cannot find yet a reason why not to restrict it. After all I believe having good default settings may make the difference in some circumstances and/or save time. On Thu, 2013-06-27 at 04:58 +0200, Polytropon wrote: On Wed, 26 Jun 2013 23:34:41 +0200, ASV wrote: There's any reason (and should be a fairly good one) why the /root directory permissions by default are set to 755 (for sure on releases 8.0/8.1/9.0/9.1) This is the default permission for user directories, as root is considered a user in this (special) case, and /root is its home directory. The installer does not put anything secret in there, but _you_ might, so there should be no issue changing it to a more restricted access permission. Hint: When a directory is r-x for other, then it will be indexed by the locate periodic job, so users could use the locate command (and also find) to look what's in there. If this is not desired, change to rwx/---/---, or rwx/r-x/--- if you want to allow (trusted) users of the wheel group to read and execute stuff from that directory (maybe homemade admin scripts in /root/bin that should not be public). There are few things that touch /root content. System updating might be one of them, but as it is typically run as root (and even in SUM), restrictive permissions above the default are no problem. To summarize the answer for your question: It's just the default. :-) I'll play Devil's advocate for a moment ;-) One reason not to tighten ~root is because one might want ~root/httpuserfile to be readable by httpd to access the crypted passwords of locked web page. ... ;-) No not really, that's perverted, I wouldn't reccomend an http://localhost/~root/ regardless of password locked pages or not. But it shows how lateral head scratching might be appropriate before removing read perms on ~root/ . { A bit like wrong ownership on / can surprisingly kill AMD NFS access } ... some unexpected constraints can take some thinking through, It might be quickest for a number of us to just try chmod 700 ~root for a while see if we get trouble. Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultant, Munich http://berklix.com Reply below not above, like a play script. Indent old text with . Send plain text. No quoted-printable, HTML, base64, multipart/alternative. ___ 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: A very 'trivial' question about /root
ASV asv at inhio.eu writes: Mine is just a concern about these permission defaults which look to me a bit too relaxed and cannot find yet a reason why not to restrict it. After all I believe having good default settings may make the difference in some circumstances and/or save time. I think the 0755 permissions for /root are correct as default. If you are concerned about others, you harden it to 0750 (after all you are the boos, the root, anyway). Otherwise, you may create conditions which cause trouble for others, for example: https://bugzilla.redhat.com/show_bug.cgi?id=578470 jb ___ 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
A very 'trivial' question about /root
This is a very 'trivial' question but it's bugging me since quite a while now so I gotta ask. There's any reason (and should be a fairly good one) why the /root directory permissions by default are set to 755 (for sure on releases 8.0/8.1/9.0/9.1) Thanks in advance. ___ 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: A very 'trivial' question about /root
ASV: This is a very 'trivial' question but it's bugging me since quite a while now so I gotta ask. There's any reason (and should be a fairly good one) why the /root directory permissions by default are set to 755 (for sure on releases 8.0/8.1/9.0/9.1) I imagine / needs those permissions during installation but maybe they should be changed to something more desirable at post-install. What would you suggest -- maybe 555? -ayan ___ 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: A very 'trivial' question about /root
On 06/26/13 15:47, Ayan George wrote: ASV: This is a very 'trivial' question but it's bugging me since quite a while now so I gotta ask. There's any reason (and should be a fairly good one) why the /root directory permissions by default are set to 755 (for sure on releases 8.0/8.1/9.0/9.1) I imagine / needs those permissions during installation but maybe they should be changed to something more desirable at post-install. What would you suggest -- maybe 555? -ayan ___ 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 Just a mention, I set /root to 700 and haven't seen any issues to date. r ___ 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: A very 'trivial' question about /root
ASV a...@inhio.eu writes: This is a very 'trivial' question but it's bugging me since quite a while now so I gotta ask. There's any reason (and should be a fairly good one) why the /root directory permissions by default are set to 755 (for sure on releases 8.0/8.1/9.0/9.1) By default, there's nothing secret in there, so 755 makes sense to me. ___ 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: A very 'trivial' question about /root
On Wed, 26 Jun 2013 23:34:41 +0200, ASV wrote: There's any reason (and should be a fairly good one) why the /root directory permissions by default are set to 755 (for sure on releases 8.0/8.1/9.0/9.1) This is the default permission for user directories, as root is considered a user in this (special) case, and /root is its home directory. The installer does not put anything secret in there, but _you_ might, so there should be no issue changing it to a more restricted access permission. Hint: When a directory is r-x for other, then it will be indexed by the locate periodic job, so users could use the locate command (and also find) to look what's in there. If this is not desired, change to rwx/---/---, or rwx/r-x/--- if you want to allow (trusted) users of the wheel group to read and execute stuff from that directory (maybe homemade admin scripts in /root/bin that should not be public). There are few things that touch /root content. System updating might be one of them, but as it is typically run as root (and even in SUM), restrictive permissions above the default are no problem. To summarize the answer for your question: It's just the default. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
mouse configuration question
I have a ps/2 mouse attached to a HP mini-tower running FreeBSD 8.3, with a stripped-down kernel (no loadable modules). I've apparently removed something necessary for standard mouse functionality, but I have no clue as to -what- is missing. Gory details: 1) '/dev/psm0' exists and +is+ the mouse, 2) 'moused' detects the mouse: psm0 sysmouse Intellimouse 3) 'moused -d' properly reports mouse activity -- button press/release and mouse motion. 4) 'vidcontrol -m on' reports inappropriate ioctl for device. 5) *NO* '/dev/sysmouse' device present. I'm building an ncurses-based app, and want to add mouse functionality. The ncurses mouse-related functions return 'total failure' status (value 0). I suspect that 5), above is the immediate issue, but can't find out 'who' is (ir-)responsible for creating that psuedo-device. Any/all pointers much 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: mouse configuration question
Date: Fri, 21 Jun 2013 21:21:45 +0200 Subject: Re: mouse configuration question From: Xavier xavierfreebsdquesti...@gmail.com On Fri, Jun 21, 2013 at 02:09:13PM -0500, Robert Bonomi wrote: Hi Robert, I have a ps/2 mouse attached to a HP mini-tower running FreeBSD 8.3, with a stripped-down kernel (no loadable modules). I've apparently removed something necessary for standard mouse functionality, but I have no clue as to -what- is missing. Gory details: 1) '/dev/psm0' exists and +is+ the mouse, 2) 'moused' detects the mouse: psm0 sysmouse Intellimouse 3) 'moused -d' properly reports mouse activity -- button press/release and mouse motion. 4) 'vidcontrol -m on' reports inappropriate ioctl for device. Try another time out of any TMUX(1), SCREEN(1) or similar application, and it work right. Unfortunately, _not_ true. I've made multiple attempts from multiple screen sessions, and even after multiple reboots. No luck. moused _is_ loaded on system boot, further there are multiple 'vidcontrol: inappropriate ioctl for device' messages on the console as the last thing before the login prompt is displayed. I've tried sending SIGHUP and/or SIGUSR1 to moused, with no effect on the issue. no '/dev/sysmouse', curses mouse routines still report total failure, and all the rest. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD slice/partiton setup question
There have been some excellent responses, and I just wanted to add a quick point: Virtual machines with VirtualBox work very well and avoid the problem of trying to make compatible partition layouts. Enable sshd on FreeBSD and get to the files with rsync or scp or some FUSE module on the other computer. Besides avoiding the whole problem of mixed partition schemes, it means both operating systems can run at the same time. The host computer can be used to look up things on the web about setting up the VM guest, while the guest is actually running. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD slice/partiton setup question
2013. június 19. 19:41 napon Warren Block wbl...@wonkity.com írta: There have been some excellent responses, and I just wanted to add a quick point: Virtual machines with VirtualBox work very well and avoid the problem of trying to make compatible partition layouts. Enable sshd on FreeBSD and get to the files with rsync or scp or some FUSE module on the other computer. Thank you all for your answers, detailed explanations and document links. I am now digesting what I've read and probably will try different setups on an empty hard disk. Thanks again, Istvan ___ 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 slice/partiton setup question
Hello: I have a question regarding FreeBSD slices/partitions. I have a disk with linux partitions with the following layout: /dev/sda1 / /dev/sda2 /home /dev/sda3 /usr/local /dev/sda5 swap /dev/sda6 /home/user1 /dev/sda7 /home/user2 etc. sda1, sda2, and sda3 are primary partitions, sda5 and above are logical partitions on an extended partition. I would like to have a similar setup with FreeBSD. The goal is that the / root, /home, /usr/local and /home/user1 etc. filesystems should be on independent slices/partitions so that I could mount them independently from linux. How can I do this in FreeBSD? Can I have slices with only one partition occupying the whole slice? Can I do something like the following: /dev/ad0s1a / /dev/ad0s2e /home /dev/ad0s3e /usr/local /dev/ad0s5b swap /dev/ad0s6e /home/user1 /dev/ad0s7e /home/user2 etc. where the partitions (a, e, b) occupy the whole slice where they reside on? Thanks, Istvan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD slice/partiton setup question
On Tue, Jun 18, 2013 at 10:44 AM, Istvan Gabor suseuse...@lajt.hu wrote: ... How can I do this in FreeBSD? Can I have slices with only one partition occupying the whole slice? Can I do something like the following: /dev/ad0s1a / /dev/ad0s2e /home /dev/ad0s3e /usr/local /dev/ad0s5b swap /dev/ad0s6e /home/user1 /dev/ad0s7e /home/user2 etc. where the partitions (a, e, b) occupy the whole slice where they reside on? Why bother with partitions if you're going to use the whole slice? Why bother with slices if you won't run out of partitions? - M ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD slice/partiton setup question
2013. június 18. 19:49 napon Michael Sierchio ku...@tenebras.com írta: On Tue, Jun 18, 2013 at 10:44 AM, Istvan Gabor suseuse...@lajt.hu wrote: ... How can I do this in FreeBSD? Can I have slices with only one partition occupying the whole slice? Can I do something like the following: /dev/ad0s1a / /dev/ad0s2e /home /dev/ad0s3e /usr/local /dev/ad0s5b swap /dev/ad0s6e /home/user1 /dev/ad0s7e /home/user2 etc. where the partitions (a, e, b) occupy the whole slice where they reside on? Thanks, but I don't understand your answer. I am puzzled a little bit. My understanding based on the FreeBSD handbook is that slices in FreeBSD are the partitions in linux. And that on one slice (linux partition) FreeBSD has (or can have?) several partitions. These are labeled as letters: a for root partition, b for swap, c for the whole slice, and e for a regular non-root partition. Why bother with partitions if you're going to use the whole slice? Are you saying that one can use/mount a whole slice without adding partitions to it? For example /dev/ada0s1 could be the root partition? Why bother with slices if you won't run out of partitions? Do you mean putting all partitions on one big slice? I would like to be able to mount different partitions independently from other OS, eg. from linux. As far as I know linux cannot mount FreeBSD partitions, only the whole slice. If one slice has several partitions, one single partition can not be mounted from linux. Could you please confirm if my understanding is correct, or explain a little bit more detailed what you meant? Thanks, Istvan ___ 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: Re: FreeBSD slice/partiton setup question
From owner-freebsd-questi...@freebsd.org Tue Jun 18 13:47:50 2013 Subject: =?UTF-8?Q?Re:_FreeBSD_slice/partiton_setup_?= =?UTF-8?Q?question?= From: =?UTF-8?Q?Istvan_Gabor?= suseuse...@lajt.hu To: =?UTF-8?Q?FreeBSD_Questions?=freebsd-questions@freebsd.org, =?UTF-8?Q?Michael_Sierchio?=ku...@tenebras.com, =?UTF-8?Q?Michael_Sierchio?=ku...@tenebras.com Date: Tue, 18 Jun 2013 20:48:20 +0200 2013. jA nius 18. 19:49 napon Michael Sierchio ku...@tenebras.com A- rta: On Tue, Jun 18, 2013 at 10:44 AM, Istvan Gabor suseuse...@lajt.hu wrote: ... How can I do this in FreeBSD? Can I have slices with only one partition occupying the whole slice? Can I do something like the following: /dev/ad0s1a / /dev/ad0s2e /home /dev/ad0s3e /usr/local /dev/ad0s5b swap /dev/ad0s6e /home/user1 /dev/ad0s7e /home/user2 etc. where the partitions (a, e, b) occupy the whole slice where they reside on? Thanks, but I don't understand your answer. I am puzzled a little bit. My understanding based on the FreeBSD handbook is that slices in FreeBSD are the partitions in linux. And that on one slice (linux partition) FreeBSD has (or can have?) several partitions. These are labeled as letters: a for root partition, b for swap, c for the whole slice, and e for a regular non-root partition. The terminology gets confusing. 'slices' in FreeBSD, and most other 'real' unix systems, correspond to MSDOS/Windows 'partitions', on hardware that supports the MSDOS partitioning scheme.. Unix has its own layer of disk subdivision, referred to here as 'BSD partitioning' (to make clear it is not the same as Microsoft's 'fdisk' functionality, as well. In the 'classical' form this gives the (up to 8) 'letter-named' pieces that a disk may be carved into. You can use 'slices', giving filesystem names, after 'BSD partitioning', like '/dev/ad4s0a', or you can omit 'slice' creation, and do only a 'BSD partioning scheme, giving device names like /dev/ad4a. In the 'BSD partitioning' scheme, letter 'c' is reserved for the entire disk, but SHOULD NOT ever be used directly. One can create another 'BSD partition' (using the letter of ones choice) that also spans the entire disk. There is no requirement to have more than one 'usable' partition on the disk. Why bother with partitions if you're going to use the whole slice? Are you saying that one can use/mount a whole slice without adding partitions to it? For example /dev/ada0s1 could be the root partition? Why bother with slices if you won't run out of partitions? Do you mean putting all partitions on one big slice? I would like to be able to mount different partitions independently from other OS, eg. from linux. As far as I know linux cannot mount FreeBSD partitions, only the whole slice. If one slice has several partitions, one single partition can not be mounted from linux. A full discussion gets 'messy'. there are lots of variations that complicate things -- including a single 'logical volume' with multiple physical disks (e.g. RAID), a single physical disk with multiple 'logical drives' on it (think 'fdisk' partitioning), *AND* the type of filesystem in use on the logical volume/drive. *ASSUMING* the 'Berkeley fast filesystem' (the traditional/classical system choice, also known as 'UFS'), a logical volume/drive must have a BSD 'volume label' on it, which allows subdividing that logical volume/drive into (up to) 8 letter-names parts. Each such 'part' holds a separate filesystem, and must be 'mounted', _individually_, before files on that filesystem can be acessed. The overall logic is similar for other filesystem types, however the mechanical details may be quite different. Could you please confirm if my understanding is correct, or explain a little bit more detailed what you meant? If you want a -single- filesystem to occupy an entire physical disk you can: a) use a 'dangerously dedicated' drive -- one with no 'fdisk' partitioning and only a BSD volume label, and create a single 'BSD partition' -- giving a device like '/dev/ad4h' b) creat a single 'fdisk' primary partition spanning the entire drive and put a BSD volume label on the primary partition, with only a single 'BSD partition' -- giving a device like '/dev/ad4s0h' c) do 'something similar' using a different partitioning scheme -- e.g. 'gpart' -- instead of 'bsdlabel'. d) do 'something similar' using a different type of filesystem -- e.g. 'ZFS' or 'EXT3' (beware: EXT3 is _not_ well-supported under FreeBSD, and there are 'good reasons' _not_ to use any of the EXT* filesystem types if one values the integrity of ones data in the event of 'unexpected' events. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr
Re: Re: FreeBSD slice/partiton setup question
You can simply newfs the device itself, without a volume label, slice, or partition. That's the normal thing to do with malloc devices, or additional disks. If the disk doesn't require a boot loader, isn't the root device, etc. that may be the best thing to do. Your caution about EXT* is spot-in - adequate tools exist for EXT2FS, but it's still problematic. - M ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD slice/partiton setup question
On Tue, 18 Jun 2013 20:48:20 +0200, Istvan Gabor wrote: 2013. június 18. 19:49 napon Michael Sierchio ku...@tenebras.com írta: On Tue, Jun 18, 2013 at 10:44 AM, Istvan Gabor suseuse...@lajt.hu wrote: ... How can I do this in FreeBSD? Can I have slices with only one partition occupying the whole slice? Can I do something like the following: /dev/ad0s1a / /dev/ad0s2e /home /dev/ad0s3e /usr/local /dev/ad0s5b swap /dev/ad0s6e /home/user1 /dev/ad0s7e /home/user2 etc. where the partitions (a, e, b) occupy the whole slice where they reside on? Thanks, but I don't understand your answer. First I'd like to point you at the excellent documentation provided by FreeBSD: http://www.freebsd.org/doc/handbook/disks-adding.html http://www.freebsd.org/doc/en/books/handbook/geom-glabel.html http://www.freebsd.org/doc/handbook/bsdinstall-partitioning.html Also read Warren Block's article about the tools used in the old and new way of preparing a disk for use: http://www.wonkity.com/~wblock/docs/html/disksetup.html Regarding terminology, just if it hasn't been clear already: In UNIX terminology, a slice is what DOS and therefor Windows refers to as a DOS primary partition. It is designated a number. It can be subdivided in partitions which are designated a letter. A partition carries a file system, a slice carries partitions, and finally a device carries slices. (The slicing can also be omitted, this is called dedicated). Examples: ad0 = the 1st disk ad0s1 = the 1st slice ad0s1a = the 1st partition of the 1st slice ... ad0s1h = the 8th partition of the 1st slice And the dedicated approach: ad0a = the 1st partition directly created on the 1st disk The letters have a specific meaning: 'a' is a bootable partition. 'c' is the whole thing (being the whole slice or the whole disk), 'b' is reserved for a swap partition, and user-defined partitions go from 'd' to 'h'. As I mentioned, there is a new and an old way of partitioning. What I've discussed so far is called MBR partitioning, it's the old way. The new way, GPT partitioning, does not use the idea of slices and partitions anymore. Instead partitions are enumerated and created directly. Example: ad0 = the 1st disk ad0p1 = the 1st partition ... ad0p15 = the 15th partition Of course, different tools are involved here, as you can see in the documentation links provided above. I am puzzled a little bit. My understanding based on the FreeBSD handbook is that slices in FreeBSD are the partitions in linux. So far correct, with an exception: A slice does _not_ carry a file system, whereas in DOS terminology, reflected in Linux, the file system is created in a DOS-like manner. Example: /dev/sda1 = 1st disk 1st DOS partition (slice) _with_ file system /dev/ad0s1 = the same, but no file system here /dev/ad0s1a = 1st partition on that slice _with_ file system And that on one slice (linux partition) FreeBSD has (or can have?) several partitions. Correct. These are labeled as letters: a for root partition, b for swap, c for the whole slice, and e for a regular non-root partition. Correct as well. Are you saying that one can use/mount a whole slice without adding partitions to it? For example /dev/ada0s1 could be the root partition? No. You _need_ to create a partition, read: at least one partition. That partition can cover the whole slice (or device, as mentioned above), and it will be designated 'c', but that letter is omitted (I think since FreeBSD 5). Example: Let's assume you have created the /dev/ada0s1 slice already. Now you do: # newfs /dev/ada0s1 and you get a file system on the /dev/ada0s1c partition (which is created implicitely by newfs. You can now mount it: # mount -t ufs /dev/ada0s1 /mnt But remember: That is the 'c' partition! Similar approach for data disks (where you want to dedicate the whole disk to data use, not booting or anything else): # newfs /dev/da0 # mount -t ufs /dev/da0 /mnt Again, /dev/da0c is the device you're operating on (which carries the file system). Do you mean putting all partitions on one big slice? With traditional partitioning, you can only use up to 'h' partitions (with exceptions). If you need more than those 8, use GPT instead. If you _must_ use MBR partitioning, you can have up to 4 slices on a disk, giving you (with exceptions) 4 x 8 = 32 partitions for FreeBSD on one disk. I would like to be able to mount different partitions independently from other OS, eg. from linux. That can be problematic because Linux doesn't seem to fully support UFS file systems and BSD partitioning... If interoperability is your goal, then you should probably use exchange partitions with a file system that is better supported on FreeBSD (than using FreeBSD and hoping for greater-than-zero support on Linux). Check if Linux supports GPT properly. It's much easier to deal with GPT than with the
easy question about logcheck
Hi all :-) I just configurated logcheck and everything is perfect :-) A question: where is the script that handle to send email? I check also with pkg_info -L but I didn't see any script that send email thanks for help! Pol ___ 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: easy question about logcheck
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6/17/13 4:16 PM, Pol Hallen wrote: Hi all :-) I just configurated logcheck and everything is perfect :-) A question: where is the script that handle to send email? I check also with pkg_info -L but I didn't see any script that send email thanks for help! Pol Hi Pol, If you include logcheck in a cron job (hourly, daily, etc.), the cron system will send the email with its output. Regards, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/cpucycle/ - Follow you, follow me -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.13 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlG/d8IACgkQ0sRouByUApAi7gCdFhs9h5HqVZ8sQRTStZP15nj5 casAoIAPxjfqoNPOndWM3QNfX7ikSmwU =q90K -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: easy question about logcheck
If you include logcheck in a cron job (hourly, daily, etc.), the cron system will send the email with its output. After installed logcheck I didn't done any changes to cron... but I've notify mails from logcheck Thanks! ___ 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
question on manpages/hier(7)
Where should site-specific, ie local, man pages live? For instance, I have: /usr/local/man/man1/php.1.gz /usr/local/share/man/man1/php.1.gz -rw-r--r-- 1 root wheel 3597 May 6 00:38 /usr/local/man/man1/php.1.gz -rw-r--r-- 1 root wheel 3383 Dec 20 19:54 /usr/local/share/man/man1/php.1.gz My understanding is that the older one is in the right place. The newer one is registered as belonging to php5.4-14 while the old one is orphaned. I learn from lsof that the file that is actually opened and displayed is this one: /usr/local/man/cat1/php.1.gz But that's in /usr/local/man, not /usr/local/share/man. So it's in /usr/local but why not in /usr/local/share? And it's orphaned. Should it be? I have just completed a several day cleanup of my local ports installation so I'm a little mystified at this. I also rebuilt my kernel and world so I should be up-to-date there too. -- Paul Beard Are you trying to win an argument or solve a problem? ___ 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: question on manpages/hier(7)
In the last episode (May 09), Paul Beard said: Where should site-specific, ie local, man pages live? For instance, I have: /usr/local/man/man1/php.1.gz /usr/local/share/man/man1/php.1.gz -rw-r--r-- 1 root wheel 3597 May 6 00:38 /usr/local/man/man1/php.1.gz -rw-r--r-- 1 root wheel 3383 Dec 20 19:54 /usr/local/share/man/man1/php.1.gz My understanding is that the older one is in the right place. The newer one is registered as belonging to php5.4-14 while the old one is orphaned. I don't have a /usr/local/share/man/ directory at all, and have 7300 files in /usr/local/man/man?/ , so I'd say /usr/local/man/ is the correct location :) -- Dan Nelson dnel...@allantgroup.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: question on manpages/hier(7)
On May 9, 2013, at 10:39 AM, Dan Nelson dnel...@allantgroup.com wrote: I don't have a /usr/local/share/man/ directory at all, and have 7300 files in /usr/local/man/man?/ , so I'd say /usr/local/man/ is the correct location :) I wish it were that simple here. /etc/manpath.config is unmodified so I have no idea how this is getting all futzed up. I am finding files in /usr/local/share/man/man1 that were updated yesterday with others dating back to 2007. -- Paul Beard Are you trying to win an argument or solve a problem? ___ 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
question installing 9.1
I installed 9.1-release amd 64 from the DVD. I intended to leave the obligatory windows 7. I shrunk the primary windows partition and installed FreeBSD. I never got an option to install the multi-partition boot record. Rather the install overwrote the MBR with a boot record to boot FreeBSD. While I appreciate the irony is there a way to make that option appear or is the only solution to rewrite it after the 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
Re: question installing 9.1
On Mon, 6 May 2013, doug wrote: I installed 9.1-release amd 64 from the DVD. I intended to leave the obligatory windows 7. I shrunk the primary windows partition and installed FreeBSD. I never got an option to install the multi-partition boot record. Rather the install overwrote the MBR with a boot record to boot FreeBSD. While I appreciate the irony is there a way to make that option appear or is the only solution to rewrite it after the fact? boot0cfg -B /dev/ada0 (ada or what ever your disk dev is) ___ 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-update question
I had an 8.2 system that I wanted to take to 8.4. First I tried upgrade to 8.4, getting (in essence) can't do that. So I upgraded 8.2 which worked giving the end-of-life warning. But seemed work. I then did an upgrade to 8.3 with: freebsd-update -r 8.3-RELEASE upgrade The first part, downloading the diffs and inspecting the system seemed ok. The install seemed ok up to the point it wanted to edit files. It wanted to edit freebsd.submit.cf and sendmail.cf neither of which had local changes and then it started wanting to delete all the files in /etc. I aborted the process when it got to rc.conf. The message was something like, deleting file hosts.allow no longer in 8.3. Happily aborting the process left the system unchanged. Aside from, what could I have done wrong? My question is should we be able to trust freebsd-update on expired systems if it says a mirror exists and then sets about doing its thing? Can this happen in the normal process of removing update 'cruft' from the mirrors? _ Douglas Denault http://www.safeport.com d...@safeport.com Voice: 301-217-9220 Fax: 301-217-9277 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
pkg question
Quoting from /usr/ports/UPDATING: 20130502: AFFECTS: users of ports-mgmt/pkg, ports-mgmt/poudriere, ports-mgmt/ tinderbox AUTHOR: bdrew...@freebsd.org This only affects people who are _building_ binary packages for pkgng. If you are building from ports please ignore this. This step is optional. It is recommended to rebuild all packages and then have your users run 'pkg check -Ba' and 'pkg upgrade' on their servers once. This will allow the new shlib tracking to reinstall packages that have changed shlib requirements. Does 'rebuild all packages' mean we have to recompile from scratch, or merely do a 'pkg create' for each? ___ 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: pkg question
On 03/05/2013 21:26, Walter Hurry wrote: Quoting from /usr/ports/UPDATING: 20130502: AFFECTS: users of ports-mgmt/pkg, ports-mgmt/poudriere, ports-mgmt/ tinderbox AUTHOR: bdrew...@freebsd.org This only affects people who are _building_ binary packages for pkgng. If you are building from ports please ignore this. This step is optional. It is recommended to rebuild all packages and then have your users run 'pkg check -Ba' and 'pkg upgrade' on their servers once. This will allow the new shlib tracking to reinstall packages that have changed shlib requirements. Does 'rebuild all packages' mean we have to recompile from scratch, or merely do a 'pkg create' for each? If you have packages installed, but without shlib info in the database, then you can: pkg upgrade or whatever, to get pkg-1.0.12 installed pkg check -Ba -- scans everything you have installed and adds the SHLIB info to your local database pkg create -a -o /usr/ports/packages/ -- create pkg tarballs (including shlib info) out of everything known in your local database. pkg repo -f /usr/ports/packages -- build a repo out of those package tarballs. However, this only works for what you have installed on that one machine, which is generally a sub-set of what you'ld like to have in a pkg repo. To build a more comprehensive set of packages as you'ld normally find in a repo, it's cleanest to just tell poudriere or tinderbox to build everything again from scratch. Timeconsuming, but you end up with a consistent repository fully populated with all the SHLIBS info you could want. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey JID: matt...@infracaninophile.co.uk signature.asc Description: OpenPGP digital signature
Re: Diskless question
2013-04-25 16:03, krad skrev: type id from your user account and paste the results back here uid=1001(bernt) gid=65534(nobody) groups=65534(nobody),0(wheel) ___ 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: Diskless question
type id from your user account and paste the results back here On 24 April 2013 14:55, Bernt Hansson b...@bananmonarki.se wrote: 2013-04-24 15:40, Lowell Gilbert skrev: Arthur Chance free...@qeng-ho.org writes: On 04/24/13 14:07, Lowell Gilbert wrote: No, that's from /etc/passwd which never shows any real password information. The true password field is in /etc/master.passwd and I'm not going to ask anyone to show that here. However, the OP should check it's got a valid looking field value rather than just a '*' Oops. Right. Ok this is master.password for root root:a lot of tokens.:0:0::0:0:Charlie :/root:/bin/csh __**_ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/**mailman/listinfo/freebsd-**questionshttp://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-** unsubscr...@freebsd.org 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