Cacti

2012-03-12 Thread Olafiranye Olakunle

What Commands to restart cacti ?please. Kunle 
___
freebsd-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: Cacti

2012-03-12 Thread Bas Smeelen
On 03/12/2012 12:28 PM, Olafiranye Olakunle wrote:
 What Commands to restart cacti ?please. Kunle 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
There is no command to restart cacti.
Data is gathered by the script poller.php which runs as a cronjob and the
interface to cacti graphs is available via apache webserver.
Maybe you want to restart apache?
apachectl (re)start or /usr/local/etc/rc.d/apache22 (re)start this is for
apache 2.2.x

Kind regards


Disclaimer: http://www.ose.nl/email

___
freebsd-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: Cacti

2012-03-12 Thread Julian H. Stacey
Olafiranye Olakunle wrote:
 
 What Commands to restart cacti ?please. Kunle 

You are too lazy to deserve help from that !
We are not mind readers, so work harder !

State what 
uname -a
reports

State what version of cacti you use.

State if you read any/which docs. with package

FreeBSD supports 23,000+ packages 
Something called cacti does seem to be there
grep -i cacti /usr/ports/INDEX*
yet Ive never heard of it, prob many others here too.

FreeBSD supports about 80 or so mail lists,
http://lists.freebsd.org/mailman/listinfo/

Select the list you decide most appropriate (eg freebsd-net@ maybe ? )

Then repost your request for help there,
with sufficient info that people can help you.

Cheers,
Julian
-- 
Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com
 Reply below not above, cumulative like a play script,  indent with  .
 Format: Plain text. Not HTML, multipart/alternative, base64, quoted-printable.
Mail from @yahoo dumped @berklix.  http://berklix.org/yahoo/
___
freebsd-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 SMTP-authentication (2nd )

2012-03-12 Thread kamolpat

Dear Matthew,

According to your recommendation   (as following). When I do make at 
/usr/src/sur.sbin/sendmail it show as following.

ns1:kamolpat:/usr/src/usr.sbin/sendmailmake clean
rm -f sm_os.h sendmail alias.o arpadate.o bf.o collect.o conf.o 
control.o convtime.o daemon.o deliver.o domain.o envelope.o err.o 
headers.o macro.o main.o map.o mci.o milter.o mime.o parseaddr.o queue.o 
ratectrl.o readcf.o recipient.o savemail.o sasl.o sfsasl.o shmticklib.o 
sm_resolve.o srvrsmtp.o stab.o stats.o sysexits.o timers.o tls.o trace.o 
udb.o usersmtp.o util.o version.o mailq.1.gz newaliases.1.gz 
aliases.5.gz sendmail.8.gz mailq.1.cat.gz newaliases.1.cat.gz 
aliases.5.cat.gz sendmail.8.cat.gz

ns1:kamolpat:/usr/src/usr.sbin/sendmailmake
ln -sf 
/usr/src/usr.sbin/sendmail/../../contrib/sendmail/include/sm/os/sm_os_freebsd.h 
sm_os.h
cc -O2 -pipe  -I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src 
-I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/include -I. -DNEWDB 
-DNIS -DTCPWRAPPERS -DMAP_REGEX -DDNSMAP -DNETINET6 -DSTARTTLS 
-D_FFR_TLS_1 -I/usr/local/include/sasl -DSASL=2 -std=gnu99 
-fstack-protector  -c 
/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/alias.c
In file included from 
/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/alias.c:14:
/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sendmail.h:135:25: 
error: sasl/sasl.h: No such file or directory
/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sendmail.h:136:29: 
error: sasl/saslutil.h: No such file or directory
In file included from 
/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/alias.c:14:
/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sendmail.h:607: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sendmail.h:691: 
error: expected specifier-qualifier-list before 'sasl_conn_t'

*** Error code 1

Stop in /usr/src/usr.sbin/sendmail.


then I try to find where is sasl.h

ns1:kamolpat:/usrfind . -name sasl.h
./local/include/sasl/sasl.h
./ports/security/cyrus-sasl2/work/cyrus-sasl-2.1.25/include/sasl.h
./ports/security/cyrus-sasl2-saslauthd/work/cyrus-sasl-2.1.25/include/sasl.h

What should I do next? Shold I just copy the sasl.h to 
/usr/src/contrib/sendmail/src/sendmail   ?


Thanks
Kamolpat

On 3/9/2012 12:34 AM, Matthew Seaman wrote:

On 08/03/2012 15:55, kamolpat wrote:

Setup Reference
==
1. I read the how to setup from  FreeBSD Handbook (online)-  Chapter 29
Electronic Mail -  29.10 SMTP Authentication  from freebsd.org
2. setup for cyrus-sasl2 was fine (setup via
usr/ports/security/cyrus-sasl2)
3. setup for openssl was 90% fine (setup via port) reference to FreeBSD
Handbook (online)-Chapter 15 Security -  15.8 OpenSSL
 accept the STARTTLS line doesn't appear  as mention on the last
part of article.


Did you rebuild sendmail with the right flags so that it would enable
all the SASL bits?  Apart from that you seem to have done all the right
stuff that I can see.

You need to add this to /etc/make.conf:

SENDMAIL_CFLAGS=-I/usr/local/include -DSASL=2
SENDMAIL_LDFLAGS=-L/usr/local/lib
SENDMAIL_LDADD=-lsasl2

and then rebuild sendmail -- assuming you have system sources installed:

# cd /usr/src/usr.sbin/sendmail
# make clean
# make
# make install

If you haven't got the system sources installed, then you can get them
easily enough with csup(1) or freebsd-update(8) or several other ways.
Or you could just install sendmail from ports -- obviously, make sure to
choose the option to enable SASL in the config dialogue.  If you use the
ports sendmail, so long as you set up mailer.conf(5) to point to the
ports version -- like so:

lucid-nonsense:/etc/mail:% cat mailer.conf
# $FreeBSD: stable/8/etc/mail/mailer.conf 93858 2002-04-05 04:25:14Z
gshapiro $
#
# Execute the real sendmail program, named /usr/local/sbin/sendmail
#
sendmail/usr/local/sbin/sendmail
send-mail   /usr/local/sbin/sendmail
mailq   /usr/local/sbin/sendmail
newaliases  /usr/local/sbin/sendmail
hoststat/usr/local/sbin/sendmail
purgestat   /usr/local/sbin/sendmail

and put the following in /etc/make.conf so it uses the latest
configuration file bits:

SENDMAIL_CF_DIR=/usr/local/share/sendmail/cf
MAKEMAP=/usr/local/sbin/makemap

then the ports sendmail is pretty much a drop-in replacement for the
system one, and you can use all the config bits in /etc/mail in exactly
the same way as normal.

Cheers,

Matthew







E-mail message checked by Internet Security (7.0.0.508)
Database version: 6.19440
http://www.pctools.com/en/internet-security/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Terminal (TERM=xterm) on FreeBSD doesn not accept DEL or ALT key on/in a Linux YAST2 session

2012-03-12 Thread O. Hartmann
Administering Linux Suse boxes makes it opf need to login onto those
boxes and use the well designed kiddy-cloaking scripting environment,
called YAST/YAST2.

The problem I face now is that I can not use DEL key to delete
characters or even use the ALT key to enforce actions like ALT-e or
ALT-d for enabling/disabling.

I tried to set environment variable TERM = xterm to  TERM = cons25
since I thought this could be a problem with the terminal. But it
wans't. Either the outdated X on FBSD causes problems or there is
another issue. I desperately need some help ...

Regards and thanks in advance,
Oliver



signature.asc
Description: OpenPGP digital signature


Re: question about SMTP-authentication (2nd )

2012-03-12 Thread Matthew Seaman
On 12/03/2012 13:26, kamolpat wrote:
 According to your recommendation   (as following). When I do make at
 /usr/src/sur.sbin/sendmail it show as following.
 ns1:kamolpat:/usr/src/usr.sbin/sendmailmake clean
 rm -f sm_os.h sendmail alias.o arpadate.o bf.o collect.o conf.o
 control.o convtime.o daemon.o deliver.o domain.o envelope.o err.o
 headers.o macro.o main.o map.o mci.o milter.o mime.o parseaddr.o queue.o
 ratectrl.o readcf.o recipient.o savemail.o sasl.o sfsasl.o shmticklib.o
 sm_resolve.o srvrsmtp.o stab.o stats.o sysexits.o timers.o tls.o trace.o
 udb.o usersmtp.o util.o version.o mailq.1.gz newaliases.1.gz
 aliases.5.gz sendmail.8.gz mailq.1.cat.gz newaliases.1.cat.gz
 aliases.5.cat.gz sendmail.8.cat.gz
 ns1:kamolpat:/usr/src/usr.sbin/sendmailmake
 ln -sf
 /usr/src/usr.sbin/sendmail/../../contrib/sendmail/include/sm/os/sm_os_freebsd.h
 sm_os.h
 cc -O2 -pipe  -I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src
 -I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/include -I. -DNEWDB
 -DNIS -DTCPWRAPPERS -DMAP_REGEX -DDNSMAP -DNETINET6 -DSTARTTLS
 -D_FFR_TLS_1 -I/usr/local/include/sasl -DSASL=2 -std=gnu99
 -fstack-protector  -c
 /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/alias.c
 In file included from
 /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/alias.c:14:
 /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sendmail.h:135:25:
 error: sasl/sasl.h: No such file or directory
 /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sendmail.h:136:29:
 error: sasl/saslutil.h: No such file or directory
 In file included from
 /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/alias.c:14:
 /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sendmail.h:607:
 error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sendmail.h:691:
 error: expected specifier-qualifier-list before 'sasl_conn_t'
 *** Error code 1
 
 Stop in /usr/src/usr.sbin/sendmail.
 
 
 then I try to find where is sasl.h
 
 ns1:kamolpat:/usrfind . -name sasl.h
 ./local/include/sasl/sasl.h
 ./ports/security/cyrus-sasl2/work/cyrus-sasl-2.1.25/include/sasl.h
 ./ports/security/cyrus-sasl2-saslauthd/work/cyrus-sasl-2.1.25/include/sasl.h
 
 
 What should I do next? Shold I just copy the sasl.h to
 /usr/src/contrib/sendmail/src/sendmail   ?

No.  Don't do that.  It won't help anything.

You need to follow my instructions correctly.  Specifically this line
needs to be in /etc/make.conf in order to pick up the SASL header files:

SENDMAIL_CFLAGS=-I/usr/local/include -DSASL=2

Where, you will note, this does *not* say /usr/local/include/sasl, which
is what appears in your compiler output.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey




signature.asc
Description: OpenPGP digital signature


Modbus RTU with GSM communication

2012-03-12 Thread Exemys
This is a message in multipart MIME format.  Your mail client should not be 
displaying this. Consider upgrading your mail client to view this message 
correctly.

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


9.0 spontaneously reboots

2012-03-12 Thread Volodymyr Kostyrko

Hi all.

I have one machine behaving unstable. This happened before 9.0. After 
upgrading to 9.0 machine was given a light load and now it reboots. 
Memory was already tested (without any errors) and changed after another 
reboot.


I just have one snippet in the logs:

Mar 12 07:51:56 beeb kernel: interrupt   total
Mar 12 07:51:56 beeb kernel: irq18: ehci0 uhci5+  325
Mar 12 07:51:56 beeb kernel: irq19: uhci2 uhci4  4350
Mar 12 07:51:56 beeb kernel: irq23: ehci1 uhci3272776
Mar 12 07:51:56 beeb kernel: cpu0:timer 306304013
Mar 12 07:51:56 beeb kernel: irq256: mpt0   106758743
Mar 12 07:51:56 beeb kernel: cpu1:timer  50588836
Mar 12 07:51:56 beeb kernel: cpu14:timer 40862828
Mar 12 07:51:56 beeb kernel: cpu12:timer 0057
Mar 12 07:51:56 beeb kernel: cpu6:timer  51650325
Mar 12 07:51:56 beeb kernel: cpu13:timer 35826328
Mar 12 07:51:56 beeb kernel: cpu3:timer  47414874
Mar 12 07:51:56 beeb kernel: cpu10:timer101158759
Mar 12 07:51:56 beeb kernel: cpu2:timer 116817563
Mar 12 07:51:56 beeb kernel: cpu8:timer 137051223
Mar 12 07:51:56 beeb kernel: cpu7:timer  31732225
Mar 12 07:51:56 beeb kernel: cpu11:timer 43244351
Mar 12 07:51:56 beeb kernel: cpu4:timer  83143936
Mar 12 07:51:56 beeb kernel: cpu9:timer  49622770
Mar 12 07:51:56 beeb kernel: cpu5:timer  40662969
Mar 12 07:51:56 beeb kernel: cpu15:timer 27434472
Mar 12 07:51:56 beeb kernel: irq257: igb0:que 0  20058599
Mar 12 07:51:56 beeb kernel: irq258: igb0:que 1  15054525
Mar 12 07:51:56 beeb kernel: irq259: igb0:que 2  14738762
Mar 12 07:51:56 beeb kernel: irq260: igb0:que 3  14702046
Mar 12 07:51:56 beeb kernel: irq261: igb0:que 4  14842310
Mar 12 07:51:56 beeb kernel: irq262: igb0:que 5  15035818
Mar 12 07:51:56 beeb kernel: irq263: igb0:que 6  14826606
Mar 12 07:51:56 beeb kernel: irq264: igb0:que 7  14924631
Mar 12 07:51:56 beeb kernel: irq265: igb0:link  2
Mar 12 07:51:56 beeb kernel: Total  1461395023
Mar 12 07:51:56 beeb kernel: KDB: stack backtrace:
Mar 12 07:51:56 beeb kernel: #0 0x8038d458 at kdb_backtrace+0x58
Mar 12 07:51:56 beeb kernel: #1 0x80315b4b at watchdog_fire+0x8b
Mar 12 07:51:56 beeb kernel: #2 0x80315e10 at hardclock_anycpu+0x2a0
Mar 12 07:51:56 beeb kernel: #3 0x80583278 at handleevents+0xd8
Mar 12 07:51:56 beeb kernel: #4 0x80583e36 at timercb+0x2d6
Mar 12 07:51:56 beeb kernel: #5 0x805aec46 at 
lapic_handle_timer+0xb6

Mar 12 07:51:56 beeb kernel: #6 0x80557f2c at Xtimerint+0x8c
Mar 12 07:51:56 beeb kernel: #7 0x8055c348 at cpu_idle_acpi+0x38
Mar 12 07:51:56 beeb kernel: #8 0x8055c402 at cpu_idle+0xa2
Mar 12 07:51:56 beeb kernel: #9 0x80380b7f at sched_idletd+0x37f
Mar 12 07:51:56 beeb kernel: #10 0x80331d36 at fork_exit+0x76
Mar 12 07:51:56 beeb kernel: #11 0x8055790e at fork_trampoline+0xe

What should I blame now? Is it some programming error or should I 
continue with testing/changing motherboard and cpu?


--
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: Modbus RTU with GSM communication

2012-03-12 Thread Matthias Apitz
El día Saturday, March 10, 2012 a las 02:43:10AM -0300, Exemys escribió:

 This is a message in multipart MIME format.  Your mail client should not be 
 displaying this. Consider upgrading your mail client to view this message 
 correctly.
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

Your message has no content at all. Consider sending your mail in ASCII.
HIH

matthias
-- 
Matthias Apitz
e g...@unixarea.de - w http://www.unixarea.de/
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5
___
freebsd-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: Modbus RTU with GSM communication

2012-03-12 Thread Alejandro Imass
On Mon, Mar 12, 2012 at 10:11 AM, Matthias Apitz g...@unixarea.de wrote:
 El día Saturday, March 10, 2012 a las 02:43:10AM -0300, Exemys escribió:

 This is a message in multipart MIME format.  Your mail client should not be 
 displaying this. Consider upgrading your mail client to view this message 
 correctly.


Hi Matthias,

Please re-send your mail in plain text.

-- 
Alejandro Imass
___
freebsd-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: Terminal (TERM=xterm) on FreeBSD doesn not accept DEL or ALT key on/in a Linux YAST2 session

2012-03-12 Thread O. Hartmann
On 03/12/12 15:21, kpn...@pobox.com wrote:
 On Mon, Mar 12, 2012 at 02:51:55PM +0100, O. Hartmann wrote:
 Administering Linux Suse boxes makes it opf need to login onto those
 boxes and use the well designed kiddy-cloaking scripting environment,
 called YAST/YAST2.

 The problem I face now is that I can not use DEL key to delete
 characters or even use the ALT key to enforce actions like ALT-e or
 ALT-d for enabling/disabling.

 I tried to set environment variable TERM = xterm to  TERM = cons25
 since I thought this could be a problem with the terminal. But it
 wans't. Either the outdated X on FBSD causes problems or there is
 another issue. I desperately need some help ...
 
 Simple questions first just to be sure:
 
 You set TERM with the command export TERM=xterm, correct? No extra spaces?

Of course, it is either setenv TERM xterm in csh or TERM=xterm in
bourne-alike shells.

In my FreeBSD driven environment everything is fine and shiny, but when
login into a Suse 12.1 box and doing a YAST2, DEL key does not work
(produce nothing) and ALT-plus-key doesn't work either. But in several
cases, I need to edit lines and confirm those changes with key shortcuts
like ALT-e, for instance for enable is much appreciated than hopping
around with the TAB key.

 
 And you are using xterm (not rxvt)?

No, pure and plain and conservative xterm as it comes with the port and
no extravagant terminal thingy.

 
 What happens when you use the DEL key?

Except in YAST/YAST2, it works as expected ...

 
 I'm not familiar with YAST. Are you having problems at a normal shell
 command line, or are you having problems in something run from a shell?

I'm also not familiar with YAST (I start hating this crap), but I need
it since I have not the scientific support on FreeBSD platforms I need
as I have on Linux (we run TESLA driven boxes acting as supercomputers.
Try it, es ist, als würden Engel schieben ...).

Regards,
Oliver



signature.asc
Description: OpenPGP digital signature


Re: Terminal (TERM=xterm) on FreeBSD doesn not accept DEL or ALT key on/in a Linux YAST2 session

2012-03-12 Thread Alejandro Imass
On Mon, Mar 12, 2012 at 10:30 AM, O. Hartmann
ohart...@mail.zedat.fu-berlin.de wrote:
 On 03/12/12 15:21, kpn...@pobox.com wrote:
 On Mon, Mar 12, 2012 at 02:51:55PM +0100, O. Hartmann wrote:
 Administering Linux Suse boxes makes it opf need to login onto those
 boxes and use the well designed kiddy-cloaking scripting environment,
 called YAST/YAST2.
[...]

 Of course, it is either setenv TERM xterm in csh or TERM=xterm in
 bourne-alike shells.

Hi Oliver,

DEL and BS (Backspace) are one of those things where terminals have
failed to standardize. Remember there are *many* layers of
translations from the time you hit the key until it echoes on the
terminal. First you have local keymaps which might be sending the
wrong control sequence (e.g. Mac keyboard vs. regular PC). Then you
have the character encoding of the terminal's OS, the you may have
further translation in the protocol agents (ssh, telnet, etc.) then
you have the remote shell's settings and encodings, etc. and many
other things in between

Take a look at this article and you will probably fix the problem, and
it's probably not even on the FBSD side:

www.ibb.net/~anne/keyboard.html


Cheers,

-- 
Alejandro Imass
___
freebsd-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 SMTP-authentication (3rd )

2012-03-12 Thread kamolpat

Dear Matthew,

Ok, I got sendmail complied. Thanks.
But seem like ...
POP3 still working in clear text usr/pwd sending to Server (but it work, 
I can get mail from server normal). When I chose option in ThunderBird 
to another mode, it doesn't work (accept connection security: none, 
authentication method: password transmitted insecurity this is the 
option that TB dectected during setting mail account)



SMTP doesn't work it declare
from Thunder Bird:

Send Message Error
The Kerberos/GSSAPI ticket was not accepted by the SMTP server 
mail.dmaccess.co.th Please check that you are logged in to the 
Kerberos/GSSAPI realm.
(event I change authentication method: Kerberos/GSSAPI, it still 
inform this message)


from /var/log/maillog
Mar 12 22:38:04 ns1 sendmail[93331]: q2CMc4jF093331: 
ppp-58-8-130-33.revip2.asianet.co.th [58.8.130.33] did not issue 
MAIL/EXPN/VRFY/ETRN during connection to MSA



this is my test on server
=
ns1:kamolpat:/etctelnet dmaccess.co.th 25
Trying 202.170.122.33...
Connected to dmaccess.co.th.
Escape character is '^]'.
220 ns1.dmaccess.co.th ESMTP Sendmail 8.14.4/8.14.4; Mon, 12 Mar 2012 
22:23:14 GMT

ehlo dmaccess.co.th
250-ns1.dmaccess.co.th Hello ns1.dmaccess.co.th [202.170.122.33], 
pleased to meet you

250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN
250-DELIVERBY
250 HELP
quit
221 2.0.0 ns1.dmaccess.co.th closing connection
Connection closed by foreign host.


this is my /etc/mail/freebsd.mc
=
Other http://202.170.122.33:10099/sendmail/edit_feature.cgi?idx=78 
dnl Uncomment the first line to change the location of the default 
http://202.170.122.33:10099/sendmail/move.cgi?idx=78down=1http://202.170.122.33:10099/sendmail/move.cgi?idx=78up=1 

Other http://202.170.122.33:10099/sendmail/edit_feature.cgi?idx=79 
dnl /etc/mail/local-host-names and comment out the second line. 
http://202.170.122.33:10099/sendmail/move.cgi?idx=79down=1http://202.170.122.33:10099/sendmail/move.cgi?idx=79up=1 

Other http://202.170.122.33:10099/sendmail/edit_feature.cgi?idx=80 
dnl define(`confCW_FILE', `-o /etc/mail/sendmail.cw') 
http://202.170.122.33:10099/sendmail/move.cgi?idx=80down=1http://202.170.122.33:10099/sendmail/move.cgi?idx=80up=1 

*Define* 
http://202.170.122.33:10099/sendmail/edit_feature.cgi?idx=81 
define(`confCW_FILE', `-o /etc/mail/local-host-names') 
http://202.170.122.33:10099/sendmail/move.cgi?idx=81down=1http://202.170.122.33:10099/sendmail/move.cgi?idx=81up=1 


Other http://202.170.122.33:10099/sendmail/edit_feature.cgi?idx=82  

http://202.170.122.33:10099/sendmail/move.cgi?idx=82down=1http://202.170.122.33:10099/sendmail/move.cgi?idx=82up=1
Other http://202.170.122.33:10099/sendmail/edit_feature.cgi?idx=83 
dnl Enable for both IPv4 and IPv6 (optional) 
http://202.170.122.33:10099/sendmail/move.cgi?idx=83down=1http://202.170.122.33:10099/sendmail/move.cgi?idx=83up=1 

Other http://202.170.122.33:10099/sendmail/edit_feature.cgi?idx=84 
DAEMON_OPTIONS(`Name=IPv4, Family=inet') 
http://202.170.122.33:10099/sendmail/move.cgi?idx=84down=1http://202.170.122.33:10099/sendmail/move.cgi?idx=84up=1 

Other http://202.170.122.33:10099/sendmail/edit_feature.cgi?idx=85 
DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Modifiers=O') 
http://202.170.122.33:10099/sendmail/move.cgi?idx=85down=1http://202.170.122.33:10099/sendmail/move.cgi?idx=85up=1 


Other http://202.170.122.33:10099/sendmail/edit_feature.cgi?idx=86  

http://202.170.122.33:10099/sendmail/move.cgi?idx=86down=1http://202.170.122.33:10099/sendmail/move.cgi?idx=86up=1
*Define* 
http://202.170.122.33:10099/sendmail/edit_feature.cgi?idx=87 
define(`confBIND_OPTS', `WorkAroundBroken') 
http://202.170.122.33:10099/sendmail/move.cgi?idx=87down=1http://202.170.122.33:10099/sendmail/move.cgi?idx=87up=1 

*Define* 
http://202.170.122.33:10099/sendmail/edit_feature.cgi?idx=88 
define(`confNO_RCPT_ACTION', `add-to-undisclosed') 
http://202.170.122.33:10099/sendmail/move.cgi?idx=88down=1http://202.170.122.33:10099/sendmail/move.cgi?idx=88up=1 

*Define* 
http://202.170.122.33:10099/sendmail/edit_feature.cgi?idx=89 
define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy') 
http://202.170.122.33:10099/sendmail/move.cgi?idx=89down=1http://202.170.122.33:10099/sendmail/move.cgi?idx=89up=1 


Other http://202.170.122.33:10099/sendmail/edit_feature.cgi?idx=90  

http://202.170.122.33:10099/sendmail/move.cgi?idx=90down=1http://202.170.122.33:10099/sendmail/move.cgi?idx=90up=1
Other http://202.170.122.33:10099/sendmail/edit_feature.cgi?idx=91 
GENERICS_DOMAIN_FILE(`/etc/mail/genericdomains'); 
http://202.170.122.33:10099/sendmail/move.cgi?idx=91down=1http://202.170.122.33:10099/sendmail/move.cgi?idx=91up=1 


Other http://202.170.122.33:10099/sendmail/edit_feature.cgi?idx=92  


Re: Suggestion

2012-03-12 Thread Allen
On 3/11/2012 7:33 PM, Da Rock wrote:
 On 03/11/12 21:03, ajtiM wrote:
 On Saturday 10 March 2012 17:36:53 Da Rock wrote:

 No system is actually truly capable of this, with the exception of the
 newest kid on the block Plan9. Winblows, in its current form, is the
 bastard love child of DOS and some black sheep cousin of Unix
 (twice-removed), so its not happening there either; just some sleight of
 hand tricks to partially achieve the result with a decrease of security
 to boot.

Windows is a poorly made joke. We all know this deep down. Does no one
read Computer History? Microsoft was marketing Xenix before IBM said We
need an OS that blows for a Computer that has similar power to a
calculator ten years from now and Microsoft said We can do that!
Well, we can BUY that Seattle Computer Products has this OS called
QDOS that is a rip off of CP/M and stands for Quick Dirty Operating
System if we buy that for a rip off price and rename it Disk Operating
System, even though it can't handle Disks anyway, we can use this!

 IMO it is the Microsoft and CO. tactics how to eliminate concurency -
 Unix,
 Mac... They never tried to be better...
 Hah! They didn't need to. The guys who designed Unix finally wound up
 their work once ported, and then said we can do a lot better now and
 Plan9 was born. The change was too dramatic for commerce to change for
 supposedly little reward, and so Plan9 was left on the backburner while
 a lot of its features were integrated into other *nix platforms (rc,
 file based devices, etc).

Plan 9 is a record label started by Glenn Danzig. And a movie. As for
the OS, I don't care. They got it right with Unix years earlier, why
stop now?

ATT didn't care about Unix until they were allowed to make money off
it, but the problem there, is that Berkeley got a copy of it, and some
Brilliant Hackers started working on it.

The CSRG at Berkeley did things that made more possible. Then they came
up with BSD, and, well, we're still using it Today. Many people would
consider 6 months to a year a long time in Computer terms, and 5 years
with the same OS, is considered damn good. So what does this say about BSD?

We're still using an OS that was born in 1969, changed in the 70s by the
Brilliance of Berkeley, and now still going strong after so long. That's
not only saying something, that's a Historical thing.

 So in a way they did try to be better, but not exactly with the original
 designers blessing. And Plan9 is still an immature child... shame.

Oh well. We don't really have to deal with DOS anymore, and FreeDOS has
done things even Microsoft couldn't buy their way through. Then we have
Windows, Linux, Unix, and of course, the other toys from other people.
I'd like BeOS to come back, but I'm quite happy with BSD and Linux.

Of course, if I won the Lotto or something, I'd re-design my House, and
turn this room into a true Computer Lab. My Wife and I both are into
Computers, and we both Love Unix. We'd buy sun Machines, Sparcs and, for
me, a full set of SGI Workstations and Servers. And I'd like them to be
running IRIX, except the new ones, I don't know what I'd use on those.
___
freebsd-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: Suggestion

2012-03-12 Thread Rod Person
On Mon, 12 Mar 2012 12:14:39 -0400
Allen unix.hac...@comcast.net wrote:
 
 Plan 9 is a record label started by Glenn Danzig. 

I never thought I'd see this on FreeBSD list! I guess I have now lived
long enough as they say.
 
 Of course, if I won the Lotto or something, I'd re-design my House,
 and turn this room into a true Computer Lab. My Wife and I both are
 into Computers, and we both Love Unix. We'd buy sun Machines, Sparcs
 and, for me, a full set of SGI Workstations and Servers. And I'd like
 them to be running IRIX, except the new ones, I don't know what I'd

You are either stealing my thoughts or are my long lost twin. Either
way, no matter what you post from now on you are a genius in my book!

-- 

Rod Person  http://www.rodperson.com  rodper...@rodperson.com

'Silence is a fence around wisdom'
___
freebsd-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.0 spontaneously reboots

2012-03-12 Thread Matthew Seaman
On 12/03/2012 14:07, Volodymyr Kostyrko wrote:
 What should I blame now? Is it some programming error or should I
 continue with testing/changing motherboard and cpu?

Instability that appears spontaneously (and especially if it persists
across system updates) is almost always caused by hardware problems.
So, yes, carry on swapping out components until you can isolate where
the problem is.

Some common hardware problems which might result in the problems you've
seen:

   * PSU going flakey.  If you have the right measuring equipment, this
 is pretty easy to detect by looking at the output voltages -- if
 they've drifted out of spec, or if you've got mains frequency
 jitter leaking through then its no wonder your system crashes.

   * Similarly, if the crashing is associated with system load,
 (particularly at startup, when things are happening like disks
 spinning up) this can indicate a power supply fading under load.
 That can happen due to age, or because you've been adding extra
 hardware and haven't considered the power requirements.

   * The other reason for crashing under load is overheating.
 Sometimes this can be cured easily by cleaning dust out of vents
 and heat-sinks.  Check too for fans either seized or running
 slowly.

   * You may need to clean off any old heat-sink compound and re-apply
 a fresh layer, especially if you've taken CPU coolers off at
 some point.

   * There's also the old capacitor problem: electrolytic capacitors
 have a failure mode that generates some positive pressure inside
 them.  This is detectable by the end of the capacitor being bowed
 out, rather than slightly concave. (Generally this means a new
 motherboard, although I've heard of people being able to solder in
 replacements successfully.)

Other than that, try disconnecting and reconnecting peripherals like
disks or DVDs and so forth in various combinations to test if that
improves system stability.  One faulty component can knock the whole
machine over.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey




signature.asc
Description: OpenPGP digital signature


Re: Suggestion

2012-03-12 Thread Chad Perrin
On Mon, Mar 12, 2012 at 12:14:39PM -0400, Allen wrote:
 
 I'd like BeOS to come back, but I'm quite happy with BSD and Linux.

Give the Haiku project a look.  It's meant to be some kind of inheritor
of the BeOS legacy.

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.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: Suggestion

2012-03-12 Thread Chad Perrin
On Sun, Mar 11, 2012 at 10:20:03AM -0500, Chris wrote:
 ... One word that is rampant... Alligations

Is that where someone makes a claim that someone else is an alligator?

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.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: Suggestion

2012-03-12 Thread Alejandro Imass
On Mon, Mar 12, 2012 at 2:29 PM, Chad Perrin per...@apotheon.com wrote:
 On Mon, Mar 12, 2012 at 12:14:39PM -0400, Allen wrote:

 I'd like BeOS to come back, but I'm quite happy with BSD and Linux.

 Give the Haiku project a look.  It's meant to be some kind of inheritor
 of the BeOS legacy.


May I suggest MenuetOS if you are really looking for something cool

-- 
Alejandro Imass
___
freebsd-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: Can't install WindowMaker

2012-03-12 Thread Sabine Baer
On Sun, Mar 11, 2012 at 05:27:14PM +, jb wrote:
 Sabine Baer baerks at t-online.de writes:
 
  ...
 
 After your ports updates, do not forget to test integrity of ports:
 # portmaster --check-depends
 # portmaster --check-port-dbdir

Wow, lots of garbage.

 and retry the compilation again.

No success.

Sabine

-- 
Let my words echo in the depths of your soul: When people criticize
Zionism, they mean Jews - make no mistake about it. (Martin L. King)

___
freebsd-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: Suggestion

2012-03-12 Thread Paul Macdonald

On 12/03/2012 18:40, Chad Perrin wrote:

On Sun, Mar 11, 2012 at 10:20:03AM -0500, Chris wrote:

... One word that is rampant... Alligations

Is that where someone makes a claim that someone else is an alligator?


sometimes i wish the lists had a like button :P


--
-
Paul Macdonald
IFDNRG Ltd
Web and video hosting
-
t: 0131 5548070
m: 07970339546PLEASE NOTE NEW MOBILE
e: p...@ifdnrg.com
w: http://www.ifdnrg.com
-
IFDNRG
40 Maritime Street
Edinburgh
EH6 6SA
-


___
freebsd-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 SMTP-authentication (3rd )

2012-03-12 Thread Paul Macdonald

On 12/03/2012 15:47, kamolpat wrote:

Dear Matthew,

Ok, I got sendmail complied. Thanks.
But seem like ...
POP3 still working in clear text usr/pwd sending to Server (but it 
work, I can get mail from server normal). When I chose option in 
ThunderBird to another mode, it doesn't work (accept connection 
security: none, authentication method: password transmitted 
insecurity this is the option that TB dectected during setting mail 
account)



SMTP doesn't work it declare
from Thunder Bird:

Send Message Error
The Kerberos/GSSAPI ticket was not accepted by the SMTP server 
mail.dmaccess.co.th Please check that you are logged in to the 
Kerberos/GSSAPI realm.
(event I change authentication method: Kerberos/GSSAPI, it still 
inform this message)


from /var/log/maillog
Mar 12 22:38:04 ns1 sendmail[93331]: q2CMc4jF093331: 
ppp-58-8-130-33.revip2.asianet.co.th [58.8.130.33] did not issue 
MAIL/EXPN/VRFY/ETRN during connection to MSA




what are you using as the authentication method for sasl?

there are multiple authentication mechansims available for sasl(2), 
simplest is probably saslauthd


*In /etc/rc.conf
*saslauthd_enable=yes

In /usr/local/lib/sasl2/Sendmail.conf have:

pwcheck_method: saslauthd

make sure its running
/usr/local/etc/rc.d/saslauthd start

add a user with saslpasswd2

Test your u/p locally with testsaslauthd
testsaslauthd -u user -p PASS

(if thats not working it won't work over the network either)

have TB set to conn security to STARTTLS and password security set to 
normal password, (for non encrypted password obv)


Paul.



--
-
Paul Macdonald
IFDNRG Ltd
Web and video hosting
-
t: 0131 5548070
m: 07970339546PLEASE NOTE NEW MOBILE
e: p...@ifdnrg.com
w: http://www.ifdnrg.com
-
IFDNRG
40 Maritime Street
Edinburgh
EH6 6SA
-


___
freebsd-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: Terminal (TERM=xterm) on FreeBSD doesn not accept DEL or ALT key on/in a Linux YAST2 session

2012-03-12 Thread Thomas Dickey
On Mon, Mar 12, 2012 at 11:43:17AM -0400, Alejandro Imass wrote:
 Take a look at this article and you will probably fix the problem, and
 it's probably not even on the FBSD side:
 
 www.ibb.net/~anne/keyboard.html

not really (that page gives a lot of poor advice, particularly with regard
to xterm).

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgp09mjj8DUHz.pgp
Description: PGP signature


Re: Terminal (TERM=xterm) on FreeBSD doesn not accept DEL or ALT key on/in a Linux YAST2 session

2012-03-12 Thread Thomas Dickey
On Mon, Mar 12, 2012 at 03:30:58PM +0100, O. Hartmann wrote:
  And you are using xterm (not rxvt)?
 
 No, pure and plain and conservative xterm as it comes with the port and
 no extravagant terminal thingy.

Linux generally uses DEL (127) and (almost) everyone else uses BS (8).
Adding to the confusion, most keyboards label it Backspace.

Most (but not all) applications on a given host are consistent with
the choice (or accept either code).  There are exceptions, of course.

With xterm, you can use control/Backspace to toggle between the two
(for one keypress), or use the control/left-mouse menu to toggle the
Backarrow Key (BS/DEL) entry.
 
-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgpDPKal5B5Nj.pgp
Description: PGP signature


Editor With NO Shell Access?

2012-03-12 Thread Tim Daneliuk

I have a situation where I need to provide people with the ability to edit
files.  However, under no circumstances do I want them to be able to exit
to the shell.   The client in question has strong (and unyielding) InfoSec
requirements in this regard.

So ... are there editors without this feature?  Can I compile something like
joe or vi to inhibit this feature?

TIA,
--

Tim Daneliuk tun...@tundraware.com
PGP Key: http://www.tundraware.com/PGP/

___
freebsd-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.0 spontaneously reboots

2012-03-12 Thread Al Plant

Matthew Seaman wrote:

On 12/03/2012 14:07, Volodymyr Kostyrko wrote:

What should I blame now? Is it some programming error or should I
continue with testing/changing motherboard and cpu?


Instability that appears spontaneously (and especially if it persists
across system updates) is almost always caused by hardware problems.
So, yes, carry on swapping out components until you can isolate where
the problem is.

Some common hardware problems which might result in the problems you've
seen:

   * PSU going flakey.  If you have the right measuring equipment, this
 is pretty easy to detect by looking at the output voltages -- if
 they've drifted out of spec, or if you've got mains frequency
 jitter leaking through then its no wonder your system crashes.

   * Similarly, if the crashing is associated with system load,
 (particularly at startup, when things are happening like disks
 spinning up) this can indicate a power supply fading under load.
 That can happen due to age, or because you've been adding extra
 hardware and haven't considered the power requirements.

   * The other reason for crashing under load is overheating.
 Sometimes this can be cured easily by cleaning dust out of vents
 and heat-sinks.  Check too for fans either seized or running
 slowly.

   * You may need to clean off any old heat-sink compound and re-apply
 a fresh layer, especially if you've taken CPU coolers off at
 some point.

   * There's also the old capacitor problem: electrolytic capacitors
 have a failure mode that generates some positive pressure inside
 them.  This is detectable by the end of the capacitor being bowed
 out, rather than slightly concave. (Generally this means a new
 motherboard, although I've heard of people being able to solder in
 replacements successfully.)

Other than that, try disconnecting and reconnecting peripherals like
disks or DVDs and so forth in various combinations to test if that
improves system stability.  One faulty component can knock the whole
machine over.

Cheers,

Matthew


Aloha,

Have seen the problems Matthew is addressing here in Hawaii. And
if your equipment is in a non climate controlled room check for 
corrosion on the board or any plugins. Clean all the cabled and 
components that can be removed. (No air-con in my systems here in Hawaii 
and humidity is around 60-70% normally so we have to clean and put 
teflon on contacts about 2 times a year.) Corrosion is worse if your on 
the ocean or brackish river.


Happy hunting.

~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: 9.0 spontaneously reboots

2012-03-12 Thread Adam Vande More
On Mon, Mar 12, 2012 at 9:07 AM, Volodymyr Kostyrko c.kw...@gmail.comwrote:

 Hi all.

 I have one machine behaving unstable. This happened before 9.0. After
 upgrading to 9.0 machine was given a light load and now it reboots. Memory
 was already tested (without any errors) and changed after another reboot.


So your RAM is good enough to pass a memory test.  It doesn't mean it's not
the culprit.  Way too many false negatives from those things.

-- 
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: Editor With NO Shell Access?

2012-03-12 Thread Thomas Dickey
On Mon, Mar 12, 2012 at 02:19:06PM -0500, Tim Daneliuk wrote:
 I have a situation where I need to provide people with the ability to edit
 files.  However, under no circumstances do I want them to be able to exit
 to the shell.   The client in question has strong (and unyielding) InfoSec
 requirements in this regard.
 
 So ... are there editors without this feature?  Can I compile something like
 joe or vi to inhibit this feature?

man vi (see -S)

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgpJTSE7KtVaE.pgp
Description: PGP signature


Re: Editor With NO Shell Access?

2012-03-12 Thread Tim Daneliuk

On 03/12/2012 03:13 PM, Thomas Dickey wrote:

On Mon, Mar 12, 2012 at 02:19:06PM -0500, Tim Daneliuk wrote:

I have a situation where I need to provide people with the ability to edit
files.  However, under no circumstances do I want them to be able to exit
to the shell.   The client in question has strong (and unyielding) InfoSec
requirements in this regard.

So ... are there editors without this feature?  Can I compile something like
joe or vi to inhibit this feature?


man vi (see -S)



It turns out you can still work around this if your know the trick.
I am still researching this, but restricted vi appears to be compromised.



--

Tim Daneliuk tun...@tundraware.com
PGP Key: http://www.tundraware.com/PGP/

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


Which compiler compiled system?

2012-03-12 Thread kaltheat
Hi,

Is there a way to determine whether a FreeBSD-system was compiled with gcc or 
clang?
I thought of some libs or so that might significantly differ.

Regards,
kaltheat

___
freebsd-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: Editor With NO Shell Access?

2012-03-12 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Mon Mar 12 14:22:29 2012
 Date: Mon, 12 Mar 2012 14:19:06 -0500
 From: Tim Daneliuk tun...@tundraware.com
 To: FreeBSD Mailing List freebsd-questions@freebsd.org
 Subject: Editor With NO Shell Access?

 I have a situation where I need to provide people with the ability to edit
 files.  However, under no circumstances do I want them to be able to exit
 to the shell.   The client in question has strong (and unyielding) InfoSec
 requirements in this regard.

 So ... are there editors without this feature?  Can I compile something like
 joe or vi to inhibit this feature?


If the need is for 'simple'/'minimal' editing -- as opposed to, say, regex-
based global-search-and-replace, A more-or-less 'easy' way to do this could 
be to use a web browser.

.htaccess to determine who can access what file, probably from a specific
list.

a cgi-bin that, on validate access,  loads the file into a 'textarea' 
on a form.  (form has a 'hidden' field that identifies the file being 
edited,

User makes changes in the 'text' block, clicks 'update' (form 'submit'
button) when finished.  There's a .htaccess on the form-processing cgi-bin
to re-validate the submission. (prevents somebody 'faking' a file update
without actual permission.)  The cgi-bin then re-writes the edited file.

Depending on 'security' requirements, you may need a shared-memory
cache -- used between the two cgi-bin invocations -- to provide 'session'
locking, prevent 'overlapping' updates, and trap _all_ 'forged' file
updates.

This has some 'maintainablity' advantages over the 'hacked' editor 
approach. It's much clearer to a future person just _what_ is going on.
It's also clear to the user what they can, and _cannot_ do.  This has
major beneficial effect on those who attempt to 'push the limits'. 
Hack the editor to disable functionality, and _somebody_ *will* complain
that they =need= that functionality, for a 'superficially plausable'
reason.

Otherwise, hacking the source code for, say, 'vi', should -not- be very
difficult.  Look for the logic that processes '!!' or :! at the beginning
of an input sequence, and disable the related functionality.

You could probably make a dinky little library  -- with 'fake' routines
for 'fork', 'exec', and 'pipe'; routes that 'do nothing' other than raise
a security alert, and include that in the compile/link for a customized 
'vi', before 'libc'.


___
freebsd-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: Which compiler compiled system?

2012-03-12 Thread Pierre-Luc Drouin
If Java is broken, then you know FreeBSD was compiled with clang...

On Mon, Mar 12, 2012 at 3:45 PM, kalth...@googlemail.com wrote:

 Hi,

 Is there a way to determine whether a FreeBSD-system was compiled with gcc
 or clang?
 I thought of some libs or so that might significantly differ.

 Regards,
 kaltheat

 ___
 freebsd-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: apache22 + mod_fastcgi

2012-03-12 Thread alexus
socket file: -socket /var/run/spawn_fcgi.sock are same for both
default and virtual host
the only difference is a directory with phpscript

On Sat, Mar 10, 2012 at 5:41 AM, Damien Fleuriot m...@my.gd wrote:
 Have you tried pointing your vhost's fcgi handler to the same unix socket 
 path you use for your default vhost ?



 On 10 Mar 2012, at 02:35, alexus ale...@gmail.com wrote:

 if it would be incorrectly it wouldn't work the first time (default host)
 virtualhost has a copy from a default host, the only difference is
 local path to directory, that's all
 ifmodule is there just in case if for whatever reason module is
 missing, site can operate in degraded state vs not operate at all and
 other virtual hosts can work as well otherwise i have to go and
 comment out alot of lines manually so it's not ifmodule as that proven
 to work, but in any case i added ifmodule after, line was there before
 without ifmodule so it didn't work before either..


 mbp:~ alexus$ curl -I http://XX.XXX.XX.XXX/php/phpinfo.php
 HTTP/1.1 200 OK
 Date: Sat, 10 Mar 2012 01:34:29 GMT
 Server: Apache/2.2.21 (FreeBSD) mod_ssl/2.2.21 OpenSSL/0.9.8q DAV/2
 mod_python/3.3.1 Python/2.7.2 mod_fastcgi/2.4.6
 X-Powered-By: PHP/5.3.8
 Content-Type: text/html

 mbp:~ alexus$ curl -I http://virtualhost.com/php/phpinfo.php
 HTTP/1.1 200 OK
 Date: Sat, 10 Mar 2012 01:34:42 GMT
 Server: Apache/2.2.21 (FreeBSD) mod_ssl/2.2.21 OpenSSL/0.9.8q DAV/2
 mod_python/3.3.1 Python/2.7.2 mod_fastcgi/2.4.6
 Last-Modified: Thu, 23 Feb 2012 02:10:09 GMT
 ETag: 97c8ef-11-4b99824b74240
 Accept-Ranges: bytes
 Content-Length: 17
 Content-Type: application/x-httpd-php

 mbp:~ alexus$


 On Fri, Mar 9, 2012 at 7:24 PM, Damien Fleuriot m...@my.gd wrote:
 I think you're naming your module incorrectly.

 First, try just setting the handler in your vhost w/o the ifmodule stuff.
 If that works, you know where you've gone wrong.


 On 9 Mar 2012, at 21:12, alexus ale...@gmail.com wrote:

 i'd like to follow up with this question if possible

 On Wed, Mar 7, 2012 at 8:31 PM, alexus ale...@gmail.com wrote:
 ---
 LoadModule fastcgi_module     libexec/apache22/mod_fastcgi.so

 IfModule mod_fastcgi.c
        AddHandler php5-fastcgi .php
        FastCgiExternalServer /usr/local/www/apache22/data/php -socket
 /var/run/spawn_fcgi.sock
 /IfModule
 ---

 this works for my apache for default virtualhost, yet if i use same
 thing under a virtualhost it won't work

 VirtualHost *:*
        ServerName 
        DocumentRoot /home/xxx/xxx/htdocs/
        IfModule mod_fastcgi.c
                AddHandler php5-fastcgi .php
                FastCgiExternalServer /home/xxx/xxx/htdocs/php -socket
 /var/run/spawn_fcgi.sock
        /IfModule
 /VirtualHost

 in default virtual host i PHP scripts gets executed no problem, under
 second it actually just starts downloading that php script..

 any ideas?

 --
 http://alexus.org/



 --
 http://alexus.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



 --
 http://alexus.org/



-- 
http://alexus.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: Editor With NO Shell Access?

2012-03-12 Thread Steve Bertrand

On 2012-03-12 15:19, Tim Daneliuk wrote:

I have a situation where I need to provide people with the ability to edit
files. However, under no circumstances do I want them to be able to exit
to the shell. The client in question has strong (and unyielding) InfoSec
requirements in this regard.

So ... are there editors without this feature? Can I compile something like
joe or vi to inhibit this feature?


I don't know if this will help, but it may provide an idea that could 
spark something further.


You can force a user directly into an editor so they have no shell 
access. For example, if the user has '/bin/csh' as their login shell, 
adding:


exec /usr/local/bin/vim

into their ~/.cshrc file will force them directly into vim. When they 
exit vim, they are immediately logged off.


However, I don't believe this will provide them any way to see their 
files though.


vim's :open filename and :w filename still work, but shell commands 
(eg :! ls -la) don't.


Steve

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


Re: Can't install WindowMaker

2012-03-12 Thread Polytropon
On Mon, 12 Mar 2012 19:42:24 +0100, Sabine Baer wrote:
 On Sun, Mar 11, 2012 at 05:27:14PM +, jb wrote:
  Sabine Baer baerks at t-online.de writes:
  
   ...
  
  After your ports updates, do not forget to test integrity of ports:
  # portmaster --check-depends
  # portmaster --check-port-dbdir
 
 Wow, lots of garbage.
 
  and retry the compilation again.
 
 No success.

Did you have the chance to try to compile it using
only ports infrastructure? E. g. making sure the
ports tree is up to date, and then

# cd /usr/ports/x11-wm/windowmaker/
# make install

to start with a clean (!) build? Just to be sure, you
could remove any possibly offending distfiles/ archives
and work/ subtrees.

If this has worked, you can run the portmaster checks
again, but if I understood you correctly, getting WindowMaker
(not sure about the current correct spelling!) installed
and running is your top priority.




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

2012-03-12 Thread Chris
On 3/12/2012 2:00 PM, Paul Macdonald wrote:
 On 12/03/2012 18:40, Chad Perrin wrote:
 On Sun, Mar 11, 2012 at 10:20:03AM -0500, Chris wrote:
 ... One word that is rampant... Alligations
 Is that where someone makes a claim that someone else is an alligator?

 sometimes i wish the lists had a like button :P
 
 

HA! I just love my HTC auto correct.
But to the point ... Sure, I *like* it.

-- 
Keep well,

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


Re: Editor With NO Shell Access?

2012-03-12 Thread Polytropon
On Mon, 12 Mar 2012 17:40:10 -0400, Steve Bertrand wrote:
 You can force a user directly into an editor so they have no shell 
 access. For example, if the user has '/bin/csh' as their login shell, 
 adding:
 
 exec /usr/local/bin/vim
 
 into their ~/.cshrc file will force them directly into vim. When they 
 exit vim, they are immediately logged off.

Just an idea about extending this idea: What if the shell
field for that user does not contain a shell, but the name
of the editor instead? I assume it has to be noted in
/etc/shells to work, but a passwd entry like

bob:*:1234:1234:Two-loop-Bob:/home/bob:/usr/local/bin/joe

could work (haven't tested that). A list of the files can
be obtained when opening a file ^KE and pressing the Tab key.
It would be worth testing if shell escapes like !command
will work in this constellation...




-- 
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: Editor With NO Shell Access?

2012-03-12 Thread Edward M.

On 03/12/2012 03:10 PM, Polytropon wrote:

/etc/shells to work, but a passwd entry like

bob:*:1234:1234:Two-loop-Bob:/home/bob:/usr/local/bin/joe



  I think this would not  let the user to login,etc
___
freebsd-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: Editor With NO Shell Access?

2012-03-12 Thread Polytropon
On Mon, 12 Mar 2012 15:19:51 -0700, Edward M. wrote:
 On 03/12/2012 03:10 PM, Polytropon wrote:
  /etc/shells to work, but a passwd entry like
 
  bob:*:1234:1234:Two-loop-Bob:/home/bob:/usr/local/bin/joe
 
 
I think this would not  let the user to login,etc

I'm not sure... I assume logging in is handled by /usr/bin/login,
and control is then (i. e. after successful login) transferred
to the login shell, which is the program specified in the
shell field (see man 5 passwd) of /etc/passwd. How is
login supposed to know if the program specified in this
field is actually a dialog shell?

From man 1 login I read that many shells have a built-in
login command, but /usr/bin/login is the system's default
binary for this purpose if the shell (quotes deserved if
it is an editor as shown in my assumption) has no capability
of performing a login.



-- 
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: Editor With NO Shell Access?

2012-03-12 Thread Edward M.

On 03/12/2012 03:23 PM, Polytropon wrote:

On Mon, 12 Mar 2012 15:19:51 -0700, Edward M. wrote:

On 03/12/2012 03:10 PM, Polytropon wrote:

/etc/shells to work, but a passwd entry like

bob:*:1234:1234:Two-loop-Bob:/home/bob:/usr/local/bin/joe


I think this would not  let the user to login,etc

I'm not sure... I assume logging in is handled by /usr/bin/login,
and control is then (i. e. after successful login) transferred
to the login shell, which is the program specified in the
shell field (see man 5 passwd) of /etc/passwd. How is
login supposed to know if the program specified in this
field is actually a dialog shell?

 From man 1 login I read that many shells have a built-in
login command, but /usr/bin/login is the system's default
binary for this purpose if the shell (quotes deserved if
it is an editor as shown in my assumption) has no capability
of performing a login.




   Now i gotta try this out.   Off to
   hosed my system.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Suggestion

2012-03-12 Thread Da Rock

On 03/13/12 02:14, Allen wrote:

On 3/11/2012 7:33 PM, Da Rock wrote:

On 03/11/12 21:03, ajtiM wrote:

On Saturday 10 March 2012 17:36:53 Da Rock wrote:


No system is actually truly capable of this, with the exception of the
newest kid on the block Plan9. Winblows, in its current form, is the
bastard love child of DOS and some black sheep cousin of Unix
(twice-removed), so its not happening there either; just some sleight of
hand tricks to partially achieve the result with a decrease of security
to boot.

Windows is a poorly made joke. We all know this deep down. Does no one
read Computer History? Microsoft was marketing Xenix before IBM said We
need an OS that blows for a Computer that has similar power to a
calculator ten years from now and Microsoft said We can do that!
Well, we can BUY that Seattle Computer Products has this OS called
QDOS that is a rip off of CP/M and stands for Quick Dirty Operating
System if we buy that for a rip off price and rename it Disk Operating
System, even though it can't handle Disks anyway, we can use this!


IMO it is the Microsoft and CO. tactics how to eliminate concurency -
Unix,
Mac... They never tried to be better...

Hah! They didn't need to. The guys who designed Unix finally wound up
their work once ported, and then said we can do a lot better now and
Plan9 was born. The change was too dramatic for commerce to change for
supposedly little reward, and so Plan9 was left on the backburner while
a lot of its features were integrated into other *nix platforms (rc,
file based devices, etc).

Plan 9 is a record label started by Glenn Danzig. And a movie. As for
the OS, I don't care. They got it right with Unix years earlier, why
stop now?
You realise, of course, that a lot of things you take for granted on BSD 
Unix was ported from Plan9? Yes, they got it right the first time. _And_ 
the second. People were impressed, but it would have taken too much 
effort to change ingrained ways and habits.

ATT didn't care about Unix until they were allowed to make money off
it, but the problem there, is that Berkeley got a copy of it, and some
Brilliant Hackers started working on it.

The CSRG at Berkeley did things that made more possible. Then they came
up with BSD, and, well, we're still using it Today. Many people would
consider 6 months to a year a long time in Computer terms, and 5 years
with the same OS, is considered damn good. So what does this say about BSD?

We're still using an OS that was born in 1969, changed in the 70s by the
Brilliance of Berkeley, and now still going strong after so long. That's
not only saying something, that's a Historical thing.
It is astounding. For around 20 years it hung around before they came up 
with something new, 40 years on and its still going strong - cars don't 
even last that long; or some buildings for that matter!

So in a way they did try to be better, but not exactly with the original
designers blessing. And Plan9 is still an immature child... shame.

Oh well. We don't really have to deal with DOS anymore, and FreeDOS has
done things even Microsoft couldn't buy their way through. Then we have
Windows, Linux, Unix, and of course, the other toys from other people.
I'd like BeOS to come back, but I'm quite happy with BSD and Linux.

Of course, if I won the Lotto or something, I'd re-design my House, and
turn this room into a true Computer Lab. My Wife and I both are into
Computers, and we both Love Unix. We'd buy sun Machines, Sparcs and, for
me, a full set of SGI Workstations and Servers. And I'd like them to be
running IRIX, except the new ones, I don't know what I'd use on those.
___
freebsd-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: 9.0 spontaneously reboots

2012-03-12 Thread Da Rock

On 03/13/12 02:56, Matthew Seaman wrote:

On 12/03/2012 14:07, Volodymyr Kostyrko wrote:

What should I blame now? Is it some programming error or should I
continue with testing/changing motherboard and cpu?

Instability that appears spontaneously (and especially if it persists
across system updates) is almost always caused by hardware problems.
So, yes, carry on swapping out components until you can isolate where
the problem is.

Some common hardware problems which might result in the problems you've
seen:

* PSU going flakey.  If you have the right measuring equipment, this
  is pretty easy to detect by looking at the output voltages -- if
  they've drifted out of spec, or if you've got mains frequency
  jitter leaking through then its no wonder your system crashes.

* Similarly, if the crashing is associated with system load,
  (particularly at startup, when things are happening like disks
  spinning up) this can indicate a power supply fading under load.
  That can happen due to age, or because you've been adding extra
  hardware and haven't considered the power requirements.

* The other reason for crashing under load is overheating.
  Sometimes this can be cured easily by cleaning dust out of vents
  and heat-sinks.  Check too for fans either seized or running
  slowly.

* You may need to clean off any old heat-sink compound and re-apply
  a fresh layer, especially if you've taken CPU coolers off at
  some point.

* There's also the old capacitor problem: electrolytic capacitors
  have a failure mode that generates some positive pressure inside
  them.  This is detectable by the end of the capacitor being bowed
  out, rather than slightly concave. (Generally this means a new
  motherboard, although I've heard of people being able to solder in
  replacements successfully.)
Yes, that works (relatively easily); but you need to be good with a 
soldering iron and be able to remove the cap without breaking tracks or 
shorting them. If you're not that or confident, I wouldn't try; although 
if the MB is cactus anyway you may have nothing to lose :)


Other than that, try disconnecting and reconnecting peripherals like
disks or DVDs and so forth in various combinations to test if that
improves system stability.  One faulty component can knock the whole
machine over.

Cheers,

Matthew



___
freebsd-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.0 spontaneously reboots

2012-03-12 Thread Da Rock

On 03/13/12 06:07, Adam Vande More wrote:

On Mon, Mar 12, 2012 at 9:07 AM, Volodymyr Kostyrkoc.kw...@gmail.comwrote:


Hi all.

I have one machine behaving unstable. This happened before 9.0. After
upgrading to 9.0 machine was given a light load and now it reboots. Memory
was already tested (without any errors) and changed after another reboot.


So your RAM is good enough to pass a memory test.  It doesn't mean it's not
the culprit.  Way too many false negatives from those things.


Overnight soak test with memtest possible?
___
freebsd-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: Which compiler compiled system?

2012-03-12 Thread Da Rock

On 03/13/12 06:49, Pierre-Luc Drouin wrote:

If Java is broken, then you know FreeBSD was compiled with clang...

I wouldn't say that is categorical.


On Mon, Mar 12, 2012 at 3:45 PM,kalth...@googlemail.com  wrote:


Hi,

Is there a way to determine whether a FreeBSD-system was compiled with gcc
or clang?
I thought of some libs or so that might significantly differ.

Regards,
kaltheat

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


Re: Which compiler compiled system?

2012-03-12 Thread Matthew Story
On Mon, Mar 12, 2012 at 6:55 PM, Da Rock 
freebsd-questi...@herveybayaustralia.com.au wrote:

 On 03/13/12 06:49, Pierre-Luc Drouin wrote:

 If Java is broken, then you know FreeBSD was compiled with clang...

 I wouldn't say that is categorical.


 On Mon, Mar 12, 2012 at 3:45 PM,kalth...@googlemail.com  wrote:

  Hi,

 Is there a way to determine whether a FreeBSD-system was compiled with
 gcc
 or clang?
 I thought of some libs or so that might significantly differ.


strings on a clang v. gcc compile shows no differences (at least in my
tests), but binaries compiled with clang and gcc seem to reliable show
differences at the 25th character of the compiled program, although the
differences at the 25th character are not consistent across programs ...

$ # one example
$ gcc -Wall -o hello_world.gcc hello_world.c
$ clang -Wall -o hello_world.clang hello_world.c
$ cmp hello_world.gcc hello_world.clang
hello_world.gcc hello_world.clang differ: char 25, line 1

this does suggest that if you know gcc and clang are the only 2 options for
compilation on a system, and you have a version compiled with the same
flags on the same system from a known compiler, you should be able to
reliably detect compilation by the other compiler using cmp ... although
this may be more or less meaningless to you depending on how much control
you have over the variables (e.g. binaries built on the same system,
ability to know which compilation flags were sent at compile time, etc ...):

$ # hello_world here is ``in the wild''
$ clang -Wall -o hello_world.clang hello_world.c
$ if cmp hello_world.clang hello_world  /dev/null 2 /dev/null; then echo
built with clang; else echo built with gcc; fi
built with clang



 Regards,
 kaltheat

 __**_
 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-unsubscribe@**freebsd.orgfreebsd-questions-unsubscr...@freebsd.org
 

  __**_
 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-**questionshttp://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-**
 unsubscr...@freebsd.org freebsd-questions-unsubscr...@freebsd.org




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


Jail and questions

2012-03-12 Thread Bernt Hansson

Hello list

I've setup a 32-bit jail on amd64 freebsd 8.2-stable.

It works, sort of, but when i run portsnap extract in the jail it say

Building new INDEX files... make_index: fopen(/dev/stdin): No such file 
or directory


#ls /dev

lrwxr-xr-x  1 root  wheel12  6 Mar 02:56 log - /var/run/log
-rw-r--r--  1 root  wheel76 12 Mar 23:09 null
-rw-r--r--  1 root  wheel 0 10 Mar 03:01 stderr
-rw-r--r--  1 root  wheel  1360  7 Mar 04:44 stdout

Where is stdin?

or running #ps ps: /boot/kernel/kernel: No such file or directory
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Editor With NO Shell Access?

2012-03-12 Thread Edward M.

On 03/12/2012 03:47 PM, Edward M. wrote:

On 03/12/2012 03:23 PM, Polytropon wrote:

On Mon, 12 Mar 2012 15:19:51 -0700, Edward M. wrote:

On 03/12/2012 03:10 PM, Polytropon wrote:

/etc/shells to work, but a passwd entry like

bob:*:1234:1234:Two-loop-Bob:/home/bob:/usr/local/bin/joe


I think this would not  let the user to login,etc

I'm not sure... I assume logging in is handled by /usr/bin/login,
and control is then (i. e. after successful login) transferred
to the login shell, which is the program specified in the
shell field (see man 5 passwd) of /etc/passwd. How is
login supposed to know if the program specified in this
field is actually a dialog shell?

 From man 1 login I read that many shells have a built-in
login command, but /usr/bin/login is the system's default
binary for this purpose if the shell (quotes deserved if
it is an editor as shown in my assumption) has no capability
of performing a login.




   Now i gotta try this out.   Off to
   hosed my system.

 Does not work. Could not login, it shows Couldn't open *-joerc.

___
freebsd-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: Jail and questions

2012-03-12 Thread Da Rock

On 03/13/12 09:15, Bernt Hansson wrote:

Hello list

I've setup a 32-bit jail on amd64 freebsd 8.2-stable.

It works, sort of, but when i run portsnap extract in the jail it say

Building new INDEX files... make_index: fopen(/dev/stdin): No such 
file or directory


#ls /dev

lrwxr-xr-x  1 root  wheel12  6 Mar 02:56 log - /var/run/log
-rw-r--r--  1 root  wheel76 12 Mar 23:09 null
-rw-r--r--  1 root  wheel 0 10 Mar 03:01 stderr
-rw-r--r--  1 root  wheel  1360  7 Mar 04:44 stdout

Where is stdin?

or running #ps ps: /boot/kernel/kernel: No such file or directory
You may have to unhide it and enable the specific rules for the jail 
system. I thought stdin was enabled by default, but I could be wrong.

___
freebsd-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: Which compiler compiled system?

2012-03-12 Thread Chad Perrin
On Mon, Mar 12, 2012 at 04:49:38PM -0400, Pierre-Luc Drouin wrote:

 If Java is broken, then you know FreeBSD was compiled with clang...

It's probably more accurate to say If Java is not broken, it's almost
certainly built with GCC.  If it's broken, it could go either way.

(No offense to the Java maintainers at the FreeBSD project, of course.
They do a great job of making it possible to get working at all.)

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.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: Editor With NO Shell Access?

2012-03-12 Thread David Brodbeck
On Mon, Mar 12, 2012 at 7:19 PM, Tim Daneliuk tun...@tundraware.com wrote:
 I have a situation where I need to provide people with the ability to edit
 files.  However, under no circumstances do I want them to be able to exit
 to the shell.   The client in question has strong (and unyielding) InfoSec
 requirements in this regard.

I vaguely recall that pico can be configured to work this way.  Check
out /usr/ports/editors/pico-alpine.  Sorry I can't give much more
help; it's been a very long time since I worked with that particular
editor.
___
freebsd-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: Editor With NO Shell Access?

2012-03-12 Thread Polytropon
On Mon, 12 Mar 2012 16:34:18 -0700, Edward M. wrote:
 On 03/12/2012 03:47 PM, Edward M. wrote:
  On 03/12/2012 03:23 PM, Polytropon wrote:
  On Mon, 12 Mar 2012 15:19:51 -0700, Edward M. wrote:
  On 03/12/2012 03:10 PM, Polytropon wrote:
  /etc/shells to work, but a passwd entry like
 
  bob:*:1234:1234:Two-loop-Bob:/home/bob:/usr/local/bin/joe
 
  I think this would not  let the user to login,etc
  I'm not sure... I assume logging in is handled by /usr/bin/login,
  and control is then (i. e. after successful login) transferred
  to the login shell, which is the program specified in the
  shell field (see man 5 passwd) of /etc/passwd. How is
  login supposed to know if the program specified in this
  field is actually a dialog shell?
 
   From man 1 login I read that many shells have a built-in
  login command, but /usr/bin/login is the system's default
  binary for this purpose if the shell (quotes deserved if
  it is an editor as shown in my assumption) has no capability
  of performing a login.
 
 
 
 Now i gotta try this out.   Off to
 hosed my system.
   Does not work. Could not login, it shows Couldn't open *-joerc.

Very strange message. I know there's a .joerc in ~ (for the
user) and a global /usr/local/etc/joe/rjoerc (for system-wide
use).

I also get this message:

Couldn't open '*-joerc'

Maybe this is because joe isn't a shell and doesn't set some
required variables, such as $PATH or $HOME, and joe cannot
find its rc files...

The reason is what I see in /usr/ports/editors/joe/work/joe-3.7/main.c
line 353 and above.





-- 
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: Editor With NO Shell Access?

2012-03-12 Thread Michael Sierchio
There are two edits to make to ex_shell.c in /usr/src/contrib/nvi/ex that
will prevent a shell from being executed.

99,100c
return (1);
.
48,51c
return (1);
.


On Mon, Mar 12, 2012 at 4:59 PM, David Brodbeck g...@gull.us wrote:

 On Mon, Mar 12, 2012 at 7:19 PM, Tim Daneliuk tun...@tundraware.com
 wrote:
  I have a situation where I need to provide people with the ability to
 edit
  files.  However, under no circumstances do I want them to be able to exit
  to the shell.   The client in question has strong (and unyielding)
 InfoSec
  requirements in this regard.

 I vaguely recall that pico can be configured to work this way.  Check
 out /usr/ports/editors/pico-alpine.  Sorry I can't give much more
 help; it's been a very long time since I worked with that particular
 editor.
 ___
 freebsd-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: Editor With NO Shell Access?

2012-03-12 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Mon Mar 12 17:46:04 2012
 Date: Mon, 12 Mar 2012 15:47:59 -0700
 From: Edward M. eam1edw...@gmail.com
 To: Polytropon free...@edvax.de
 Cc: freebsd-questions@freebsd.org
 Subject: Re: Editor With NO Shell Access?

 On 03/12/2012 03:23 PM, Polytropon wrote:
  On Mon, 12 Mar 2012 15:19:51 -0700, Edward M. wrote:
  On 03/12/2012 03:10 PM, Polytropon wrote:
  /etc/shells to work, but a passwd entry like
 
  bob:*:1234:1234:Two-loop-Bob:/home/bob:/usr/local/bin/joe
 
  I think this would not  let the user to login,etc
  I'm not sure... I assume logging in is handled by /usr/bin/login,
  and control is then (i. e. after successful login) transferred
  to the login shell, which is the program specified in the
  shell field (see man 5 passwd) of /etc/passwd. How is
  login supposed to know if the program specified in this
  field is actually a dialog shell?
 
   From man 1 login I read that many shells have a built-in
  login command, but /usr/bin/login is the system's default
  binary for this purpose if the shell (quotes deserved if
  it is an editor as shown in my assumption) has no capability
  of performing a login.
 
 
 
 Now i gotta try this out.   Off to
 hosed my system.

If other configuration is set up right (e.g. /etc/shells), you can name 
*any* executable as the 'shell' field in /etc/passwd, and have it work.

Long, long, ago, I used this for client 'on demand' system back-up.  They 
just put the tape in the drive, and logged in as the 'backup' user.


*HOWEVER* this is -not- a solution for the OP's problem, as a skilled,
_malicious_, user can change, say,  vi(1)'s idea of what executable it
should invoke when a '!', or '!!' command is issued.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


tar won't extract a dir

2012-03-12 Thread Glenn McCalley
Hello all, never had tar refuse to extract a directory from an archive 
before.


tar archive is:
htdocs.1201.tar.gz

tar tzf htdocs.1201.tar.gz | grep standrewsglenwood
...shows a list of files contained within the archived dir:
htdocs/standrewsglenwood/many whatevers

yet the command:
tar xzf htdocs.1201.tar.gz  htdocs/standrewsglenwood
...extracts nothing.
I've tried an individual file in that dir with no success.
I've tried other files and dirs with no success.
??
Glenn. 



___
freebsd-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: Which compiler compiled system?

2012-03-12 Thread Chuck Swiger
On Mar 12, 2012, at 12:45 PM, kalth...@googlemail.com wrote:
 Is there a way to determine whether a FreeBSD-system was compiled with gcc or 
 clang?
 I thought of some libs or so that might significantly differ.

It's fairly easy to determine whether assembly code was compiled with gcc or 
clang from idioms they use-- GCC emits .ascii for strings and then adds a 
trailing null; clang uses .asciz, for example.  From that you can also figure 
out whether a particular executable or shared library was compiled with one or 
the other-- gcc is doing a leaf frame caller optimization, where it leave / jmp 
to puts() (using the stack frame allocated for main()), whereas clang is doing 
normal stack frame handling of %rpb and explicit return.

Regards,
-- 
-Chuck

% cat h.c
#include stdio.h

int main() {
puts(Hello, world!\n);
}
% gcc -S -O2 -o h-gcc.s h.c
% clang -S -O2 -o h-clang.s h.c
% cat h-gcc.s
.cstring
LC0:
.ascii Hello, world!\12\0
.text
.align 4,0x90
.globl _main
_main:
LFB3:
pushq   %rbp
LCFI0:
movq%rsp, %rbp
LCFI1:
leaqLC0(%rip), %rdi
leave
jmp _puts
LFE3:
.section 
__TEXT,__eh_frame,coalesced,no_toc+strip_static_syms+live_support
EH_frame1:
.set L$set$0,LECIE1-LSCIE1
.long L$set$0
LSCIE1:
.long   0x0
.byte   0x1
.ascii zR\0
.byte   0x1
.byte   0x78
.byte   0x10
.byte   0x1
.byte   0x10
.byte   0xc
.byte   0x7
.byte   0x8
.byte   0x90
.byte   0x1
.align 3
LECIE1:
.globl _main.eh
_main.eh:
LSFDE1:
.set L$set$1,LEFDE1-LASFDE1
.long L$set$1
LASFDE1:
.long   LASFDE1-EH_frame1
.quad   LFB3-.
.set L$set$2,LFE3-LFB3
.quad L$set$2
.byte   0x0
.byte   0x4
.set L$set$3,LCFI0-LFB3
.long L$set$3
.byte   0xe
.byte   0x10
.byte   0x86
.byte   0x2
.byte   0x4
.set L$set$4,LCFI1-LCFI0
.long L$set$4
.byte   0xd
.byte   0x6
.align 3
LEFDE1:
.subsections_via_symbols

% cat h-clang.s
.section__TEXT,__text,regular,pure_instructions
.globl  _main
.align  4, 0x90
_main:  ## @main
Leh_func_begin0:
## BB#0:
pushq   %rbp
Ltmp0:
movq%rsp, %rbp
Ltmp1:
leaqL_.str(%rip), %rdi
callq   _puts
xorl%eax, %eax
popq%rbp
ret
Leh_func_end0:

.section__TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz   Hello, world!\n

.section
__TEXT,__eh_frame,coalesced,no_toc+strip_static_syms+live_support
EH_frame0:
Lsection_eh_frame0:
Leh_frame_common0:
Lset0 = Leh_frame_common_end0-Leh_frame_common_begin0 ## Length of Common 
Information Entry
.long   Lset0
Leh_frame_common_begin0:
.long   0   ## CIE Identifier Tag
.byte   1   ## DW_CIE_VERSION
.asciz   zR   ## CIE Augmentation
.byte   1   ## CIE Code Alignment Factor
.byte   120 ## CIE Data Alignment Factor
.byte   16  ## CIE Return Address Column
.byte   1   ## Augmentation Size
.byte   16  ## FDE Encoding = pcrel
.byte   12  ## DW_CFA_def_cfa
.byte   7   ## Register
.byte   8   ## Offset
.byte   144 ## DW_CFA_offset + Reg (16)
.byte   1   ## Offset
.align  3
Leh_frame_common_end0:
.globl  _main.eh
_main.eh:
Lset1 = Leh_frame_end0-Leh_frame_begin0 ## Length of Frame Information Entry
.long   Lset1
Leh_frame_begin0:
Lset2 = Leh_frame_begin0-Leh_frame_common0 ## FDE CIE offset
.long   Lset2
Ltmp2:  ## FDE initial location
.quad   Leh_func_begin0-Ltmp2
Lset3 = Leh_func_end0-Leh_func_begin0   ## FDE address range
.quad   Lset3
.byte   0   ## Augmentation size
.byte   4   ## DW_CFA_advance_loc4
Lset4 = Ltmp0-Leh_func_begin0
.long   Lset4
.byte   14  ## DW_CFA_def_cfa_offset
.byte   16  ## Offset
.byte   134 ## DW_CFA_offset + Reg (6)
.byte   2   ## Offset
.byte   4   ## DW_CFA_advance_loc4
Lset5 = Ltmp1-Ltmp0
.long   Lset5
.byte   13  ## DW_CFA_def_cfa_register
.byte   6   ## Register
.align  3
Leh_frame_end0:

.subsections_via_symbols

...and here's a disassembly of main() from gcc:

_main:

Re: oops, now: bsd question: how to record a tv stream?

2012-03-12 Thread Shane Ambler

On 12/03/2012 10:16, Da Rock wrote:

On 03/12/12 07:19, Polytropon wrote:

On Sun, 11 Mar 2012 13:28:19 -0700, Gary Kline wrote:

here us a FBSD qauestion how can i capture any tv
stream---or radio stream for later replay?

I've been using a BrookTree (Haupauge WinTV) PCI card for
capturing from TV which worked very good using the standard
programs mplayer and mencoder.

For capturing TV programs, there may be some service like the
Online TV Recoder which I occassionally use. Maybe this works also
for radio programs?

Additionally, there may be an option to download some kind of media
streams. There are tools for that available.

There is cx88 in the ports which will cover a lot of pci devices, and
 webcamd covers just about all the rest. Then use mplayer or another
tool to record the stream.

And if you're real tricky you can set it to record at a specific time
 and shut off at another specified time... :) I wrote a script for
this; a bit hackish, but it gets the job done. I have to clean it up
someday when I have the spare time.


No one suggesting MythTV? I haven't used a tuner card but I thought
MythTV was the one to use.


--

Shane Ambler
FreeBSD (at) ShaneWare (dot) Biz

http://ShaneWare.Biz
___
freebsd-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: oops, now: bsd question: how to record a tv stream?

2012-03-12 Thread Da Rock

On 03/13/12 12:27, Shane Ambler wrote:

On 12/03/2012 10:16, Da Rock wrote:

On 03/12/12 07:19, Polytropon wrote:

On Sun, 11 Mar 2012 13:28:19 -0700, Gary Kline wrote:

here us a FBSD qauestion how can i capture any tv
stream---or radio stream for later replay?

I've been using a BrookTree (Haupauge WinTV) PCI card for
capturing from TV which worked very good using the standard
programs mplayer and mencoder.

For capturing TV programs, there may be some service like the
Online TV Recoder which I occassionally use. Maybe this works also
for radio programs?

Additionally, there may be an option to download some kind of media
streams. There are tools for that available.

There is cx88 in the ports which will cover a lot of pci devices, and
 webcamd covers just about all the rest. Then use mplayer or another
tool to record the stream.

And if you're real tricky you can set it to record at a specific time
 and shut off at another specified time... :) I wrote a script for
this; a bit hackish, but it gets the job done. I have to clean it up
someday when I have the spare time.


No one suggesting MythTV? I haven't used a tuner card but I thought
MythTV was the one to use.

Pah! Too much bloat - especially for this use.

A lot of setup and configuration is required, and for a one off why bother?
___
freebsd-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: Editor With NO Shell Access?

2012-03-12 Thread Frank Shute
On Mon, Mar 12, 2012 at 03:20:57PM -0500, Tim Daneliuk wrote:

 On 03/12/2012 03:13 PM, Thomas Dickey wrote:
 On Mon, Mar 12, 2012 at 02:19:06PM -0500, Tim Daneliuk wrote:
 I have a situation where I need to provide people with the ability to edit
 files.  However, under no circumstances do I want them to be able to exit
 to the shell.   The client in question has strong (and unyielding) InfoSec
 requirements in this regard.
 
 So ... are there editors without this feature?  Can I compile something 
 like
 joe or vi to inhibit this feature?
 
 man vi (see -S)
 
 
 It turns out you can still work around this if your know the trick.
 I am still researching this, but restricted vi appears to be compromised.
 
 

Have you tried restricted vim?

$ vim -Z

:help restricted



Regards,

-- 

 Frank

 Contact info: http://www.shute.org.uk/misc/contact.html




pgpqkXozuNJ90.pgp
Description: PGP signature


Re: Can't install WindowMaker

2012-03-12 Thread Sabine Baer
On Sun, Mar 11, 2012 at 05:41:41PM +0100, Roland Smith wrote:
 
 As a workaround, try removing the '#ifdef' and '#endif' lines around
 the '# include sys/select.h' line in the file handlers.c[2], then
 re-start the compilation process (by running 'make' from the port's
 directory). Don't re-start the portmaster command, as that will undo
 your changes. If the build goes OK, issue the command 'make install
 clean' from the port's directory.  [2:
 /usr/ports/x11-wm/windowmaker/work/WindowMaker-0.95.2/WINGs/handlers.c]
 
Been there, done that:

 |*** Error code 1
 |mv -f .deps/wxcopy.Tpo .deps/wxcopy.Po

:-\

Sabine


-- 
Man wird hier zunehmend bizarrer.(Christian Schulz in dang)
___
freebsd-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: Editor With NO Shell Access?

2012-03-12 Thread Edward M.

On 03/12/2012 05:33 PM, Robert Bonomi wrote:

 From owner-freebsd-questi...@freebsd.org  Mon Mar 12 17:46:04 2012
Date: Mon, 12 Mar 2012 15:47:59 -0700
From: Edward M.eam1edw...@gmail.com
To: Polytroponfree...@edvax.de
Cc: freebsd-questions@freebsd.org
Subject: Re: Editor With NO Shell Access?

On 03/12/2012 03:23 PM, Polytropon wrote:

On Mon, 12 Mar 2012 15:19:51 -0700, Edward M. wrote:

On 03/12/2012 03:10 PM, Polytropon wrote:

/etc/shells to work, but a passwd entry like

 bob:*:1234:1234:Two-loop-Bob:/home/bob:/usr/local/bin/joe

 I think this would not  let the user to login,etc

I'm not sure... I assume logging in is handled by /usr/bin/login,
and control is then (i. e. after successful login) transferred
to the login shell, which is the program specified in the
shell field (see man 5 passwd) of /etc/passwd. How is
login supposed to know if the program specified in this
field is actually a dialog shell?

  From man 1 login I read that many shells have a built-in
login command, but /usr/bin/login is the system's default
binary for this purpose if the shell (quotes deserved if
it is an editor as shown in my assumption) has no capability
of performing a login.




 Now i gotta try this out.   Off to
 hosed my system.

If other configuration is set up right (e.g. /etc/shells), you can name
*any* executable as the 'shell' field in /etc/passwd, and have it work.

Long, long, ago, I used this for client 'on demand' system back-up.  They
just put the tape in the drive, and logged in as the 'backup' user.


*HOWEVER* this is -not- a solution for the OP's problem, as a skilled,
_malicious_, user can change, say,  vi(1)'s idea of what executable it
should invoke when a '!', or '!!' command is issued.
 I tried it out of curiosity to see if it was possible to  login 
in  joe, by the way the OS was configure.
 However my knowledge is not advance to continue, got stock on the 
message

 cannot  not find *-joerc :-)

 Regards
 Ed

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