Re: mailman-2.1.14_2 and _3, CGI wrapper Error

2011-06-15 Thread Mike Bristow
On Wed, Jun 15, 2011 at 12:48:01PM +0200, n dhert wrote:
 Yesterday morning I upgraded mailman-2.1.14_1 to 2.1.14_2
 
 Since then none of my mailings lists (that worked for years) works.
 http://myserver.mysubdom.mydom/mailman/listinfo
 (or any other mailman command) gives

To fix, do:

cd /usr/ports/mail/mailman
make configure
vi work/mailman-2.1.14/src/Makefile
# search for @CGI_GROUP@ and replace with www
# search for @MAIL_GROUP@ and replace with the right thing (probably mailman;
# but will depend on your MTA)
# save and exit from vi
make
/usr/local/etc/rc.d/mailman stop
make deinstall
make install
/usr/local/etc/rc.d/mailman start

(I should raise a PR, but haven't had time to look at the solution,
and I prefer to raise PRs with a patch)

-- 
Mike Bristow  m...@urgle.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: FTP troubles with Roundcube vacation plugin

2010-02-17 Thread Mike Bristow
On Tue, Feb 16, 2010 at 02:44:27PM +0100, Frank Bonnet wrote:
 I'm in trouble with vacation plugin which perform an FTP session at 
 localhost , for an obscure PAM/FreeBSD reason the FTP session is not 
 always working ...
 
 Sometimes it works well
[snip]
 
 then suddenly it stops working
 
 Feb 16 13:23:19 mail ftpd[46782]: connection from localhost (127.0.0.1)
 Feb 16 13:23:19 mail ftpd[46782]: pam_acct_mgmt: new authentication 
 token required
 Feb 16 13:23:19 mail ftpd[46782]: FTP LOGIN FAILED FROM localhost

It is hard to debug this certainly without knowing your ftpd's PAM
configuration (/etc/pam.d/ftpd), but assuming you have the default
FreeBSD setup, then it is likely the password has expired.

This would explain the behaviour if changing the password makes it
work again.

The expiry time is in /etc/master.passwd (it's the 5th or 6th field;
I forget which; see passwd(5)), and the expiry time set when you
change your password is controlled by your login class (see
login.conf(5))

Cheers,

-- 
Please help Imogen May keep talking - www.imogenmay.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: what www perl script is running?

2009-08-25 Thread Mike Bristow
On Tue, Aug 25, 2009 at 01:00:53AM -0700, Colin Brace wrote:
 Ok, here is what lsof tells me:
 
 $ sudo lsof | grep perl
 perl5.8.9  4272 www3uIPv4 0xc33cf0000t0 TCP
 gw:51295-94.102.51.57:afs3-fileserver (ESTABLISHED)
 
 The last line would be appear to telling me something, but what?

The script is talking to 94.102.51.57 on port 7000.

Other useful things:

ps ajx
will tell you the parent process of the script:  this looks like
it may be a (fast?)CGI script; if so then the parent would be the
web server.

It may also show the name of the script (but beware:  the script
can change that) which would be usefull to know.

 After 24 hour since rebooting, this perl instance is still crunching away... 

Is it the same instance of the script, or a new copy each time?
That is, does the PID change?  If so, that points to a CGI; if not it
points to a fastCGI - or something else.

Cheers,

-- 
:wq

___
freebsd-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: CPU doesn't support long mode

2009-08-15 Thread Mike Bristow
John Francis Lee wrote:
 My problem seems to be that
 
  CPU doesn't support long mode
 
 Is that it? Can't get there from here?

My guess is that you've installed an amd64 version of FreeBSD, but your
system is i386.

Cheers,
Mike
___
freebsd-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: find question

2009-08-04 Thread Mike Bristow
On Tue, Aug 04, 2009 at 08:49:17PM -0500, Gary Gatten wrote:
 Ah yes, I do remember now. Plus, for once the syntax is almost self 
 explanatory. So, did the OPs question get answered?


Yes.  But to be clear, one of the lines in the input file is blank,
which means that find is run as

find -type f

which is incorrect; it will be treated as run find with the -t,
-y, -p, and -e flags in the directory f.

(find's  syntax is:

 find [ optional flags ] [ required places to search ] 
  [ optional rules to filter out the things you dont want]

By having the places-to-search variable be blank, the shell doesn't
pass anythin to find, causing the optional rules to be interpreted
as the optional flags - and the syntax isn't correct.


-- 
:wq

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


Re: ipv6

2008-09-22 Thread Mike Bristow

Da Rock wrote:

My ISP has informed me that it doesn't support IPv6 yet, and won't for
some time. I have a DNS server and sites on IPv4, but I'd like to be
able to support IPv6- does the fact that my ISP doesn't support it stop
me from serving on IPv6? I'd think it does, but some clarity from
experts might help...
  


If you have static IPv4, then you can setup stf tunnels easily enough.  
See stf(4), although if you want to set it up then it may be a good idea 
to look at the way that rc.conf can set it up.


If you don't have static IPv4, then other tunneling techniques can be used.

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


Re: File system corruption upon reboot with gmirror

2008-09-11 Thread Mike Bristow
On Thu, Sep 11, 2008 at 04:12:09PM +0200, Michel Talon wrote:
 Gunther Mayer wrote:
 
   Don't use reboot, use shutdown -r now. I also had the same problem
   once
   (had to get physical access to the box to fix it) and it was because
   of
   the reboot.
 
  
  Thanks. I guess I'll use shutdown -r now then in future. If it still 
  happens then I'll post again...
 
 What's this stuff? shutdown -r is implemented using reboot.

Only when you give it -o.  Otherwise it sends a signal to init,
and init manages the shutdown.The code you quote is only 
run if -o is given.

-- 
Shenanigans!  Shenanigans!Best of 3!
-- Flash 

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


Re: time in jail one hour behind the jailhost

2008-02-07 Thread Mike Bristow
Johan Hendriks wrote:
 Thanks that did the trick
 Can you tell me in which file the timezone is set.

/etc/localtime is a copy of the right zone from
/usr/local/share/zoneinfo.  It's a binary file, so don't cat it!

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


Re: Strange HDD order

2008-02-04 Thread Mike Bristow

Jerry McAllister wrote:

On Mon, Feb 04, 2008 at 12:22:30PM +0100, Christian Baer wrote:


On Sun, 3 Feb 2008 09:40:53 -0600 Matt wrote:


Is the concern with the apparent out-of-order numbering based on how
you want to access these devices in areas like fstab? 

No, not really. Once I set them up in the directory tree, what the drive's
device name is won't make a diff to how the system works. I was more
worried that maybe the device names (numbers) could change in the future
and then I'd have to start wonderung about what drive is what now and
where to mount what device now.


They won't change unless you move them.  If you rearrange the order
then their device numbers will change and you would have to modify
the /etc/fstab file.But, they won't change just by rebooting
or something like that.   You would have to open the cabinet and 
move them.


If you are worried by this sort of thing, label your filesystems (with 
newfs -L or tunefs -L) and mount using /dev/ufs/volname.  My fstab has:



/dev/ufs/root   /   ufs rw  1   1
/dev/ufs/home   /home   ufs rw  2   2
/dev/ufs/tmp/tmpufs rw  2   2
/dev/ufs/var/varufs rw  2   2

for example.

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


Re: Fixing a USB disk to a specific device name

2008-01-21 Thread Mike Bristow
On Mon, Jan 21, 2008 at 05:55:51PM +0100, Roland Smith wrote:
 On Mon, Jan 21, 2008 at 08:56:32AM +0400, Rakhesh Sasidharan wrote:
  
  It is possible, but not as daX. Use the glabel(8) utility to label your
  disks. They will show up as /dev/label/yourlabel
 
 On 7.0-PRERELEASE, 'options GEOM_LABEL' is built into of the GENERIC
 kernel, so it shouldn't be necessary there.

Note that you can use UFS (and other filesystems labeling) too:  for example.
'newfs -L bobs_disk' will cause the device containing it to appear as 
/dev/ufs/bobs_disk.

This approach may be better for removable disks; it'll play better with
other OSs, for example.

-- 
Shenanigans!  Shenanigans!Best of 3!
-- Flash 

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


Re: mail from: field question

2008-01-10 Thread Mike Bristow
[ apologies to Jim Bow who gets this twice due to my fingers typing
faster than my brain. ]

On Thu, Jan 10, 2008 at 10:46:30AM +, Jim Bow wrote:
 If I run the script (or just send a mail) on the command line using sudo, 
 then it's sent as me and not root. Same happens if I su to root first.

use 'su -'.  It means you get a login shell (which sets up the enviroment
in the same way that login does).

I expect you can do the same thing with sudo with something like
'sudo bash -login' or similar.

 The only way I can get it to be sent from root is if I explicitly login as 
 root.
 
  Make sure the results are the same (if they're not, the MTA isn't
  the problem).
 
 So it looks like it isn't. What can be the cause of this then?

The extra things the shell does when running as a login shell; in
particular clearing the enviroment and setting things like LOGNAME
and USER (which I expect /usr/bin/mail and others pay attention to).

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


Re: home dir executable (!/bin/sh, chmod+x) shell scripts won't run without sh script

2008-01-07 Thread Mike Bristow
On Mon, Jan 07, 2008 at 10:50:47AM -0600, Erik Osterholm wrote:
 The '.' notation for the current working directory enables you to add
 the current directory you happen to be in as part of your path (thus
 making it searched when executing a command), however this has serious
 security implciations, so if you think that it's something you really
 want to do, you'll have to find out from someone else how to do it.

OTOH, having ~/bin in the path has no security implications at all - 
assuming your scripts are OK, of course.

-- 
Shenanigans!  Shenanigans!Best of 3!
-- Flash 

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


Re: Switching between half-duplex and full duplex

2007-06-03 Thread Mike Bristow

Pieter de Goeje wrote:

On Sunday 03 June 2007, Pang wrote:
  

Hello,
  I have just installed FreeBSD and found that the nic em0 is set to
half-duplex only. Could anyone tell me how I can switch it to full-duplex?

em0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=bRXCSUM,TXCSUM,VLAN_MTU
inet 172.16.0.2 netmask 0xfffc broadcast 172.16.0.1
ether XX:XX:XX:XX:XX:XX
media: Ethernet autoselect (10baseT/UTP half-duplex)
status: active

Thanks
Pang


According to ifconfig(8) and em(4):
# ifconfig em0 mediaopt full-duplex
  


And if that works, you may want to add it to /etc/rc.conf by changing 
the line with setting ifconfig_em0
to something like ifconfig_em0=whatever was there before mediaopt 
full-duplex

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


Re: CVS release tag for current patched release

2007-05-06 Thread Mike Bristow
On Sun, May 06, 2007 at 08:50:16PM +0200, Erik Trulsson wrote:
 (There is not really any 6.2-STABLE branch, 

RELENG_6_2 is the name of the branch which is used to develop 6.2
on.  It was branched from RELENG_6 (which in turn was branched from
the main branch) just before the release of 6.2.  It was used to
transmogrify 6-STABLE into 6.2-RC1 into -RC2 into -RELEASE into
-RELEASE-p1 and so on up to -RELEASE-p7.   See
http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/conf/newvers.sh?only_with_tag=RELENG_6_2
for some commentry.

I think that's what the OP was looking for.

-- 
Shenanigans!  Shenanigans!Best of 3!
-- Flash 

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


Re: ftpd and chmod

2007-04-19 Thread Mike Bristow

Wojciech Puchar wrote:
[SITE chmod is disabled for anon logins to ftpd]

thanks. no way to change it?


Yes, but you'd have to modify the code for ftpd.  I doubt the FreeBSD 
project would accept such patches[1] as allowing anon users to modify 
file permissions is the sort of thing that can easily create subtle (and 
not so subtle!) security issues.


It may be easier to look at ftp daemons in the ports collection; one of 
them may be usable for you.


[1] This is me guessing, not speaking authoritatively.


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


Re: ftpd and chmod

2007-04-18 Thread Mike Bristow

Wojciech Puchar wrote:
i use ftpd for anonymous read/write access using -l -m options in 
inetd.conf


chmod isn't allowed (ftp clients says SITE CHMOD not supported), ftpd 
manual page says that ftpd do support SITE CHMOD.

what's wrong?


From the manual:

Note: SITE requests are disabled in case of anonymous logins.


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


Re: about freebsd

2007-04-04 Thread Mike Bristow

Juan Ramos wrote:

Hi
I want to know more about the bigining of freebsd :
- the year it was born
- responsables
- first version
etc 


http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/history.html

will give you a brief overview.

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


Re: Hi ;

2007-03-17 Thread Mike Bristow

Halil Guven wrote:

Dear Sırs

I want to open in FreeBSD program 21,443,11905,11907,12341 15501 
ports.How can i do these.


Please inform me and thanks in advance of your help.
If you would like to work out what program is listening on a given port, 
or is connected on a given port, (you might have run netstat -an | grep 
LISTEN and you'd like to work out what is listening on a particular 
port), you can use 'sockstat', which will tell you the user, process ID, 
and program associated with every network connection.


I'm not sure if I've answered your question,  though!


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


Re: libexpat.so.5 not found

2006-04-30 Thread Mike Bristow
On Sun, Apr 30, 2006 at 04:57:09PM +0100, dharam paul wrote:
 #apachectl configtest
 Syntax ok
 httpd-error.log reports:
 Mon May  1 00:48:28 2006] [alert] mod_unique_id:
 unable to gethostbyname([EMAIL PROTECTED])


Something in the apache config says [EMAIL PROTECTED]
(which looks like an email address) where apache is expecting
a hostname.

Post your httpd.conf somewhere if you need more help.

-- 
I don't play The Game - it's for five-year-olds with delusions of adulthood.

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


Re: Problem pulling particular directory from CVS

2002-11-29 Thread Mike Bristow

On Wednesday, November 27, 2002, at 11:34  pm, Paul A. Scott wrote:

Oh, #$%@. I'm so embarrassed. My terminal session was logged into Mac 
OSX
not FreeBSD, and I had mirrored the same directory structure, so I faked
myself out.

Bottom line is, cvs on Freebsd works like a champ. The cvs on MacOSX 
does
not. My mistake. And I humbly appolgize for the stupid user error.

CVS works just fine - it's just that the filesystem is case insensitive 
[1],
so when you check out src/contrib, the distinction between 
src/contrib/CVS [2]
src/contrib/cvs is lost, and Bad Shit happens.

Try using Disk Copy to setup and mount a blank (UFS) image, or having a 
separate
UFS partition.

[1] Unless your filesystem is UFS, rather than HFS+, in which case 
you'll have
lots of interesting other problmes.
[2] CVS keeps a shedload of metadata here

--
Am I getting older, or are these shows getting more entertaining?
-- Flash, on Children in Need.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message