RE: Trouble with LDAP-authentication to Apple Open Directory

2011-05-26 Thread mcoyles
 Hello!

 Yesterday I finally managed to get my FreeBSD 8.2-STABLE box to actually
authenticate to the Xserve, running Open  Directory on Mac OS X 10.5
Server. I was able to log in to the FreeBSD box (egil.kreativsone.no) as a
directory   user via SSH and also via netatalk. 

 Unfortunately, after a while, it stopped working. I can't remember doing
anything at all... As far as I know, I   made no changes in the
configuration neither on the Xserve nor on the FreeBSD box. This is what
happens when I try  to log in via SSH. 



Are the two units timesync'd to the same time server? If the BSD box drifts
out to the X-Server then Kerberos will fail...

Marci

___
freebsd-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: Samba gives invalid PT_PHDR after upgrading from 7.2-RELEASE to 7.3-RELEASE

2010-07-07 Thread mcoyles
 Today I tried using portupgrade -R -f samba34 to rebuild samba and all
 of its dependencies, but I'm still getting the same error. I'm a little
 surprised that a minor version upgrade broke this so thoroughly.  I went
 back over the release notes to see if I missed any obvious caveats about
 upgrading, but if I did, I'm not seeing it.

David - have a look here...
http://lists.freebsd.org/pipermail/freebsd-current/2010-April/016405.html


Cheers!
Marci

___
freebsd-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: Kill via Cron...

2010-04-21 Thread mcoyles
 kill -9 `ps ax | grep backup | grep -v grep | awk '{print $1}'`

And you don't have to remember grep -v grep if you remember to use ps 
axc (note the c), since arguments won't show up so the arguments to 
grep won't generate a false positive.


I'm actually trying to kill the following in one swep if they've taken more
than
8 hours to complete... :

39028  ??  Is 0:00.01 /bin/sh -c sh /root/tools/backup/fullbackup.sh
39070  ??  I  0:00.04 /usr/bin/perl /root/tools/backup/backuptodisk.pl
(perl5.8.9)
62219  ??  I  0:00.00 sh -c /sbin/dump -0 -auf - /usr | gzip -q 
/backup/wednesday/usr.dump.gz
62220  ??  I  0:00.33 /sbin/dump -0 -auf - /usr (dump)
62221  ??  S  0:27.11 gzip -q
6  ??  S  0:03.07 dump: /dev/da0s1e: pass 4: 3.82% done, finished in
1:09 at Wed Apr 21 09:48:59 2010 (dump)
62223  ??  DL 0:01.80 /sbin/dump -0 -auf - /usr (dump)
62224  ??  DL 0:01.79 /sbin/dump -0 -auf - /usr (dump)
62225  ??  DL 0:01.81 /sbin/dump -0 -auf - /usr (dump)

Have tried everything suggested thus far but nothing's done it as
effectively as the original command run at commandline... just trying to
automate the process by having cron kill at 8am.

Cheers!
Marci

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


Kill via Cron...

2010-04-20 Thread mcoyles
Morning all - on FreeBSD 7.1 (for various reasons - don't ask)
Am attempting to run the following via cron but it keeps erroring out:

kill -9 `ps ax | grep backup | grep -v grep | awk '{print $1}'`  kill -9
`ps ax | grep dump | grep -v grep | awk '{print $1}'`


Error: 

usage: kill [-s signal_name] pid ...
   kill -l [exit_status]
   kill -signal_name pid ...
   kill -signal_number pid ...

Works OK from commandline - what do I need to change to make this cronable??


Cheers
Marci

___
freebsd-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: Kill via Cron...

2010-04-20 Thread mcoyles
On 20/04/2010 08:52:58, mcoyles wrote:
 Morning all - on FreeBSD 7.1 (for various reasons - don't ask)
 Am attempting to run the following via cron but it keeps erroring out:
 
 kill -9 `ps ax | grep backup | grep -v grep | awk '{print $1}'`  kill -9
 `ps ax | grep dump | grep -v grep | awk '{print $1}'`
 
 *snip* 
 
 Works OK from commandline - what do I need to change to make this cronable??

 The usual problem is that the environment under cron is not set up
 anything like the way it is for an interactive session.  Particularly
 the PATH.  Either write you command as a small shell script and setup
 PATH within it, or use fully qualified names for all commands.

 Your command is probably better expressed as:

 /bin/pkill -9 'backup|dump'


Hi Matthew - cheers for that, I always forget the lack of common path in cron 
*sigh*
Anyhoo, there are multiple instances of backup and dump coming back in ps 
-ax... your
suggested command appears to only kill off the first instance? Have used my 
commands 
above in cron now using full path reference as per your advice - just waiting 
for the
clock to click round to 11.30 here for them to run...

Cheers...
Marci

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